plugins/Karma: FINALLY fix the crash bug with karma when addressing the bot and supybot.plugins.Karma.allowUnaddressedKarma was true.

This commit is contained in:
James Vega 2006-02-27 20:08:58 +00:00
parent 26c0adf768
commit 47d84c1f7a
1 changed files with 1 additions and 1 deletions

View File

@ -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):