plugins/Karma: Comment explaining the last bugfix.

This commit is contained in:
James Vega 2006-02-27 20:24:40 +00:00
parent c4b4fc03b0
commit a39555838d

View File

@ -259,6 +259,9 @@ class Karma(callbacks.Plugin):
self._doKarma(irc, channel, thing)
def doPrivmsg(self, irc, msg):
# We don't handle this if we've been addressed because invalidCommand
# will handle it for us. This prevents us from accessing the db twice
# and therefore crashing.
if not (msg.addressed or msg.repliedTo):
channel = msg.args[0]
if irc.isChannel(channel) and \