mirror of
https://github.com/ergochat/ergo.git
synced 2025-01-30 22:24:13 +01:00
Merge branch 'develop' of https://github.com/DanielOaks/oragono into develop
This commit is contained in:
commit
4a22311156
@ -21,7 +21,7 @@ type Command struct {
|
|||||||
// Run runs this command with the given client/message.
|
// Run runs this command with the given client/message.
|
||||||
func (cmd *Command) Run(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
func (cmd *Command) Run(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
||||||
if !client.registered && !cmd.usablePreReg {
|
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
|
return false
|
||||||
}
|
}
|
||||||
if cmd.oper && !client.flags[Operator] {
|
if cmd.oper && !client.flags[Operator] {
|
||||||
|
Loading…
Reference in New Issue
Block a user