summaryrefslogtreecommitdiff
path: root/src/commands/cmd_userhost.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-27 18:45:15 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-27 18:45:15 +0000
commite471f12576b6b6d1a1c7d2e856998b47735d2037 (patch)
tree23af6045cc4cf36d63213b2a228eb720494da649 /src/commands/cmd_userhost.cpp
parent533bda9cfe75166e3f8db8b96b463666164bc6d6 (diff)
USERHOST/USERIP fix, return '-' char, not '+' if the user is away. Thanks jilles.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10319 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands/cmd_userhost.cpp')
-rw-r--r--src/commands/cmd_userhost.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/commands/cmd_userhost.cpp b/src/commands/cmd_userhost.cpp
index 9ed8b30ab..420e7936f 100644
--- a/src/commands/cmd_userhost.cpp
+++ b/src/commands/cmd_userhost.cpp
@@ -34,13 +34,18 @@ CmdResult CommandUserhost::Handle (const std::vector<std::string>& parameters, U
if (IS_OPER(u))
{
- retbuf = retbuf + "*=+";
+ retbuf = retbuf + "*=";
}
else
{
- retbuf = retbuf + "=+";
+ retbuf = retbuf + "=";
}
+ if (IS_AWAY(u))
+ retbuf += "-";
+ else
+ retbuf += "+";
+
retbuf = retbuf + u->ident + "@";
if (IS_OPER(user))