From b07445c6d96ae4002fcec19453e2e12aabe3812b Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 10 Jul 2020 18:06:51 -0600 Subject: [PATCH] extensions/umode_noctcp: skip privmsg_user hook except on recipient server --- extensions/umode_noctcp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/umode_noctcp.c b/extensions/umode_noctcp.c index bb1b6490..0a485733 100644 --- a/extensions/umode_noctcp.c +++ b/extensions/umode_noctcp.c @@ -42,6 +42,9 @@ mapi_hfn_list_av1 umode_noctcp_hfnlist[] = { static void umode_noctcp_process(hook_data_privmsg_user *data) { + if (!MyClient(data->target_p)) + return; + if (data->approved || data->msgtype == MESSAGE_TYPE_NOTICE) { return; }