]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/modules/ctdlproto/serv_session.c
CtdlCheckExpress() now accepts a session context.
[citadel.git] / citadel / server / modules / ctdlproto / serv_session.c
index 7547331dbba99053fb5c644d2a35a3e32dda09f0..301213af6bba76a6c456a1cb3f5f09323382cb6b 100644 (file)
@@ -1,6 +1,6 @@
 // Server functions which perform operations on user objects.
 //
-// Copyright (c) 1987-2023 by the citadel.org team
+// Copyright (c) 1987-2024 by the citadel.org team
 //
 // This program is open source software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License, version 3.
@@ -13,7 +13,7 @@
 
 
 void cmd_noop(char *argbuf) {
-       cprintf("%d%cok\n", CIT_OK, CtdlCheckExpress() );
+       cprintf("%d%cok\n", CIT_OK, CtdlCheckExpress(CC) );
 }
 
 
@@ -99,18 +99,12 @@ void cmd_iden(char *argbuf) {
                return;
        }
 
-       dev_code = extract_int(argbuf,0);
-       cli_code = extract_int(argbuf,1);
-       rev_level = extract_int(argbuf,2);
        extract_token(desc, argbuf, 3, '|', sizeof desc);
 
        safestrncpy(from_host, CtdlGetConfigStr("c_fqdn"), sizeof from_host);
        from_host[sizeof from_host - 1] = 0;
        if (num_parms(argbuf)>=5) extract_token(from_host, argbuf, 4, '|', sizeof from_host);
 
-       CC->cs_clientdev = dev_code;
-       CC->cs_clienttyp = cli_code;
-       CC->cs_clientver = rev_level;
        safestrncpy(CC->cs_clientname, desc, sizeof CC->cs_clientname);
        CC->cs_clientname[31] = 0;