]> gitweb.pimeys.fr Git - bots/salesman.git/commitdiff
idle-pan : oubli
authorVincent Le Gallic <legallic@crans.org>
Sat, 11 May 2013 13:51:07 +0000 (15:51 +0200)
committerVincent Le Gallic <legallic@crans.org>
Sat, 11 May 2013 13:51:07 +0000 (15:51 +0200)
salesman.py

index 342b93f01c1975a151fcd2287e8d33156fae9d41..8682b4b350f6bc8f07f64e9462c4a275b4f1f6cc 100755 (executable)
@@ -580,7 +580,7 @@ class Salesman(ircbot.SingleServerIRCBot):
         return self.serv.get_nickname()
     nick = property(_getnick)
     
-    def update_activity(self,canal,pseudo,message,force=False):
+    def update_activity(self,canal="",pseudo="",message="",force=False):
         if force or (not pseudo in config.idle_bots and all([not re.match(ignore, message) for ignore in config.idle_messages])):
             self.last_activity[canal]=time.time()
     def is_active(self,canal):