Commits

Anonymous committed 848ec84

Slight fix to comply with spec

Comments (0)

Files changed (1)

             .cap('END')
         """
         if args:
-            self.send_raw("CAP " + subcommand + " :" + args)
+            if ' ' in args:
+                self.send_raw("CAP " + subcommand + " :" + args)  # multiple capabilities
+            else:
+                self.send_raw("CAP " + subcommand + " " + args)  # single capability, no :
         else:
             self.send_raw("CAP " + subcommand)