]> jfr.im git - solanum.git/commitdiff
override: Apply floodcount to override sends.
authorJilles Tjoelker <redacted>
Sun, 6 Feb 2011 14:50:58 +0000 (15:50 +0100)
committerJilles Tjoelker <redacted>
Sun, 6 Feb 2011 14:50:58 +0000 (15:50 +0100)
This avoids strange behaviour where quieting an override
oper lets them send more, and matches ircd-seven.

extensions/override.c

index 844be47bdf1c75cb0dcf63d4e09e53b2cea2fc5f..7c4fdf17abe7b31187bacb2d23d1bbc380f97e85 100644 (file)
@@ -192,7 +192,7 @@ hack_can_send(void *vdata)
        if (data->client->umodes & user_modes['p'])
        {
                update_session_deadline(data->client, NULL);
-               data->approved = CAN_SEND_OPV;
+               data->approved = CAN_SEND_NONOP;
 
 #ifdef XXX_UNSURE_IF_WANT
                sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s is using oper-override on %s (banwalking)",