CtdlCheckExpress() now accepts a session context.
[citadel.git] / citadel / server / modules / rwho / serv_rwho.c
index 64a0e42fe9668c816e7c9a9b16e343c446cb81d6..96e25e7877afd70cd2a1858730d2a7fec6ff2f55 100644 (file)
@@ -1,7 +1,7 @@
 // This module implements server commands related to the display and
 // manipulation of the "Who's online" list.
 //
-// Copyright (c) 1987-2022 by the citadel.org team
+// Copyright (c) 1987-2024 by the citadel.org team
 //
 // This program is open source software.  Use, duplication, or disclosure
 // is subject to the terms of the GNU General Public License, version 3.
@@ -73,13 +73,13 @@ void cmd_rwho(char *argbuf) {
        nptr = CtdlGetContextArray(&nContexts) ;
        if (!nptr) {
                // Couldn't malloc so we have to bail but stick to the protocol
-               cprintf("%d%c \n", LISTING_FOLLOWS, CtdlCheckExpress() );
+               cprintf("%d%c \n", LISTING_FOLLOWS, CtdlCheckExpress(CC) );
                cprintf("000\n");
                return;
        }
        
        aide = ( (CC->user.axlevel >= AxAideU) || (CC->internal_pgm) ) ;
-       cprintf("%d%c \n", LISTING_FOLLOWS, CtdlCheckExpress() );
+       cprintf("%d%c \n", LISTING_FOLLOWS, CtdlCheckExpress(CC) );
        
        for (i=0; i<nContexts; i++)  {
                flags[0] = '\0';