filter: make the kill reason more honest
This commit is contained in:
parent
d928bc7af3
commit
649bda6d5d
1 changed files with 4 additions and 2 deletions
|
@ -47,6 +47,8 @@
|
|||
#define FILTER_USER 0
|
||||
#define FILTER_HOST 0
|
||||
|
||||
#define FILTER_EXIT_MSG "Connection closed"
|
||||
|
||||
static void filter_msg_user(void *data);
|
||||
static void filter_msg_channel(void *data);
|
||||
static void on_client_exit(void *data);
|
||||
|
@ -351,7 +353,7 @@ filter_msg_user(void *data_)
|
|||
}
|
||||
if (r & ACT_KILL) {
|
||||
data->approved = 1;
|
||||
exit_client(NULL, s, s, "Excess flood");
|
||||
exit_client(NULL, s, s, FILTER_EXIT_MSG);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -389,7 +391,7 @@ filter_msg_channel(void *data_)
|
|||
}
|
||||
if (r & ACT_KILL) {
|
||||
data->approved = 1;
|
||||
exit_client(NULL, s, s, "Excess flood");
|
||||
exit_client(NULL, s, s, FILTER_EXIT_MSG);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue