]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_userhost.cpp
Fix crash
[user/henk/code/inspircd.git] / src / commands / cmd_userhost.cpp
index 9ed8b30ab09ea2515fe37dd2380f226ae4376e6b..420e7936f7d303e2b18e314440c77ff8337db92d 100644 (file)
@@ -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))