]> jfr.im git - solanum.git/blobdiff - extensions/override.c
callerid: actually the guard should be for source_p
[solanum.git] / extensions / override.c
index 2d86f738c8e8e3caced3700fa4e6403447dd03d5..91b3d6eb38e9e2c5fdafbabff6cff031823922b9 100644 (file)
@@ -34,10 +34,10 @@ static void handle_client_exit(void *data);
 
 mapi_hfn_list_av1 override_hfnlist[] = {
        { "umode_changed", (hookfn) check_umode_change },
-       { "get_channel_access", (hookfn) hack_channel_access },
-       { "can_join", (hookfn) hack_can_join },
-       { "can_kick", (hookfn) hack_can_kick },
-       { "can_send", (hookfn) hack_can_send },
+       { "get_channel_access", (hookfn) hack_channel_access, HOOK_HIGHEST },
+       { "can_join", (hookfn) hack_can_join, HOOK_HIGHEST },
+       { "can_kick", (hookfn) hack_can_kick, HOOK_HIGHEST },
+       { "can_send", (hookfn) hack_can_send, HOOK_HIGHEST },
        { "client_exit", (hookfn) handle_client_exit },
        { NULL, NULL }
 };
@@ -131,8 +131,6 @@ check_umode_change(void *vdata)
                if (changed)
                {
                        update_session_deadline(source_p, NULL);
-                       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s has enabled oper-override (+p)",
-                                       get_oper_name(source_p));
                }
        }
        else if (changed && !(source_p->umodes & user_modes['p']))
@@ -146,9 +144,6 @@ check_umode_change(void *vdata)
                        if (session_p->client != source_p)
                                continue;
 
-                       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s has disabled oper-override (+p)",
-                                              get_oper_name(session_p->client));
-
                        rb_dlinkDelete(n, &overriding_opers);
                        rb_free(session_p);
                }