From fb5bb2ec18f79ca9157859a98232627276160d07 Mon Sep 17 00:00:00 2001 From: Chris Oliver Date: Sun, 10 Oct 2010 14:32:10 -0500 Subject: Pass in ALL parameters on init and use self in quit --- logbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logbot.py b/logbot.py index 804bd24..5a89590 100644 --- a/logbot.py +++ b/logbot.py @@ -138,7 +138,7 @@ class Logbot(SingleServerIRCBot): print "Press Ctrl-C to quit" def quit(self): - bot.connection.disconnect("Quitting...") + self.connection.disconnect("Quitting...") def color(self, user): return "#%s" % md5(user).hexdigest()[:6] @@ -281,7 +281,7 @@ def main(): write_string("logs/index.html", html_header.replace("%title%", "Chat Logs")) # Start the bot - bot = Logbot(SERVER, PORT, CHANNELS) + bot = Logbot(SERVER, PORT, SERVER_PASS, CHANNELS, NICK, NICK_PASS) try: bot.start() except KeyboardInterrupt: -- cgit v1.2.3-70-g09d2