forked from External/ergo
miscellaneous review fixes
This commit is contained in:
parent
82732d5b5d
commit
8f4c14c783
4 changed files with 14 additions and 8 deletions
|
|
@ -1914,7 +1914,7 @@ func dispatchMessageToTarget(client *Client, tags map[string]string, histType hi
|
|||
var deliverySessions []*Session
|
||||
// restrict messages appropriately when +R is set
|
||||
// intentionally make the sending user think the message went through fine
|
||||
allowedPlusR := !user.HasMode(modes.RegisteredOnly) || details.account != ""
|
||||
allowedPlusR := details.account != "" || !user.HasMode(modes.RegisteredOnly)
|
||||
if allowedPlusR {
|
||||
deliverySessions = append(deliverySessions, user.Sessions()...)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue