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