remove a bunch of variables in Module that were added because of ??????
This commit is contained in:
parent
a4f88f6a79
commit
632f89e61c
@ -36,10 +36,6 @@ class Module(object):
|
|||||||
self.modlist = modlist
|
self.modlist = modlist
|
||||||
self.register_handlers(server)
|
self.register_handlers(server)
|
||||||
# Should do some error handling here.
|
# 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?
|
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
|
# This is called by __init__ and sets up server.add_global_handlers. Classes
|
||||||
|
@ -39,8 +39,9 @@ class IrcAdmin(Module):
|
|||||||
|
|
||||||
# user modes
|
# user modes
|
||||||
try:
|
try:
|
||||||
|
nick = self.config.get('IRC', 'nick')
|
||||||
usermode = self.config.get('IRC', 'usermode')
|
usermode = self.config.get('IRC', 'usermode')
|
||||||
connection.mode(self.botnick, usermode)
|
connection.mode(nick, usermode)
|
||||||
except NoOptionError: pass
|
except NoOptionError: pass
|
||||||
|
|
||||||
# join the specified channels
|
# join the specified channels
|
||||||
|
Loading…
Reference in New Issue
Block a user