Reenabled CTCP (when not in Low-Bandwidth mode - restart after setting to see effects)
This commit is contained in:
parent
d4d32452cc
commit
63c684c291
2 changed files with 9 additions and 1 deletions
7
irc.py
7
irc.py
|
@ -362,7 +362,7 @@ class PesterHandler(DefaultCommandHandler):
|
||||||
if chan != "#pesterchum":
|
if chan != "#pesterchum":
|
||||||
# We don't need anywhere near that much spam.
|
# We don't need anywhere near that much spam.
|
||||||
logging.info("---> recv \"PRIVMSG %s :%s\"" % (handle, msg))
|
logging.info("---> recv \"PRIVMSG %s :%s\"" % (handle, msg))
|
||||||
else:
|
elif chan == "#pesterchum":
|
||||||
# follow instructions
|
# follow instructions
|
||||||
if msg[0:6] == "MOOD >":
|
if msg[0:6] == "MOOD >":
|
||||||
try:
|
try:
|
||||||
|
@ -405,6 +405,11 @@ class PesterHandler(DefaultCommandHandler):
|
||||||
if not self.mainwindow.config.lowBandwidth():
|
if not self.mainwindow.config.lowBandwidth():
|
||||||
helpers.join(self.client, "#pesterchum")
|
helpers.join(self.client, "#pesterchum")
|
||||||
helpers.msg(self.client, "#pesterchum", "MOOD >%d" % (mymood))
|
helpers.msg(self.client, "#pesterchum", "MOOD >%d" % (mymood))
|
||||||
|
# We override the +T that's set by default, for now, to reenable
|
||||||
|
# CTCP communication.
|
||||||
|
# Because of the potential for spam, Low Bandwidth mode still
|
||||||
|
# disables this...this will likely change in the future.
|
||||||
|
helpers.mode(self.client, mychumhandle, "-T")
|
||||||
|
|
||||||
def nicknameinuse(self, server, cmd, nick, msg):
|
def nicknameinuse(self, server, cmd, nick, msg):
|
||||||
newnick = "pesterClient%d" % (random.randint(100,999))
|
newnick = "pesterClient%d" % (random.randint(100,999))
|
||||||
|
|
|
@ -358,6 +358,9 @@ def kxsplitMsg(lexed, fmt="pchum", maxlen=None, debug=False):
|
||||||
# TODO: There's presently an issue where certain combinations of color
|
# TODO: There's presently an issue where certain combinations of color
|
||||||
# codes end up being added as a separate, empty line. This is a bug, of
|
# codes end up being added as a separate, empty line. This is a bug, of
|
||||||
# course, and should be looked into.
|
# course, and should be looked into.
|
||||||
|
# TODO: This may not work properly with unicode! Because IRC doesn't
|
||||||
|
# formally use it, it should probably use the lengths of the decomposed
|
||||||
|
# characters...ugh.
|
||||||
lexed = list(lexed)
|
lexed = list(lexed)
|
||||||
working = []
|
working = []
|
||||||
output = []
|
output = []
|
||||||
|
|
Loading…
Reference in a new issue