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
1 changed files with 2 additions and 0 deletions

View File

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