#include "numeric.h"
#include "s_serv.h"
#include "send.h"
-#include "irc_string.h"
+#include "match.h"
#include "msg.h"
#include "parse.h"
#include "modules.h"
int cur_len;
int rl;
- cur_len = rb_sprintf(buf, form_str(RPL_USERHOST), me.name, parv[0], "");
+ cur_len = rb_sprintf(buf, form_str(RPL_USERHOST), me.name, source_p->name, "");
t = buf + cur_len;
for (i = 1; i <= 5; i++)
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);
}
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);
}