mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
review fix
This commit is contained in:
parent
6ea2eb367d
commit
8dd25f66bc
3 changed files with 7 additions and 3 deletions
|
|
@ -2067,6 +2067,10 @@ func dispatchMessageToTarget(client *Client, tags map[string]string, histType hi
|
|||
tnick := tDetails.nick
|
||||
|
||||
details := client.Details()
|
||||
if details.account == "" && server.Defcon() <= 3 {
|
||||
rb.Add(nil, server.name, ERR_NEEDREGGEDNICK, client.Nick(), tnick, client.t("Direct messages from unregistered users are temporarily restricted"))
|
||||
return
|
||||
}
|
||||
nickMaskString := details.nickMask
|
||||
accountName := details.accountName
|
||||
var deliverySessions []*Session
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue