remove a bunch of variables in Module that were added because of ??????

This commit is contained in:
Brian S. Stephan 2010-07-29 19:45:02 -05:00
parent a4f88f6a79
commit 632f89e61c
2 changed files with 2 additions and 5 deletions

View File

@ -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

View File

@ -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