From a39555838d400241d1cd00dc93796aec97cde343 Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 27 Feb 2006 20:24:40 +0000 Subject: [PATCH] plugins/Karma: Comment explaining the last bugfix. --- plugins/Karma/plugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/Karma/plugin.py b/plugins/Karma/plugin.py index 7a8ca17ea..d8737d8b0 100644 --- a/plugins/Karma/plugin.py +++ b/plugins/Karma/plugin.py @@ -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 \