diff irclib.py @ 80:4e18b435566a

Fixed irclib "part" method Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sat, 05 Sep 2009 19:46:23 +0200
parents 75a05faea5ca
children bfa32b017fc9
line wrap: on
line diff
--- a/irclib.py
+++ b/irclib.py
@@ -834,7 +834,7 @@ class ServerConnection(Connection):
 
     def part(self, channels, message=""):
         """Send a PART command."""
-        if type(channels) == types.StringType:
+        if isinstance(channels, basestring):
             self.send_raw("PART " + channels + (message and (" " + message)))
         else:
             self.send_raw("PART " + ",".join(channels) + (message and (" " + message)))