Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: