summaryrefslogtreecommitdiff
path: root/logbot.py
diff options
context:
space:
mode:
authorChris Oliver <excid3@gmail.com>2010-10-10 14:32:10 -0500
committerChris Oliver <excid3@gmail.com>2010-10-10 14:32:10 -0500
commitfb5bb2ec18f79ca9157859a98232627276160d07 (patch)
tree1a0657f527b65588eae1f133fde16bd2576a0a81 /logbot.py
parent83a973050ff486b47e24c9d47e35b6538fea6f16 (diff)
downloadlogbot-fb5bb2ec18f79ca9157859a98232627276160d07.tar.xz
Pass in ALL parameters on init and use self in quit
Diffstat (limited to 'logbot.py')
-rw-r--r--logbot.py4
1 files 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: