Added auto-op support

This commit is contained in:
Juhani Haverinen 2013-06-30 20:29:36 +03:00
parent 5637860b9a
commit 4550dcc9df
2 changed files with 3 additions and 0 deletions

View File

@ -24,3 +24,6 @@ def parse((line,irc)):
if line[3][1:] in oprights and int(line[5])==3:
for chan in oprights[line[3][1:]]:
irc.send('MODE %s +o %s'%(chan,line[3][1:]))
elif line[1]=='JOIN' and line[0].split('!')[0][1:] in oprights and line[2] in oprights[line[0].split('!')[0][1:]]:
irc.send('PRIVMSG NickServ :ACC '+line[0].split('!')[0][1:])

Binary file not shown.