From b6c3a233eb1bc6a45dbdaf5dc42434d197a0b408 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Wed, 2 Oct 2013 00:09:57 +1300 Subject: [PATCH] fixed CTCP --- core/irc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/irc.py b/core/irc.py index 4f79045..f268827 100755 --- a/core/irc.py +++ b/core/irc.py @@ -210,8 +210,8 @@ class IRC(object): def ctcp(self, target, ctcp_type, text): """ makes the bot send a PRIVMSG CTCP to a target """ - text = u"\x01{} {}\x01".format(ctcp_type, target) - self.cmd("PRIVMSG", [target, text]) + out = u"\x01{} {}\x01".format(ctcp_type, text) + self.cmd("PRIVMSG", [target, out]) def cmd(self, command, params=None):