remove unnecessary method, preferring register_handlers

This commit is contained in:
Brian S. Stephan 2010-12-15 20:53:52 -06:00
parent 22615d7b9a
commit 7a9b68f2c4
2 changed files with 1 additions and 5 deletions

View File

@ -64,10 +64,6 @@ class Module(object):
# print what was loaded, for debugging
print("loaded " + self.__class__.__name__)
def attach_to_server(self, server):
"""Call register_handlers against the given server."""
self.register_handlers(server)
def register_handlers(self, server):
"""
Hook handler functions into the IRC library. This is called by __init__ and sets

View File

@ -148,7 +148,7 @@ try:
__import__(modstr)
module = sys.modules[modstr]
botmod = eval('module.' + mod + '(config, server, modlist)')
botmod.attach_to_server(server)
botmod.register_handlers(server)
except NoSectionError as e:
print("You seem to be missing a modules config section, which you probably wanted.")
except NoOptionError as e: