]> code.citadel.org Git - citadel.git/commitdiff
* serv_rwho.c: cmd_rwho(): move logged_in from param 8 to param 11
authorMichael Hampton <io_error@uncensored.citadel.org>
Fri, 15 Nov 2002 11:24:41 +0000 (11:24 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Fri, 15 Nov 2002 11:24:41 +0000 (11:24 +0000)
  (see RWHO in techdoc/session.txt)

citadel/ChangeLog
citadel/serv_rwho.c
citadel/techdoc/session.txt

index 994a9179534a7a57e700357bee9491367f61768d..1f802ec7034451e55866245da94a81e44ee74be0 100644 (file)
@@ -1,4 +1,8 @@
  $Log$
+ Revision 601.68  2002/11/15 11:24:40  error
+ * serv_rwho.c: cmd_rwho(): move logged_in from param 8 to param 11
+   (see RWHO in techdoc/session.txt)
+
  Revision 601.67  2002/11/13 17:20:57  ajc
  * When in curses mode, call beep() instead of putc(7, stdout) to make it beep.
 
@@ -4217,4 +4221,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 e04c51853e3dddcce3b7af2031b2ce4db00bfd36..cc38343e0c9b771cc155953bbf53a68e7099f12c 100644 (file)
@@ -116,12 +116,11 @@ void cmd_rwho(char *argbuf) {
                
                if (((cptr->cs_flags&CS_STEALTH)==0) || (aide))
                {
-                       cprintf("%d|%s|%s|%s|%s|%ld|%s|%s|%d|",
+                       cprintf("%d|%s|%s|%s|%s|%ld|%s|%s|",
                                cptr->cs_pid, un, room,
                                host, cptr->cs_clientname,
                                (long)(cptr->lastidle),
-                               cptr->lastcmdname, flags,
-                               cptr->logged_in
+                               cptr->lastcmdname, flags
                        );
 
                        if ((user_spoofed) && (aide)) {
@@ -145,7 +144,7 @@ void cmd_rwho(char *argbuf) {
                                cprintf("|");
                        }
        
-                       cprintf("\n");
+                       cprintf("%d\n", cptr->logged_in);
                }
        }
 
index 21faf95f6ded1d95b71f0059ff1406ca6525b55a..a801bbc2c4f7fc5583aa258629f3ef08a67de32c 100644 (file)
@@ -1110,6 +1110,7 @@ from, or "localhost" if the client is local.
  8 - Actual user name, if user name is masqueraded and viewer is an Aide.
  9 - Actual room name, if room name is masqueraded and viewer is an Aide.
  10 - Actual host name, if host name is masqueraded and viewer is an Aide.
+ 11 - Nonzero if the session is a logged-in user, zero otherwise.
  
  The listing is terminated, as always, with the string "000" on a line by
 itself.