Skip to content

Commit

Permalink
um_regonlymsg: check source identified before scanning /accept list
Browse files Browse the repository at this point in the history
  • Loading branch information
dwfreed authored and aaronmdjones committed Nov 1, 2022
1 parent 20502fc commit d27fba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/um_regonlymsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ allow_message(struct Client *source_p, struct Client *target_p)
if (IsOper(source_p))
return true;

if (accept_message(source_p, target_p))
if (source_p->user->suser[0])
return true;

if (source_p->user->suser[0])
if (accept_message(source_p, target_p))
return true;

return false;
Expand Down

0 comments on commit d27fba3

Please sign in to comment.