add more extension cruft. make extension checking more uniform.

This commit is contained in:
Andrew Gallant (Ocelot)
2012-05-06 17:48:40 -04:00
parent 135cee5761
commit 6d545e723a
7 changed files with 59 additions and 11 deletions

View File

@@ -36,6 +36,6 @@ func (p *Protocol) Initialize() {
// isExt returns true if this protocol is an extension.
// i.e., it's name isn't "xproto".
func (p *Protocol) isExt() bool {
return strings.ToLower(p.Name) == "xproto"
return strings.ToLower(p.Name) != "xproto"
}