RWHO: just aide may see system contexts and contexts waiting to be killed.
[citadel.git] / citadel / modules / rwho / serv_rwho.c
index 5c25a3943ad147d9c603717b0bb6216e16c28215..0d1631c3356d8d01e4b42915ff031147b61f48cd 100644 (file)
@@ -98,6 +98,12 @@ void cmd_rwho(char *argbuf) {
                room_spoofed = 0;
                host_spoofed = 0;
                
+               if (!aide && nptr[i].state == CON_SYS)
+                       continue;
+
+               if (!aide && nptr[i].kill_me != 0)
+                       continue;
+
                if (nptr[i].cs_flags & CS_POSTING)
                   strcat(flags, "*");
                else