From 34fdc7f35b198aad0219682dcd529a8e1c6aa19e Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Fri, 18 May 2012 00:12:44 +0200 Subject: [PATCH] =?utf8?q?self.serv=20point=20vers=20le=20serveur=20(histo?= =?utf8?q?ire=20qu'on=20puisse=20tout=20le=20temps=20y=20acc=C3=A9der)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- basile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/basile.py b/basile.py index 9b50b1a..941b335 100755 --- a/basile.py +++ b/basile.py @@ -299,6 +299,7 @@ class Basile(ircbot.SingleServerIRCBot): serv.nick(config_irc_pseudo) def on_welcome(self, serv, ev): + self.serv=serv # ça serv ira :) self.give_me_my_pseudo(serv) serv.privmsg("NickServ","identify %s"%(config_irc_password)) log(self.serveur,"Connected") @@ -872,7 +873,7 @@ class Basile(ircbot.SingleServerIRCBot): serv.join(canal) print("%s kické par %s pour %s" %(victime,auteur,raison)) def _getnick(self): - return serv.get_nickname() + return self.serv.get_nickname() nick=property(_getnick) -- 2.39.2