]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_userhost.c
Revert all presence-related changes
[irc/rqf/shadowircd.git] / modules / m_userhost.c
index 766334caf47e4405ceb923b21a81b357a96052a1..108974e740dcc706544b6d5dae307e4425cc537c 100644 (file)
@@ -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) ? "*" : "",
-                                               (get_metadata(target_p, "away") != NULL) ? '-' : '+',
+                                               (target_p->user->away) ? '-' : '+',
                                                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) ? "*" : "",
-                                               (get_metadata(target_p, "away") != NULL) ? '-' : '+',
+                                               (target_p->user->away) ? '-' : '+',
                                                target_p->username, target_p->host);
                        }