Mercurial > xib
comparison 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 |
comparison
equal
deleted
inserted
replaced
79:73a30fc1922b | 80:4e18b435566a |
---|---|
832 """Send an OPER command.""" | 832 """Send an OPER command.""" |
833 self.send_raw("OPER %s %s" % (nick, password)) | 833 self.send_raw("OPER %s %s" % (nick, password)) |
834 | 834 |
835 def part(self, channels, message=""): | 835 def part(self, channels, message=""): |
836 """Send a PART command.""" | 836 """Send a PART command.""" |
837 if type(channels) == types.StringType: | 837 if isinstance(channels, basestring): |
838 self.send_raw("PART " + channels + (message and (" " + message))) | 838 self.send_raw("PART " + channels + (message and (" " + message))) |
839 else: | 839 else: |
840 self.send_raw("PART " + ",".join(channels) + (message and (" " + message))) | 840 self.send_raw("PART " + ",".join(channels) + (message and (" " + message))) |
841 | 841 |
842 def pass_(self, password): | 842 def pass_(self, password): |