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

index a550556a96bfd9bd52dd3ae14a2a7aba70bd5a87..1e47415296826f90b505d4461e2027ad8e75f3d8 100755 (executable)
@@ -644,7 +644,7 @@ class Historien(ircbot.SingleServerIRCBot):
         return self.serv.get_nickname()
     nick = property(_getnick)
     
-    def update_activity(self,canal,pseudo,message):
+    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):