Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / whowas.c
index b8b12f3b706db721e8d317a690b6d9d3fe6666f0..61774d7e9dc5b6c2f1a3cf98ee6d596f41c212ab 100644 (file)
@@ -191,7 +191,7 @@ void add_history(struct Client *cptr, int still_on)
   /* Should be changed to server numeric */
   DupString(ww.newww->servername, cli_name(cli_user(cptr)->server));
   DupString(ww.newww->realname, cli_info(cptr));
-  if (cptr->user->away)
+  if (cli_user(cptr)->away)
     DupString(ww.newww->away, cli_user(cptr)->away);
   else
     ww.newww->away = NULL;