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 }
};
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;
}
}
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;
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);
}
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);
}