From c2d6f6f811129815b05cac4fb8b6b4f538c61f89 Mon Sep 17 00:00:00 2001 From: jcao219 Date: Fri, 22 Jul 2011 20:52:45 -0500 Subject: [PATCH] fixed a !chankick bug --- oyoyo/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oyoyo/client.py b/oyoyo/client.py index f8bc56c..111743f 100644 --- a/oyoyo/client.py +++ b/oyoyo/client.py @@ -232,11 +232,11 @@ class IRCClient(object): def notice(self, user, msg): for line in msg.split('\n'): self.send("NOTICE", user, ":{0}".format(line)) - def quit(self, msg): + def quit(self, msg=""): self.send("QUIT :{0}".format(msg)) - def part(self, chan, msg): + def part(self, chan, msg=""): self.send("PART {0} :{1}".format(chan, msg)) - def kick(self, chan, nick, msg): + def kick(self, chan, nick, msg=""): self.send("KICK", chan, nick, ":"+msg) def ns_identify(self, passwd): self.msg("NickServ", "IDENTIFY {0} {1}".format(self.nickname, passwd))