From 947826a27b1ade5c67b3e420c13e049bb3d035bf Mon Sep 17 00:00:00 2001 From: xnrand Date: Sat, 9 Jan 2021 16:35:10 +0000 Subject: [PATCH] os_klinechan: Make warning similar to entrymsgs ChanServ entrymsgs are formatted like "[#channel] message". This change changes os_klinechan to have its warning notice conform to the same format. As a result, IRC clients are able to display the warning notice in the affected channel. --- os_klinechan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_klinechan.c b/os_klinechan.c index 47c0e7127..098170dac 100644 --- a/os_klinechan.c +++ b/os_klinechan.c @@ -38,7 +38,7 @@ klinechan_check_join(hook_channel_joinpart_t *hdata) khost = cu->user->ip ? cu->user->ip : cu->user->host; if (has_priv_user(cu->user, PRIV_JOIN_STAFFONLY)) notice(svs->me->nick, cu->user->nick, - "Warning: %s klines normal users", + "[%s] Warning: This channel klines normal users", cu->chan->name); else if (is_autokline_exempt(cu->user)) {