extensions/umode_noctcp: skip privmsg_user hook except on recipient server
This commit is contained in:
parent
92f5320e1d
commit
b07445c6d9
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue