extensions/umode_noctcp: skip privmsg_user hook except on recipient server

This commit is contained in:
Ariadne Conill 2020-07-10 18:06:51 -06:00
parent 92f5320e1d
commit b07445c6d9

View file

@ -42,6 +42,9 @@ mapi_hfn_list_av1 umode_noctcp_hfnlist[] = {
static void static void
umode_noctcp_process(hook_data_privmsg_user *data) { umode_noctcp_process(hook_data_privmsg_user *data) {
if (!MyClient(data->target_p))
return;
if (data->approved || data->msgtype == MESSAGE_TYPE_NOTICE) { if (data->approved || data->msgtype == MESSAGE_TYPE_NOTICE) {
return; return;
} }