Skip to content

Commit

Permalink
enabled irc and fixed ipaddress error, errors persist though, please …
Browse files Browse the repository at this point in the history
…don't overwrite my commit in the future
  • Loading branch information
Alexandru Stan committed Mar 21, 2010
1 parent b60ab89 commit 098d357
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pyscripts/plugins/ircbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

config = {
'Main': {
'enable': 'no',
'enable': 'yes',
'part_message': 'XSBS - eXtensible SauerBraten Server',
'ipaddress': '0',
},
Expand Down Expand Up @@ -117,10 +117,10 @@ def __init__(self, nickname, channels):
self.bots = []
self.reconnect_count = 0
def doConnect(self):
if ipaddress == '0':
if config['Main']['ipaddress'] == '0':
reactor.connectTCP(config['Connection']['server'], int(config['Connection']['port']), factory)
else:
reactor.connectTCP(config['Connection']['server'], int(config['Connection']['port']), factory, 30, (config['Connection']['ipaddress'], 0))
reactor.connectTCP(config['Connection']['server'], int(config['Connection']['port']), factory, 30, (config['Main']['ipaddress'], 0))
def doReconnect(self):
if self.reconnect_count < 5:
self.reconnect_count += 1
Expand Down

0 comments on commit 098d357

Please sign in to comment.