server identify patch
Status: Beta
Brought to you by:
ddipaolo
this patch is for moobot 0.6.1, just a little changes
on the moobot.py.
the irclib.py is already support server side identify,
this function is usefull for mannager chanel with
moobot. i just add the password option.
and I haven't hack the install.py, sorry.:)
the password option must should be defined in the
[connection] section. like the follow:
> cat /etc/moobot.conf
[connection]
nick=test
server=www.linuxfans.org
port=6667
password=hup
channels=#linuxfans #linuxer
Logged In: YES
user_id=744108
sorry, I cann't upload attach. diff is here:
#####################
57c57
< def __init__(self, channels=[], nickname="",
server="", port=6667, password="", module_list=[]):
---
> def __init__(self, channels=[], nickname="",
server="", port=6667, module_list=[]):
65d64
< config_password = configs['password']
75d73
< if password == "": password = config_password
78c76
< SingleServerIRCBot.__init__(self, [(server,
port, password)], nickname, nickname)
---
> SingleServerIRCBot.__init__(self, [(server,
port)], nickname, nickname)
332c330
< nick=""; server=""; port=6667; password="";
channels=[]; others={}
---
> nick=""; server=""; port=6667; channels=[];
others={}
337d334
< password = config.get('connection',
'password')
351c348
< return {'nick': nick, 'server': server,
'port': port, 'password': password,
---
> return {'nick': nick, 'server': server,
'port': port,