summaryrefslogtreecommitdiff
path: root/logbot.py
diff options
context:
space:
mode:
authorChris Oliver <excid3@gmail.com>2011-04-07 10:13:31 -0500
committerChris Oliver <excid3@gmail.com>2011-04-07 10:13:31 -0500
commit97a20675ca8a697c7afd90b4ed94c4828a66148f (patch)
treea896cacb3c4e9aa9fc3c3aea2b45f5a3ff8d9542 /logbot.py
parent16952fc179f365ac8056141969800c116c56114e (diff)
downloadlogbot-97a20675ca8a697c7afd90b4ed94c4828a66148f.tar.xz
Added nickserv auth
Diffstat (limited to 'logbot.py')
-rw-r--r--logbot.py4
1 files changed, 4 insertions, 0 deletions
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)