From 632f89e61c573cc2a1e20a4896d5ec7bf1c59930 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Thu, 29 Jul 2010 19:45:02 -0500 Subject: [PATCH] remove a bunch of variables in Module that were added because of ?????? --- Module.py | 4 ---- modules/IrcAdmin.py | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Module.py b/Module.py index d01859d..579501f 100644 --- a/Module.py +++ b/Module.py @@ -36,10 +36,6 @@ class Module(object): self.modlist = modlist self.register_handlers(server) # Should do some error handling here. - self.botserver = config.get('IRC', 'server') - self.botport = config.getint('IRC', 'port') - self.botnick = config.get('IRC', 'nick') - self.botircname = config.get('IRC', 'name') self.rehash = rehash # Is there another way to call the rehash function in dr.botzo? # This is called by __init__ and sets up server.add_global_handlers. Classes diff --git a/modules/IrcAdmin.py b/modules/IrcAdmin.py index b457a45..8c3e157 100644 --- a/modules/IrcAdmin.py +++ b/modules/IrcAdmin.py @@ -39,8 +39,9 @@ class IrcAdmin(Module): # user modes try: + nick = self.config.get('IRC', 'nick') usermode = self.config.get('IRC', 'usermode') - connection.mode(self.botnick, usermode) + connection.mode(nick, usermode) except NoOptionError: pass # join the specified channels