2016-03-29 11:56:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Module(object):
|
|
|
|
def __init__(self, bot):
|
|
|
|
bot.events.on("received").on("numeric").on("001"
|
|
|
|
).hook(self.on_connect)
|
|
|
|
|
|
|
|
def on_connect(self, event):
|
|
|
|
nickserv_password = event["server"].get_setting(
|
2016-03-29 20:06:07 +00:00
|
|
|
"nickserv-password")
|
2016-03-29 11:56:58 +00:00
|
|
|
if nickserv_password:
|
|
|
|
event["server"].send_message("nickserv",
|
|
|
|
"identify %s" % nickserv_password)
|