From c1805d139dbd7f6ee9caa9c5b6325d1c4bcd8dfd Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Sat, 2 Jun 2012 23:53:07 +0200 Subject: [PATCH] Manquait la property _getnick --- hung.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hung.py b/hung.py index ae5e3d0..868e44e 100755 --- a/hung.py +++ b/hung.py @@ -448,7 +448,11 @@ class Hung(ircbot.SingleServerIRCBot): # serv.action(channel,l2[i-n1].format(auteur).encode("utf8")) #else: # serv.privmsg(channel,l1[i].format(auteur).encode("utf8")) - + + def _getnick(self): + return self.serv.get_nickname() + nick = property(_getnick) + def quitter(self,chan,leave_message=None): if leave_message==None: leave_message=random.choice(config_leave_messages) -- 2.39.2