doesn't work because of services capitalization?
This commit is contained in:
parent
a7abd6deb7
commit
810758a574
1 changed files with 10 additions and 9 deletions
19
irc.py
19
irc.py
|
@ -24,9 +24,9 @@ PchumLog = logging.getLogger('pchumLogger')
|
||||||
QString = str
|
QString = str
|
||||||
|
|
||||||
# Copied from pesterchum.py
|
# Copied from pesterchum.py
|
||||||
CUSTOMBOTS = ["CALSPRITE", "RANDOMENCOUNTER"]
|
#CUSTOMBOTS = ["CALSPRITE", "RANDOMENCOUNTER"]
|
||||||
BOTNAMES = ["NICKSERV", "CHANSERV", "MEMOSERV", "OPERSERV", "HELPSERV", "HOSTSERV", "BOTSERV"]
|
#BOTNAMES = ["NICKSERV", "CHANSERV", "MEMOSERV", "OPERSERV", "HELPSERV", "HOSTSERV", "BOTSERV"]
|
||||||
BOTNAMES.extend(CUSTOMBOTS)
|
#BOTNAMES.extend(CUSTOMBOTS)
|
||||||
|
|
||||||
#if ostools.isOSXBundle():
|
#if ostools.isOSXBundle():
|
||||||
# logging.basicConfig(level=logging.WARNING)
|
# logging.basicConfig(level=logging.WARNING)
|
||||||
|
@ -793,12 +793,13 @@ class PesterHandler(DefaultCommandHandler):
|
||||||
# If it fails the old code is excecuted.
|
# If it fails the old code is excecuted.
|
||||||
|
|
||||||
# If services/bot, assume mood 18.
|
# If services/bot, assume mood 18.
|
||||||
for c in chums:
|
# * This doesn't actually seem to work.
|
||||||
if c.handle.upper() in BOTNAMES:
|
#for c in chums:
|
||||||
print("True")
|
# if c.handle.upper() in BOTNAMES:
|
||||||
print(c.handle)
|
# print("True")
|
||||||
PchumLog.info("%s is a bot, setting mood to 18." % (c.handle))
|
# print(c.handle)
|
||||||
self.parent.moodUpdated.emit(c.handle, Mood(18))
|
# PchumLog.info("%s is a bot, setting mood to 18." % (c.handle))
|
||||||
|
# self.parent.moodUpdated.emit(c.handle, Mood(18))
|
||||||
# Wait for server to send welcome to verify RPL_ISUPPORT has been send.
|
# Wait for server to send welcome to verify RPL_ISUPPORT has been send.
|
||||||
# Apparently 005 is send after 001 so nvm we gotta wait longer :"3
|
# Apparently 005 is send after 001 so nvm we gotta wait longer :"3
|
||||||
timeout = 0
|
timeout = 0
|
||||||
|
|
Loading…
Reference in a new issue