Don't try to update last active time on direct chats to the bot

This commit is contained in:
moneromooo 2015-01-10 00:07:55 +00:00
parent e24389d5b4
commit 75d9c4de8e

View file

@ -165,6 +165,8 @@ def GetSendTo(nick,chan):
return nick return nick
def UpdateLastActiveTime(chan,nick): def UpdateLastActiveTime(chan,nick):
if chan[0] != '#':
return
if not chan in userstable: if not chan in userstable:
log_error("UpdateLastActiveTime: %s spoke in %s, but %s not found in users table" % (nick, chan, chan)) log_error("UpdateLastActiveTime: %s spoke in %s, but %s not found in users table" % (nick, chan, chan))
userstable[chan] = dict() userstable[chan] = dict()