IRC: added NAMES implementation + fixed wrong event code