def irc_ctcp_request_CLIENTINFO(self, client, source, target, args): all_handlers = client.get_handled_events() ctcps = [] for handler in all_handlers: if handler[:13] == "ctcp_request_": h = handler[13:] ctcps.append(h) client.send(message.notice(source.nick, util.ctcp("CLIENTINFO", ' '.join(ctcps))))
def irc_ctcp_request_PING(self, client, source, target, args): if args: client.send(message.notice(source.nick, util.ctcp("PING", args))) else: client.send(message.notice(source.nick, util.ctcp("PING")))
def irc_ctcp_request_VERSION(self, client, source, target, args): client.send(message.notice(source.nick, util.ctcp("VERSION", self.version)))