]> jfr.im git - irc/rizon/plexus4.git/commitdiff
m_chghost: update host of unknown clients in chgrealhost too
authorAdam <redacted>
Mon, 27 Feb 2017 14:44:26 +0000 (09:44 -0500)
committerAdam <redacted>
Mon, 27 Feb 2017 14:44:26 +0000 (09:44 -0500)
modules/m_chghost.c

index 7220118d306723ac62ed57bc90214a7aa0648782..21eb70c461cd1fa8f74b4103f577b95a8dada1bd 100644 (file)
@@ -183,6 +183,10 @@ me_chgrealhost(struct Client *client_p, struct Client *source_p, int parc, char
       SetUserHost(target_p);
     }
   }
+  else if (IsUnknown(target_p))
+  {
+    strlcpy(target_p->host, target_p->realhost, sizeof(target_p->host));
+  }
 
   if (MyConnect(target_p))
   {