diff --git a/Module.py b/Module.py index 878cf99..0579d9d 100644 --- a/Module.py +++ b/Module.py @@ -56,6 +56,9 @@ class Module(object): # set up database for this module self.db_init() + # set up XML-RPC for this module + self.xmlrpc_init() + self.log.info("Loaded " + self.__class__.__name__) def register_handlers(self): @@ -275,6 +278,15 @@ class Module(object): pass + def xmlrpc_init(self): + """Set up XML-RPC handlers. + + Modules interested in this should implement registration here. + + """ + + pass + def do(self, connection, event, nick, userhost, what, admin): """Do the primary thing this module was intended to do, in most cases.