X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_userhost.cpp;h=a080d01f2e870bc5bdc92d661d78010f20c5a544;hb=1200d6285b1d64699c6fa2c8241e2ee40f52d2a3;hp=9ed8b30ab09ea2515fe37dd2380f226ae4376e6b;hpb=ffbd1eebf0b82bf40482879f410f58874030a695;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_userhost.cpp b/src/commands/cmd_userhost.cpp index 9ed8b30ab..a080d01f2 100644 --- a/src/commands/cmd_userhost.cpp +++ b/src/commands/cmd_userhost.cpp @@ -34,16 +34,21 @@ CmdResult CommandUserhost::Handle (const std::vector& 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; }