From 9677aff73c13e45cfb04358d6f0e13c35803852d Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sat, 15 Feb 2014 17:56:17 -0500 Subject: [PATCH] current article number variable is now in place --- citadel/modules/nntp/serv_nntp.c | 4 +++- citadel/modules/nntp/serv_nntp.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/citadel/modules/nntp/serv_nntp.c b/citadel/modules/nntp/serv_nntp.c index 1978c269a..28edae8e6 100644 --- a/citadel/modules/nntp/serv_nntp.c +++ b/citadel/modules/nntp/serv_nntp.c @@ -586,6 +586,7 @@ void nntp_group(const char *cmd) { // if (CtdlAccessCheck(ac_logged_in_or_guest)) return; + citnntp *nntpstate = (citnntp *) CC->session_specific_data; char verb[16]; char requested_group[1024]; char message_range[256]; @@ -653,8 +654,9 @@ void nntp_group(const char *cmd) { CtdlUserGoto(NULL, 0, 0, &msgs, &new, &oldest, &newest); cprintf("211 %d %ld %ld %s\r\n", msgs, oldest, newest, requested_group); - // If this is a GROUP command, we can stop here. + // If this is a GROUP command, set the "current article number" to zero, and then stop here. if (!strcasecmp(verb, "GROUP")) { + nntpstate->current_article_number = 0; return; } diff --git a/citadel/modules/nntp/serv_nntp.h b/citadel/modules/nntp/serv_nntp.h index e7aed6e1d..686416b20 100644 --- a/citadel/modules/nntp/serv_nntp.h +++ b/citadel/modules/nntp/serv_nntp.h @@ -38,7 +38,7 @@ struct listgroup_range { typedef struct _citnntp { // Information about the current session - int foo; // dummy thingo + long current_article_number; } citnntp; int wildmat(const char *text, const char *p); -- 2.30.2