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 \