def _redispatch_kick(message): kicker = get_user(message.source) channel, kickee, reason = 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_nick(message): old_user = get_user(message.source) new_nick = message.params[0] if old_user.nick == message.client.nickname: message.client.nickname = new_nick signal("nick").send(message, user=old_user, new_nick=new_nick)
def _redispatch_left(message): user = get_user(message.params[1]) channel = message.params[0] signal("left").send(message, user=user, channel=channel)
def _redispatch_quit(message): signal("quit").send(message, user=get_user(message.source), reason=message.params[0])
def _redispatch_joined(message): user = get_user(message.params[1]) channel = message.params[0] signal("joined").send(message, user=user, channel=channel)