mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 06:04:21 +01:00
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:
parent
26c0adf768
commit
47d84c1f7a
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user