This commit is contained in:
Luke Rogers 2013-10-01 16:57:20 +13:00
parent 42a72f068e
commit cd30b053f6

View file

@ -205,11 +205,11 @@ class IRC(object):
self.channels.remove(channel) self.channels.remove(channel)
def msg(self, target, text): def msg(self, target, text):
""" makes the bot send a message to a user """ """ makes the bot send a PRIVMSG to a target """
self.cmd("PRIVMSG", [target, text]) self.cmd("PRIVMSG", [target, text])
def ctcp(self, target, ctcp_type, text): def ctcp(self, target, ctcp_type, text):
""" makes the bot send a message to a user """ """ makes the bot send a PRIVMSG CTCP to a target """
text = u"\x01{} {}\x01".format(ctcp_type, target) text = u"\x01{} {}\x01".format(ctcp_type, target)
self.cmd("PRIVMSG", [target, text]) self.cmd("PRIVMSG", [target, text])