From 97a20675ca8a697c7afd90b4ed94c4828a66148f Mon Sep 17 00:00:00 2001 From: Chris Oliver Date: Thu, 7 Apr 2011 10:13:31 -0500 Subject: Added nickserv auth --- logbot.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'logbot.py') diff --git a/logbot.py b/logbot.py index c78bca1..a23b572 100644 --- a/logbot.py +++ b/logbot.py @@ -147,6 +147,7 @@ class Logbot(SingleServerIRCBot): self.format = format self.set_ftp() self.count = 0 + self.nick_pass = nick_pass print "Logbot %s" % __version__ print "Connecting to %s:%i..." % (server, port) @@ -246,6 +247,9 @@ class Logbot(SingleServerIRCBot): def on_welcome(self, c, e): """Join channels after successful connection""" + if self.nick_pass: + c.privmsg("nickserv", "identify %s" % self.nick_pass) + for chan in self.chans: c.join(chan) -- cgit v1.2.3