]> jfr.im git - irc/rizon/plexus4.git/commitdiff
m_chghost: also set cgihost in chgrealhost
authorAdam <redacted>
Mon, 27 Feb 2017 14:26:21 +0000 (09:26 -0500)
committerAdam <redacted>
Mon, 27 Feb 2017 14:26:21 +0000 (09:26 -0500)
modules/m_chghost.c

index 14dec99de6ae00382f3ace02c5a0ba2d2e61de98..f158610d3732655aee407a70a457be0a73f53811 100644 (file)
@@ -163,6 +163,8 @@ me_chgrealhost(struct Client *client_p, struct Client *source_p, int parc, char
 
   if (target_p->cgisockhost == NULL)
     target_p->cgisockhost = xstrdup(target_p->sockhost);
+  if (target_p->cgihost == NULL)
+    target_p->cgihost = xstrdup(target_p->realhost);
 
   strlcpy(target_p->sockhost, parv[2], sizeof(target_p->sockhost));
   strlcpy(target_p->realhost, parv[3], sizeof(target_p->realhost));