Make auto-accept on message conditional on oper:always_message, not oper:general. This updates the test to match current behaviour of +g

This commit is contained in:
Stephen Bennett 2022-11-03 14:43:59 +00:00 committed by GitHub
parent d03347cbb6
commit ed775e9bb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,7 +184,7 @@ add_callerid_accept_for_source(enum message_type msgtype, struct Client *source_
if(msgtype != MESSAGE_TYPE_NOTICE &&
IsSetAnyCallerID(source_p) &&
!accept_message(target_p, source_p) &&
!IsOperGeneral(target_p))
!MayHavePrivilege(source_p, "oper:always_message"))
{
if(rb_dlink_list_length(&source_p->localClient->allow_list) <
(unsigned long)ConfigFileEntry.max_accept)