summaryrefslogtreecommitdiff
path: root/modules/m_who.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/m_who.c')
-rw-r--r--modules/m_who.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/m_who.c b/modules/m_who.c
index 9027310..9e34bcc 100644
--- a/modules/m_who.c
+++ b/modules/m_who.c
@@ -51,13 +51,15 @@ static void
do_who(struct Client *source_p, struct Client *target_p,
const char *chname, const char *op_flags)
{
- char status[7]; /* G*@%+\0 */
+ char status[8]; /* G*@%+\0 */
if (HasUMode(source_p, UMODE_OPER))
- snprintf(status, sizeof(status), "%c%s%s", target_p->away[0] ? 'G' : 'H',
+ snprintf(status, sizeof(status), "%c%s%s%s", target_p->away[0] ? 'G' : 'H',
+ HasUMode(target_p, UMODE_REGISTERED) ? "r" : "",
HasUMode(target_p, UMODE_OPER) ? "*" : "", op_flags);
else
- snprintf(status, sizeof(status), "%c%s%s", target_p->away[0] ? 'G' : 'H',
+ snprintf(status, sizeof(status), "%c%s%s%s", target_p->away[0] ? 'G' : 'H',
+ HasUMode(target_p, UMODE_REGISTERED) ? "r" : "",
HasUMode(target_p, UMODE_OPER) &&
!HasUMode(target_p, UMODE_HIDDEN) ? "*" : "", op_flags);