]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_userhost.cpp
Revert earlier time() -> SI->Time() diff for now, this causes problems with dns.cpp...
[user/henk/code/inspircd.git] / src / commands / cmd_userhost.cpp
index 9ed8b30ab09ea2515fe37dd2380f226ae4376e6b..a080d01f2e870bc5bdc92d661d78010f20c5a544 100644 (file)
@@ -34,16 +34,21 @@ 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))
+                       if (user->HasPrivPermission("users/auspex"))
                        {
                                retbuf = retbuf + u->host;
                        }