changeset 2647:6e323cf20c64

Fix initialisation of xmlrpcbot.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Mon, 06 Aug 2007 20:49:08 +0200
parents 9e899085df6e
children 596516ae09dd 3878ffc317da
files jabberbot/xmlrpcbot.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jabberbot/xmlrpcbot.py	Mon Aug 06 03:57:45 2007 +0200
+++ b/jabberbot/xmlrpcbot.py	Mon Aug 06 20:49:08 2007 +0200
@@ -264,6 +264,7 @@
         self.commands = commands
         self.verbose = config.verbose
         self.log = logging.getLogger("log")
+        self.config = config
 
         if config.secret:
             self.secret = config.secret
@@ -277,7 +278,7 @@
     def run(self):
         """Starts the server / thread"""
 
-        self.server = SimpleXMLRPCServer((config.xmlrpc_host, config.xmlrpc_port))
+        self.server = SimpleXMLRPCServer((self.config.xmlrpc_host, self.config.xmlrpc_port))
 
         # Register methods having an "export" attribute as XML RPC functions and
         # decorate them with a check for a shared (wiki-bot) secret.