fixed CTCP
This commit is contained in:
parent
cfe9ebd054
commit
b6c3a233eb
1 changed files with 2 additions and 2 deletions
|
@ -210,8 +210,8 @@ class IRC(object):
|
||||||
|
|
||||||
def ctcp(self, target, ctcp_type, text):
|
def ctcp(self, target, ctcp_type, text):
|
||||||
""" makes the bot send a PRIVMSG CTCP to a target """
|
""" makes the bot send a PRIVMSG CTCP to a target """
|
||||||
text = u"\x01{} {}\x01".format(ctcp_type, target)
|
out = u"\x01{} {}\x01".format(ctcp_type, text)
|
||||||
self.cmd("PRIVMSG", [target, text])
|
self.cmd("PRIVMSG", [target, out])
|
||||||
|
|
||||||
|
|
||||||
def cmd(self, command, params=None):
|
def cmd(self, command, params=None):
|
||||||
|
|
Reference in a new issue