mirror of
https://github.com/ergochat/ergo.git
synced 2025-02-16 21:50:39 +01:00
fix #463
This commit is contained in:
parent
02d5da7cfa
commit
b8ca8ec852
@ -534,6 +534,11 @@ func (channel *Channel) Join(client *Client, key string, isSajoin bool, rb *Resp
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !hasPrivs && channel.flags.HasMode(modes.RegisteredOnly) && details.account == "" && !isInvited {
|
||||||
|
rb.Add(nil, client.server.name, ERR_BANNEDFROMCHAN, details.nick, chname, client.t("You must be registered to join that channel"))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
client.server.logger.Debug("join", fmt.Sprintf("%s joined channel %s", details.nick, chname))
|
client.server.logger.Debug("join", fmt.Sprintf("%s joined channel %s", details.nick, chname))
|
||||||
|
|
||||||
var message utils.SplitMessage
|
var message utils.SplitMessage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user