From 75d9c4de8eb43503680a03cab8ca2d6d6e196f11 Mon Sep 17 00:00:00 2001 From: moneromooo Date: Sat, 10 Jan 2015 00:07:55 +0000 Subject: [PATCH] Don't try to update last active time on direct chats to the bot --- tipbot/ircutils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tipbot/ircutils.py b/tipbot/ircutils.py index 10b833b..7e945a0 100644 --- a/tipbot/ircutils.py +++ b/tipbot/ircutils.py @@ -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()