]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/whowas.c
Remove dot_in_ip6_addr config option.
[irc/rqf/shadowircd.git] / src / whowas.c
index 01279f72fd1550f9427b6a3ea1fc51f6f55168a4..880826fc9011511d425218bb6f547958c5d82910 100644 (file)
@@ -39,6 +39,7 @@
 #include "send.h"
 #include "s_conf.h"
 #include "memory.h"
+#include "scache.h"
 
 /* internally defined function */
 static void add_whowas_to_clist(struct Whowas **, struct Whowas *);
@@ -86,7 +87,7 @@ void add_history(struct Client *client_p, int online)
        else
                who->sockhost[0] = '\0';
 
-       who->servername = client_p->user->server;
+       who->servername = scache_get_name(client_p->servptr->serv->nameinfo);
 
        if(online)
        {