From f28ee04f142db3192027ca99ea5d86705ce14d7f Mon Sep 17 00:00:00 2001 From: jason Date: Sat, 21 Jul 2012 05:39:25 -0600 Subject: Changed the main loop to the call function of the object. --- warmachine.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/warmachine.py b/warmachine.py index 148ad65..a8cac68 100755 --- a/warmachine.py +++ b/warmachine.py @@ -52,7 +52,7 @@ class IRC(object): """ self.irc.send(command + '\r\n') - def MainLoop(self): + def __call__(self, *args, **kwargs): """ Main Event Loop that parses generic commands """ @@ -93,8 +93,8 @@ class IRC(object): if __name__ == '__main__': import settings - i = IRC(settings.SERVER, settings.NICKNAME, settings.IDENT) + i = IRC(settings.SERVER, settings.NICKNAME, settings.IDENT, settings.PORT) i.connect() for channel in settings.CHANNELS: i.join(channel) - i.MainLoop() + i() -- cgit v1.2.1