mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-26 17:18:09 -07:00
+I should allow unregistered users to join a +R channel
See #1858: this was the intent all along, but I missed this issue.
This commit is contained in:
+2
-1
@@ -780,7 +780,8 @@ func (channel *Channel) Join(client *Client, key string, isSajoin bool, rb *Resp
|
|||||||
}
|
}
|
||||||
|
|
||||||
if details.account == "" &&
|
if details.account == "" &&
|
||||||
(channel.flags.HasMode(modes.RegisteredOnly) || channel.server.Defcon() <= 2) {
|
(channel.flags.HasMode(modes.RegisteredOnly) || channel.server.Defcon() <= 2) &&
|
||||||
|
!channel.lists[modes.InviteMask].Match(details.nickMaskCasefolded) {
|
||||||
return errRegisteredOnly, forward
|
return errRegisteredOnly, forward
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user