From 6d6a4e3311a1782e3ece4b8aff8fcebcac34ac3d Mon Sep 17 00:00:00 2001 From: boreq Date: Fri, 10 Aug 2018 02:04:31 +0200 Subject: [PATCH] Improve AddCallback documentation --- irc_callback.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/irc_callback.go b/irc_callback.go index 15e7191..bf361e2 100644 --- a/irc_callback.go +++ b/irc_callback.go @@ -8,8 +8,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 all -// IRC/CTCP commands and error/response codes. This function returns the ID of -// the registered callback for later management. +// IRC/CTCP commands and error/response codes. To register a callback for all +// events pass "*" as the event code. This function returns the ID of the +// registered callback for later management. func (irc *Connection) AddCallback(eventcode string, callback func(*Event)) int { eventcode = strings.ToUpper(eventcode) id := 0