]> code.citadel.org Git - citadel.git/commitdiff
* Fixed a bug that caused bogus wholist lines to be displayed when a non-aide
authorArt Cancro <ajc@citadel.org>
Fri, 12 Jan 2001 22:05:46 +0000 (22:05 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 12 Jan 2001 22:05:46 +0000 (22:05 +0000)
  reads a list containing stealth mode sessions.

citadel/ChangeLog
citadel/serv_rwho.c

index 28d07edc69fbbabd556dae4909a360f415cd5e9c..f6c8789bc806f0ede0793104ec26e3bbc7390758 100644 (file)
@@ -1,4 +1,8 @@
  $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.
 
@@ -2262,4 +2266,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
-
index a58380f7faf842f9caeb3907ffe3fbffd9ca959f..ebd2adbb7af131213a2eeb35379205bdfe9c590b 100644 (file)
@@ -96,11 +96,13 @@ void cmd_rwho(char *argbuf) {
                        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))
                {
@@ -109,31 +111,30 @@ void cmd_rwho(char *argbuf) {
                                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