Skeleton nntp_xover() checked in. It seems that some clients make use of the XOVER...
authorArt Cancro <ajc@uncensored.citadel.org>
Tue, 18 Mar 2014 23:29:34 +0000 (19:29 -0400)
committerArt Cancro <ajc@uncensored.citadel.org>
Tue, 18 Mar 2014 23:29:34 +0000 (19:29 -0400)
citadel/modules/nntp/serv_nntp.c

index f32ce1d733a095a2088cb1a6675dd6c8b563a86d..26b0ccd4f9a7bc55e22846353e7d0800d15a4fba 100644 (file)
@@ -940,6 +940,18 @@ void nntp_last_next(const char *cmd) {
 }
 
 
+//
+// XOVER is used by some clients, even if we don't offer it
+//
+void nntp_xover(const char *cmd) {
+       if (CtdlAccessCheck(ac_logged_in_or_guest)) return;
+
+       // citnntp *nntpstate = (citnntp *) CC->session_specific_data;
+
+       cprintf("500 not implemented yet FIXME\r\n");
+}
+
+
 // 
 // Main command loop for NNTP server sessions.
 //
@@ -1022,6 +1034,10 @@ void nntp_command_loop(void)
                nntp_last_next(ChrPtr(Cmd));
        }
 
+       else if (!strcasecmp(cmdname, "xover")) {
+               nntp_xover(ChrPtr(Cmd));
+       }
+
        else {
                cprintf("500 I'm afraid I can't do that.\r\n");
        }