Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / m_userhost.c
index c59e3350a57b7accf22054e983ebadb9017f5246..d8ffb955dc480daf1cd03d7b6a8fb016e4585b7e 100644 (file)
 static void userhost_formatter(struct Client* cptr, struct MsgBuf* mb)
 {
   assert(IsUser(cptr));
-  msgq_append(0, mb, "%s%s=%c%s@%s", cptr->name, IsAnOper(cptr) ? "*" : "",
-             cptr->user->away ? '-' : '+', cptr->user->username,
-             cptr->user->host);
+  msgq_append(0, mb, "%s%s=%c%s@%s", cli_name(cptr), IsAnOper(cptr) ? "*" : "",
+             cli_user(cptr)->away ? '-' : '+', cli_user(cptr)->username,
+             cli_user(cptr)->host);
 }
 
 /*