self.bot please

This commit is contained in:
Thomas Steen Rasmussen 2017-07-03 21:19:20 +02:00
parent 9ad6ba3f6b
commit 8c01963c8d

View file

@ -55,7 +55,7 @@ class Plugin(object):
logger.debug("inside on_privmsg(), kwargs: %s" % kwargs) logger.debug("inside on_privmsg(), kwargs: %s" % kwargs)
if kwargs['mask'] == "NickServ!NickServ@services.baconsvin.org" and kwargs['event'] == "NOTICE" and kwargs['data'] == "This nickname is registered. Please choose a different nickname, or identify via \x02/msg NickServ identify <password>\x02.": if kwargs['mask'] == "NickServ!NickServ@services.baconsvin.org" and kwargs['event'] == "NOTICE" and kwargs['data'] == "This nickname is registered. Please choose a different nickname, or identify via \x02/msg NickServ identify <password>\x02.":
logger.info("Nickserv identify needed, fixing...") logger.info("Nickserv identify needed, fixing...")
bot.privmsg("NickServ@services.baconsvin.org", "identify %s %s" % (settings.IRCBOT_NICK, settings.IRCBOT_NICKSERV_PASSWORD)) self.bot.privmsg("NickServ@services.baconsvin.org", "identify %s %s" % (settings.IRCBOT_NICK, settings.IRCBOT_NICKSERV_PASSWORD))
@irc3.event(irc3.rfc.KICK) @irc3.event(irc3.rfc.KICK)