Kicking now only has 10% chance of backfiring

This commit is contained in:
Juhani Haverinen 2013-09-25 14:13:46 +03:00
parent 47a6e81d79
commit 80262982ee
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ def parse((line,irc)):
if len(line)>4:
if line[4]=='oonbotti2':
irc.send('KICK %s %s :Fuck you'%(chan,nick))
elif random.randint(0,1)==0:
elif random.randint(0,9)==0:
irc.send('KICK %s %s :Bam'%(chan,nick))
else:
addauthcmd(nick,'KICK %s %s :%s'%(chan,line[4],' '.join(line[5:])))
@ -122,7 +122,7 @@ def parse((line,irc)):
irc.send('PRIVMSG %s :Register account with NickServ'%line[3][1:])
elif line[5]=='1':
irc.send('PRIVMSG %s :Identify with NickServ'%line[3][1:])
else:
elif line[5]!='3':
irc.send('PRIVMSG %s :WTF, NickServ returned %s'%(line[3][1:],line[5]))
trustedlock.release()
authcmdlock.release()