# HG changeset patch # User Charly COSTE # Date 1252172783 -7200 # Node ID 4e18b435566afa98de19faa9cb54faabf8a77d8f # Parent 73a30fc1922bb2ed2f216287e0674c16c1b947d6 Fixed irclib "part" method Signed-off-by: Charly COSTE diff --git a/irclib.py b/irclib.py --- 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)))