diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_userip.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/m_userip.cpp b/src/modules/m_userip.cpp index 79ad1c9d6..77f3474f9 100644 --- a/src/modules/m_userip.cpp +++ b/src/modules/m_userip.cpp @@ -35,7 +35,12 @@ class CommandUserip : public Command User *u = ServerInstance->FindNick(parameters[i]); if ((u) && (u->registered == REG_ALL)) { - retbuf = retbuf + u->nick + (IS_OPER(u) ? "*" : "") + "=+" + u->ident + "@" + u->GetIPString() + " "; + retbuf = retbuf + u->nick + (IS_OPER(u) ? "*" : "") + "="; + if (IS_AWAY(u)) + retbuf += "-"; + else + retbuf += "+"; + retbuf += u->ident + "@" + u->GetIPString() + " "; } } |