]> jfr.im git - solanum.git/blobdiff - extensions/override.c
override: Send notice when overriding can_send.
[solanum.git] / extensions / override.c
index 844be47bdf1c75cb0dcf63d4e09e53b2cea2fc5f..bd31590dde4c1aa05d649583929742d280362926 100644 (file)
@@ -191,13 +191,14 @@ 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)",
-                                      get_oper_name(data->client), data->chptr->chname);
-#endif
+               if (MyClient(data->client))
+               {
+                       update_session_deadline(data->client, NULL);
+                       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s is using oper-override on %s (forcing message)",
+                                              get_oper_name(data->client), data->chptr->chname);
+               }
        }
 }