X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/54a7996604bd3ae1ed65e2767be7180f6fa587bf..6a0074bfaa195daa621ec6348f2abc2720e65ab0:/extensions/filter.c diff --git a/extensions/filter.c b/extensions/filter.c index 882ff535..bebcbdfc 100644 --- a/extensions/filter.c +++ b/extensions/filter.c @@ -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); }