]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Fix a silly bug.
authorGunnar Beutner <redacted>
Mon, 5 Aug 2013 17:46:15 +0000 (19:46 +0200)
committerGunnar Beutner <redacted>
Mon, 5 Aug 2013 17:46:15 +0000 (19:46 +0200)
--HG--
branch : shroudtrusts

whowas/whowas.c

index 1269f23e1ffcb40a3f6addfa7288f0f73a9f035d..7d62f6a19a92b5e3924037b010483e50743c5774 100644 (file)
@@ -34,9 +34,9 @@ whowas *whowas_fromnick(nick *np) {
   wnp->realname = newrealname();
   memset(wnp->realname, 0, sizeof(realname));
   wnp->realname->name = getsstring(np->realname->name->content, REALLEN);
-  wnp->shident = np->away ? getsstring(np->shident->content, 512) : NULL;
-  wnp->sethost = np->away ? getsstring(np->sethost->content, 512) : NULL;
-  wnp->opername = np->away ? getsstring(np->opername->content, 512) : NULL;
+  wnp->shident = np->shident ? getsstring(np->shident->content, 512) : NULL;
+  wnp->sethost = np->sethost ? getsstring(np->sethost->content, 512) : NULL;
+  wnp->opername = np->opername ? getsstring(np->opername->content, 512) : NULL;
   wnp->umodes = np->umodes;
   if (np->auth) {
     wnp->auth = newauthname();