]> jfr.im git - solanum.git/blobdiff - extensions/filter.c
add help for `chm_regmsg`
[solanum.git] / extensions / filter.c
index 882ff53592f1b4f896d5ccae57166648d782af31..bebcbdfcab8c8757e746a972ddf75de236ca2024 100644 (file)
@@ -90,10 +90,10 @@ static char check_str[21] = "";
 static unsigned filter_chmode, filter_umode;
 
 mapi_hfn_list_av1 filter_hfnlist[] = {
-       { "privmsg_user", (hookfn) filter_msg_user },
-       { "privmsg_channel", (hookfn) filter_msg_channel },
-       { "client_quit", (hookfn) filter_client_quit },
-       { "client_exit", (hookfn) on_client_exit },
+       { "privmsg_user", filter_msg_user },
+       { "privmsg_channel", filter_msg_channel },
+       { "client_quit", filter_client_quit },
+       { "client_exit", on_client_exit },
        { NULL, NULL }
 };
 
@@ -141,13 +141,13 @@ setfilter(const char *check, const char *data, const char **error)
 
        if (!strcasecmp(data, "disable")) {
                filter_enable = 0;
-               sendto_realops_snomask(SNO_GENERAL, L_ALL | L_NETWIDE,
+               sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
                        "Filtering disabled.");
                return 0;
        }
        if (!strcasecmp(data, "enable")) {
                filter_enable = 1;
-               sendto_realops_snomask(SNO_GENERAL, L_ALL | L_NETWIDE,
+               sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
                        "Filtering enabled.");
                return 0;
        }
@@ -217,7 +217,7 @@ setfilter(const char *check, const char *data, const char **error)
                }
                state = FILTER_LOADED;
                filter_db = db;
-               sendto_realops_snomask(SNO_GENERAL, L_ALL | L_NETWIDE,
+               sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
                        "New filters loaded.");
                rb_free(filter_data);
                filter_data = 0;
@@ -408,7 +408,7 @@ filter_msg_user(void *data_)
                data->approved = 1;
        }
        if (r & ACT_ALARM) {
-               sendto_realops_snomask(SNO_GENERAL, L_ALL | L_NETWIDE,
+               sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
                        "FILTER: %s!%s@%s [%s]",
                        s->name, s->username, s->host, s->sockhost);
        }
@@ -449,7 +449,7 @@ filter_msg_channel(void *data_)
                data->approved = 1;
        }
        if (r & ACT_ALARM) {
-               sendto_realops_snomask(SNO_GENERAL, L_ALL | L_NETWIDE,
+               sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
                        "FILTER: %s!%s@%s [%s]",
                        s->name, s->username, s->host, s->sockhost);
        }