This commit is contained in:
Luke Rogers 2013-10-09 10:49:16 +13:00
parent 12203d2580
commit 5258e13de2
1 changed files with 2 additions and 3 deletions

View File

@ -213,11 +213,10 @@ class IRC(object):
out = u"\x01{} {}\x01".format(ctcp_type, text)
self.cmd("PRIVMSG", [target, out])
def cmd(self, command, params=None):
if params:
params[-1] = ':' + params[-1]
self.send(command + ' ' + ' '.join(map(censor, params)))
params[-1] = u':' + params[-1]
self.send(u"{} {}".format(command, ' '.join(params)))
else:
self.send(command)