$Log$
+ Revision 573.63 2001/01/12 22:05:46 ajc
+ * Fixed a bug that caused bogus wholist lines to be displayed when a non-aide
+ reads a list containing stealth mode sessions.
+
Revision 573.62 2001/01/09 05:39:45 ajc
* Merged in code from the TRANSACTIONS branch for testing.
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
strcpy(room, real_room);
}
- if ((aide) && (spoofed))
- strcat(flags, "+");
+ if ((aide) && (spoofed)) {
+ strcat(flags, "+");
+ }
- if ((cptr->cs_flags & CS_STEALTH) && (aide))
- strcat(flags, "-");
+ if ((cptr->cs_flags & CS_STEALTH) && (aide)) {
+ strcat(flags, "-");
+ }
if (((cptr->cs_flags&CS_STEALTH)==0) || (aide))
{
host, cptr->cs_clientname,
(long)(cptr->lastidle),
cptr->lastcmdname, flags);
- }
-
- if ((user_spoofed) && (aide)) {
- cprintf("%s|", cptr->curr_user);
- }
- else {
- cprintf("|");
- }
-
- if ((room_spoofed) && (aide)) {
- cprintf("%s|", real_room);
- }
- else {
- cprintf("|");
- }
- if ((host_spoofed) && (aide)) {
- cprintf("%s|", cptr->cs_host);
- }
- else {
- cprintf("|");
+ if ((user_spoofed) && (aide)) {
+ cprintf("%s|", cptr->curr_user);
+ }
+ else {
+ cprintf("|");
+ }
+
+ if ((room_spoofed) && (aide)) {
+ cprintf("%s|", real_room);
+ }
+ else {
+ cprintf("|");
+ }
+
+ if ((host_spoofed) && (aide)) {
+ cprintf("%s|", cptr->cs_host);
+ }
+ else {
+ cprintf("|");
+ }
+
+ cprintf("\n");
}
-
- cprintf("\n");
-
}
/* Now it's magic time. Before we finish, call any EVT_RWHO hooks