.BANCHO. .FIX. Fix some issues with spaced usernames on IRC

This commit is contained in:
Nyo 2016-09-04 17:53:12 +02:00
parent f5a34d9048
commit 17a8636de7
1 changed files with 1 additions and 0 deletions

View File

@ -435,6 +435,7 @@ class Client:
message = arguments[1]
# Send the message to bancho and reply
recipient = chat.fixUsernameForBancho(recipient)
response = chat.sendMessage(self.banchoUsername, recipient, message, toIRC=False)
if response == 404:
self.replyCode(404, "Cannot send to channel", channel=recipient)