Skip to content

Commit ed775e9

Browse files
authored
Make auto-accept on message conditional on oper:always_message, not oper:general. This updates the test to match current behaviour of +g
1 parent d03347c commit ed775e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/um_callerid.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ add_callerid_accept_for_source(enum message_type msgtype, struct Client *source_
184184
if(msgtype != MESSAGE_TYPE_NOTICE &&
185185
IsSetAnyCallerID(source_p) &&
186186
!accept_message(target_p, source_p) &&
187-
!IsOperGeneral(target_p))
187+
!MayHavePrivilege(source_p, "oper:always_message"))
188188
{
189189
if(rb_dlink_list_length(&source_p->localClient->allow_list) <
190190
(unsigned long)ConfigFileEntry.max_accept)

0 commit comments

Comments
 (0)