From 47d84c1f7a1e404a83442f6ccc65ce799a12fbae Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 27 Feb 2006 20:08:58 +0000 Subject: [PATCH] plugins/Karma: FINALLY fix the crash bug with karma when addressing the bot and supybot.plugins.Karma.allowUnaddressedKarma was true. --- plugins/Karma/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Karma/plugin.py b/plugins/Karma/plugin.py index bd992424b..7a8ca17ea 100644 --- a/plugins/Karma/plugin.py +++ b/plugins/Karma/plugin.py @@ -259,7 +259,7 @@ class Karma(callbacks.Plugin): self._doKarma(irc, channel, thing) def doPrivmsg(self, irc, msg): - if not msg.repliedTo: + if not (msg.addressed or msg.repliedTo): channel = msg.args[0] if irc.isChannel(channel) and \ self.registryValue('allowUnaddressedKarma', channel):