/* Only opers can change other users modes */
if ((source != dest) && (!*source->oper))
return MODEACTION_DENY;
-
+
+ /* For remote clients, we dont take any action, we just allow it.
+ * The local server where they are will set their cloak instead.
+ */
+ if (!IS_LOCAL(dest))
+ return MODEACTION_ALLOW;
+
if (adding)
{
if(!dest->IsModeSet('x'))
char ra[64];
this->GenHash(dest->host,ra);
std::string b = "";
- in_addr testaddr;
+ insp_inaddr testaddr;
std::string hostcloak = prefix + "-" + std::string(ra) + a;
/* Fix by brain - if the cloaked host is > the max length of a host (64 bytes