From 8dfda9ca4fe3d009820aba1390cec45d63442043 Mon Sep 17 00:00:00 2001 From: tpltnt Date: Fri, 14 Feb 2014 16:41:58 +0100 Subject: [PATCH] event code clarification --- irc_callback.go | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/irc_callback.go b/irc_callback.go index b90ecec..deb16ee 100644 --- a/irc_callback.go +++ b/irc_callback.go @@ -12,19 +12,9 @@ import ( // Register a callback to a connection and event code. A callback is a function -// which takes only an Event pointer as parameter. Valid event codes are: -// 001 - welcoming on the IRC network -// 437 - if nickname or channel are currently not available -// 433 - if nickname is currently in use -// CTCP_CLIENTINFO -// CTCP_PING -// CTCP_TIME -// CTCP_USERINFO -// CTCP_VERSION -// PING - if PING is received -// PONG - if PONG is received -// NICK - if nickname (in connection) matches current message -// This function returns the ID of the registered callback for later management. +// which takes only an Event pointer as parameter. Valid event codes are all +// IRC/CTCP commands and error/response codes. This function returns the ID of +// the registered callback for later management. func (irc *Connection) AddCallback(eventcode string, callback func(*Event)) string { eventcode = strings.ToUpper(eventcode)