Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / m_userip.c
index c7b5e01441b79d5e00cd9fbedba91f3716591ccf..4fa321d02fe77dfa8daab53ef194298c7ee4d984 100644 (file)
 static void userip_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,
-             ircd_ntoa((const char*) &cptr->ip));
+  msgq_append(0, mb, "%s%s=%c%s@%s", cli_name(cptr), IsAnOper(cptr) ? "*" : "",
+             cli_user(cptr)->away ? '-' : '+', cli_user(cptr)->username,
+             ircd_ntoa((const char*) &(cli_ip(cptr))));
 }
 
 /*