Refine the output.

pull/1/head
Simon Quigley 7 years ago
parent 60937be7c6
commit dfa8d3deba

@ -112,7 +112,7 @@ def ircbot(message):
# Put the task status in the message. # Put the task status in the message.
sendmessage = sendmessage + ", " + taskinfo["statusName"] + "\x03" sendmessage = sendmessage + ", " + taskinfo["statusName"] + "\x03"
sendmessage = sendmessage + "\x033]\x03" sendmessage = sendmessage + "\x033]\x03 "
# Put the title in there as well. # Put the title in there as well.
sendmessage = sendmessage + taskinfo["title"].strip() + ": " sendmessage = sendmessage + taskinfo["title"].strip() + ": "
@ -124,7 +124,7 @@ def ircbot(message):
sendnotice(sendmessage) sendnotice(sendmessage)
# If someone wrote something like "Tblah", obviously that's not right. # If someone wrote something like "Tblah", obviously that's not right.
except ValueError: except ValueError:
sendnotice("Error: " + item.strip() + "is an invalid task reference.") sendnotice("\x034Error: " + item.strip() + "is an invalid task reference.\x03")
def listenirc(): def listenirc():
while True: while True:

Loading…
Cancel
Save