From 796deed9a65df133ae0f5ff05bf4cfa51a6b2982 Mon Sep 17 00:00:00 2001 From: Liam Stanley Date: Wed, 7 Jun 2017 06:59:31 -0400 Subject: [PATCH] add missing documentation --- commands.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands.go b/commands.go index 6d02df2..7bd4e54 100644 --- a/commands.go +++ b/commands.go @@ -140,6 +140,9 @@ func (cmd *Commands) Messagef(target, format string, a ...interface{}) error { return cmd.Message(target, fmt.Sprintf(format, a...)) } +// ErrInvalidSource is returned when a method needs to know the origin of an +// event, however Event.Source is unknown (e.g. sent by the user, not the +// server.) var ErrInvalidSource = errors.New("event has nil or invalid source address") // Reply sends a reply to channel or user, based on where the supplied event