|
@@ -17,12 +17,12 @@ class bot:
|
|
|
else:
|
|
|
print(msg);
|
|
|
async def handle(line):
|
|
|
- if (line[0] == ':team.tilde.chat' and (line[1] == 'NOTICE' or line[1] == '001' or line[1] == '002' or line[1] == '003' or line[1] == '004' or line[1] == '005' or line[1] == '372' or line[1] == '251' or line[1] == '252' or line[1] == '253' or line[1] == '254' or line[1] == '255' or line[1] == '265' or line[1] == '266' or line[1] == '375' or line[1] == '376' or line[1] == '396') ):
|
|
|
+ if (line[0].endswith('.tilde.chat') and (line[1] == 'NOTICE' or line[1] == '001' or line[1] == '002' or line[1] == '003' or line[1] == '004' or line[1] == '005' or line[1] == '372' or line[1] == '251' or line[1] == '252' or line[1] == '253' or line[1] == '254' or line[1] == '255' or line[1] == '265' or line[1] == '266' or line[1] == '375' or line[1] == '376' or line[1] == '396') ):
|
|
|
loglevel = 450
|
|
|
- elif line[0] == ':team.tilde.chat':
|
|
|
+ elif line[0].endswith('.tilde.chat'):
|
|
|
loglevel = 441
|
|
|
elif line[0] == ':NickServ!services@services.tilde.chat':
|
|
|
- if (line[3] == ':This' or line[3] == ':nick,' or line[3] == ':please' or line[3] == ':If' or line[3] == ':Password'):
|
|
|
+ if (line[3] == ':This' or line[3] == ':nick,' or line[2] == ':please' or line[3] == ':If' or line[3] == ':Password'):
|
|
|
loglevel = 450
|
|
|
else:
|
|
|
loglevel = 441
|