diff --git a/src/modules/targetfloodprot.c b/src/modules/targetfloodprot.c index 3094013d5..be1e4d5b3 100644 --- a/src/modules/targetfloodprot.c +++ b/src/modules/targetfloodprot.c @@ -234,8 +234,8 @@ int targetfloodprot_can_send_to_channel(Client *client, Channel *channel, Member if (!MyUser(client)) return HOOK_CONTINUE; - /* Really, only IRCOps override */ - if (IsOper(client) && ValidatePermissionsForPath("immune:target-flood",client,NULL,channel,NULL)) + /* IRCOps and U-Lines override */ + if (IsULine(client) || (IsOper(client) && ValidatePermissionsForPath("immune:target-flood",client,NULL,channel,NULL))) return HOOK_CONTINUE; what = sendtypetowhat(sendtype); @@ -280,8 +280,8 @@ int targetfloodprot_can_send_to_user(Client *client, Client *target, char **text if (!MyUser(target)) return HOOK_CONTINUE; - /* Really, only IRCOps override */ - if (IsOper(client) && ValidatePermissionsForPath("immune:target-flood",client,target,NULL,NULL)) + /* IRCOps and U-Lines override */ + if (IsULine(client) || (IsOper(client) && ValidatePermissionsForPath("immune:target-flood",client,target,NULL,NULL))) return HOOK_CONTINUE; what = sendtypetowhat(sendtype);