move debug logging so channel messages are not logged, the bot doesn't handle any channel messages anyway and we dont want the data
This commit is contained in:
parent
02a7af6303
commit
a7a9a24c6c
|
@ -74,12 +74,12 @@ class Plugin(object):
|
|||
@irc3.event(irc3.rfc.PRIVMSG)
|
||||
def on_privmsg(self, **kwargs):
|
||||
"""triggered when a privmsg is sent to the bot or to a channel the bot is in"""
|
||||
logger.debug("inside on_privmsg(), kwargs: %s" % kwargs)
|
||||
|
||||
# we only handle NOTICEs for now
|
||||
if kwargs['event'] != "NOTICE":
|
||||
return
|
||||
|
||||
logger.debug("inside on_privmsg(), kwargs: %s" % kwargs)
|
||||
|
||||
# check if this is a message from nickserv
|
||||
if kwargs['mask'] == "NickServ!%s" % settings.IRCBOT_NICKSERV_MASK:
|
||||
self.bot.handle_nickserv_privmsg(**kwargs)
|
||||
|
|
Loading…
Reference in a new issue