1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 02:53:13 +02:00

Fix new user mode +Z (secureonlymsg) not working properly across

server links. Reported by HeXiLeD (#4953).
This commit is contained in:
Bram Matthys
2017-05-28 09:41:11 +02:00
parent ffc5f0ce44
commit 6c3c55b4e5
+2 -2
View File
@@ -60,7 +60,7 @@ MOD_UNLOAD(secureonlymsg)
char *secureonlymsg_pre_usermsg(aClient *sptr, aClient *target, char *text, int notice)
{
if (IsSecureOnlyMsg(target) && !IsServer(sptr) && !IsULine(sptr) && !IsSecure(sptr))
if (IsSecureOnlyMsg(target) && !IsServer(sptr) && !IsULine(sptr) && !IsSecureConnect(sptr))
{
if (ValidatePermissionsForPath("override:message:secureonly",sptr,target,NULL,text))
return text; /* TODO: this is actually an override */
@@ -75,7 +75,7 @@ char *secureonlymsg_pre_usermsg(aClient *sptr, aClient *target, char *text, int
return NULL; /* Block the message */
} else
if (IsSecureOnlyMsg(sptr) && !IsSecure(target) && !IsULine(target))
if (IsSecureOnlyMsg(sptr) && !IsSecureConnect(target) && !IsULine(target))
{
if (ValidatePermissionsForPath("override:message:secureonly",sptr,target,NULL,text))
return text; /* TODO: this is actually an override */