mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 04:32:36 +01:00
plugins/Karma: Comment explaining the last bugfix.
This commit is contained in:
parent
c4b4fc03b0
commit
a39555838d
@ -259,6 +259,9 @@ class Karma(callbacks.Plugin):
|
|||||||
self._doKarma(irc, channel, thing)
|
self._doKarma(irc, channel, thing)
|
||||||
|
|
||||||
def doPrivmsg(self, irc, msg):
|
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):
|
if not (msg.addressed or msg.repliedTo):
|
||||||
channel = msg.args[0]
|
channel = msg.args[0]
|
||||||
if irc.isChannel(channel) and \
|
if irc.isChannel(channel) and \
|
||||||
|
Loading…
Reference in New Issue
Block a user