From b6f807dfdc9d105fbc26521718e5dbf470273c93 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Tue, 8 Nov 2016 07:07:31 +1000 Subject: [PATCH] commands: Use ERR_NOTREGISTERED when appropriate --- irc/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/commands.go b/irc/commands.go index b2eba506..8641e05a 100644 --- a/irc/commands.go +++ b/irc/commands.go @@ -21,7 +21,7 @@ type Command struct { // Run runs this command with the given client/message. func (cmd *Command) Run(server *Server, client *Client, msg ircmsg.IrcMessage) bool { if !client.registered && !cmd.usablePreReg { - // command silently ignored + client.Send(nil, server.name, ERR_NOTREGISTERED, client.nick, "You need to register before you can use that command") return false } if cmd.oper && !client.flags[Operator] {