From 7a9b68f2c43e46a83f2f556db908b22e88612bfc Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Wed, 15 Dec 2010 20:53:52 -0600 Subject: [PATCH] remove unnecessary method, preferring register_handlers --- Module.py | 4 ---- dr.botzo.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Module.py b/Module.py index 9a05376..52a16ce 100644 --- a/Module.py +++ b/Module.py @@ -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 diff --git a/dr.botzo.py b/dr.botzo.py index da16628..75c1eb3 100644 --- a/dr.botzo.py +++ b/dr.botzo.py @@ -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: