X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/8e425f4137f87d4b537d60df4206b221889d2121..987ef7eb1f6c6e6bfb79fc0e7759702ff372ac7a:/modules/m_userhost.c diff --git a/modules/m_userhost.c b/modules/m_userhost.c index 108974e..766334c 100644 --- a/modules/m_userhost.c +++ b/modules/m_userhost.c @@ -84,7 +84,7 @@ m_userhost(struct Client *client_p, struct Client *source_p, int parc, const cha rl = rb_sprintf(response, "%s%s=%c%s@%s ", target_p->name, IsOper(target_p) ? "*" : "", - (target_p->user->away) ? '-' : '+', + (get_metadata(target_p, "away") != NULL) ? '-' : '+', target_p->username, target_p->sockhost); } @@ -93,7 +93,7 @@ m_userhost(struct Client *client_p, struct Client *source_p, int parc, const cha rl = rb_sprintf(response, "%s%s=%c%s@%s ", target_p->name, IsOper(target_p) ? "*" : "", - (target_p->user->away) ? '-' : '+', + (get_metadata(target_p, "away") != NULL) ? '-' : '+', target_p->username, target_p->host); }