]> gitweb.pimeys.fr Git - bots/hung.git/commitdiff
Manquait la property _getnick
authorVincent Le Gallic <legallic@crans.org>
Sat, 2 Jun 2012 21:53:07 +0000 (23:53 +0200)
committerVincent Le Gallic <legallic@crans.org>
Sat, 2 Jun 2012 21:53:07 +0000 (23:53 +0200)
hung.py

diff --git a/hung.py b/hung.py
index ae5e3d01433357edf7e2c6d13b6af70d724aa999..868e44e113e4f11901b21b86c4873697a4224ed9 100755 (executable)
--- 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)