X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/28d7d32f3ea101f458ffedc6b00c50b260140e71..db75daab8e080fef8e9dbe7796492b24945e8707:/bot.py?ds=sidebyside diff --git a/bot.py b/bot.py index 513f257..68cd8ae 100644 --- a/bot.py +++ b/bot.py @@ -1,5 +1,8 @@ #!/usr/bin/python +# Erebus IRC bot - Author: John Runyon +# "Bot" and "BotConnection" classes (handling a specific "arm") + #TODO: error checking import socket, sys @@ -15,7 +18,8 @@ class Bot(object): self.conn = BotConnection(self, bind, server, port) def connect(self): - if self.conn.connect(): + +if self.conn.connect(): self.parent.newfd(self, self.conn.socket.fileno()) def getdata(self):