xmpp/xmpp.go
changeset 132 feaa24de9597
parent 131 f9ccfaf672ed
child 134 80b764fa2f08
--- a/xmpp/xmpp.go	Sat Sep 07 19:49:57 2013 -0700
+++ b/xmpp/xmpp.go	Sat Sep 07 19:53:58 2013 -0700
@@ -147,7 +147,7 @@
 	extStanza := make(map[xml.Name]reflect.Type)
 	for _, ext := range exts {
 		for k, v := range ext.StanzaHandlers {
-			if _, ok := extStanza[k]; !ok {
+			if _, ok := extStanza[k]; ok {
 				return nil, fmt.Errorf("duplicate handler %s",
 					k)
 			}