From 49d595f60c3f284f9b86a042c96e6bda9e9122ce Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Fri, 17 Apr 2020 09:27:16 +0200 Subject: [PATCH] On *LINE removal it showed the wrong person in the notice sent to IRCOps (on remote servers). It showed the originally setter and not the remover. Reported by k4be in https://bugs.unrealircd.org/view.php?id=5629 --- src/modules/tkl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/tkl.c b/src/modules/tkl.c index 76d83dfec..a69a347b1 100644 --- a/src/modules/tkl.c +++ b/src/modules/tkl.c @@ -4208,8 +4208,11 @@ CMD_FUNC(cmd_tkl_del) RunHook2(HOOKTYPE_TKL_DEL, client, tkl); if (type & TKL_GLOBAL) + { + /* This is a bit of a hack for #5629. Will consider real fix post-release. */ + safe_strdup(tkl->set_by, removed_by); tkl_broadcast_entry(0, client, client, tkl); - + } if (TKLIsBanException(tkl)) {