X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fhistorien.git;a=blobdiff_plain;f=historien.py;fp=historien.py;h=e37cbb55182547ab806b7f68a4e06176ef084e41;hp=04f89dea2cc1fa7b0db66f234bd04a3fa38b32b5;hb=5727848b9f5db55e760631dadae9ee941bf46ca2;hpb=90968c729930ec3dea60ef6ffdc25c6a543a5967 diff --git a/historien.py b/historien.py index 04f89de..e37cbb5 100755 --- a/historien.py +++ b/historien.py @@ -662,7 +662,8 @@ class Historien(ircbot.SingleServerIRCBot): 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): - return time.time()-self.last_activity[canal]