From: Vincent Le Gallic Date: Sat, 2 Jun 2012 21:53:07 +0000 (+0200) Subject: Manquait la property _getnick X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=c1805d139dbd7f6ee9caa9c5b6325d1c4bcd8dfd;p=bots%2Fhung.git Manquait la property _getnick --- 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)