From 2d48faa5c46165c1706b7d4d041585b661dd3b0f Mon Sep 17 00:00:00 2001 From: Justin Date: Fri, 7 Aug 2015 17:49:11 -0700 Subject: [PATCH] Added support for IRC MOTD command --- commands.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/commands.go b/commands.go index 86ab570..0502c8f 100644 --- a/commands.go +++ b/commands.go @@ -672,3 +672,9 @@ func NamesHandler(message *irc.Message, client *Client) { } } } + +// MOTDHandler is a specialized CommandHandler to respond to channel IRC MOTD commands from a client +// Implemented according to RFC 1459 Section 8.5 and RFC 2812 Section 3.4.1 +func MOTDHandler(message *irc.Message, client *Client) { + client.MOTD() +}