blob: c5cc7a7b1a42409ff4eda9d1df04cf2a14706cad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
class rootcheck:
def __init__(self):
self = []
def getAction(self, data, users):
try:
user = data[1:data.index('!')]
input = data.split()
if 'JOIN' in input[1]:
if 'root' in input[0]:
cmd = "PRIVMSG " + input[2][1:] + " :" + user +": Root?!?!?!!??!"
cmd += "\r\nKICK " + input[2][1:] + " " + user + " :Root + irc = kick"
return cmd
except:
return False
|