text);
unsigned r = match_message(check_buffer);
rb_free(text);
- if (r & (ACT_DROP | ACT_KILL)) {
+ if (r & ACT_DROP) {
+ sendto_one_numeric(s, ERR_CANNOTSENDTOCHAN,
+ form_str(ERR_CANNOTSENDTOCHAN),
+ data->target_p->name);
data->approved = 1;
}
if (r & ACT_ALARM) {
s->name, s->username, s->host, s->sockhost);
}
if (r & ACT_KILL) {
+ data->approved = 1;
exit_client(NULL, s, s, "Excess flood");
}
}
text);
unsigned r = match_message(check_buffer);
rb_free(text);
- if (r & (ACT_DROP | ACT_KILL)) {
+ if (r & ACT_DROP) {
+ sendto_one_numeric(s, ERR_CANNOTSENDTOCHAN,
+ form_str(ERR_CANNOTSENDTOCHAN),
+ data->chptr->chname);
data->approved = 1;
}
if (r & ACT_ALARM) {
s->name, s->username, s->host, s->sockhost);
}
if (r & ACT_KILL) {
+ data->approved = 1;
exit_client(NULL, s, s, "Excess flood");
}
}
/* 401 ERR_NOSUCHNICK, */ "%s :No such nick/channel",
/* 402 ERR_NOSUCHSERVER, */ "%s :No such server",
/* 403 ERR_NOSUCHCHANNEL, */ "%s :No such channel",
-/* 404 ERR_CANNOTSENDTOCHAN, */ "%s :Cannot send to channel",
+/* 404 ERR_CANNOTSENDTOCHAN, */ "%s :Cannot send to nick/channel",
/* 405 ERR_TOOMANYCHANNELS, */ ":%s 405 %s %s :You have joined too many channels",
/* 406 ERR_WASNOSUCHNICK, */ ":%s 406 %s %s :There was no such nickname",
/* 407 ERR_TOOMANYTARGETS, */ ":%s 407 %s %s :Too many recipients.",