From 649bda6d5da3d895206853e1c65839033fae4434 Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Thu, 20 Sep 2018 19:02:19 +0000 Subject: [PATCH] filter: make the kill reason more honest --- extensions/filter.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/filter.c b/extensions/filter.c index 1268f45c..6f7beb52 100644 --- a/extensions/filter.c +++ b/extensions/filter.c @@ -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); } }