Commits

Anonymous committed 9b4a5d1

Don't trigger DCC chat for other DCC types in the default on_ctcp handler.

Comments (0)

Files changed (1)

             if len(e.arguments()) > 1:
                 c.ctcp_reply(nm_to_n(e.source()),
                              "PING " + e.arguments()[1])
-        elif e.arguments()[0] == "DCC":
+        elif e.arguments()[0] == "DCC" and e.arguments()[1] = "CHAT":
             self.on_dccchat(c, e)
 
     def on_dccchat(self, c, e):