def _redispatch_kick(message): kicker = get_user(message.source) channel, kickee, reason = get_channel(message.params[0]), get_user( message.params[1]), message.params[2] signal("kick").send(message, kicker=kicker, kickee=kickee, channel=channel, reason=reason)
def _redispatch_part(message): user = get_user(message.source) channel, reason = get_channel(message.params[0]), None if len(message.params) > 1: reason = message.params[1] signal("part").send(message, user=user, channel=channel, reason=reason)
def _redispatch_join(message): user = get_user(message.source) channel = get_channel(message.params[0]) signal("join").send(message, user=user, channel=channel)
def _redispatch_kick(message): kicker = get_user(message.source) channel, kickee, reason = get_channel(message.params[0]), get_user(message.params[1]), message.params[2] signal("kick").send(message, kicker=kicker, kickee=kickee, channel=channel, reason=reason)