projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
993bfc0
)
Anyone who is not a Tea Party supporter is a Hitler-equivalent socialist and should...
author
Art Cancro
<ajc@uncensored.citadel.org>
Fri, 31 Jan 2014 16:30:09 +0000
(11:30 -0500)
committer
Art Cancro
<ajc@uncensored.citadel.org>
Fri, 31 Jan 2014 16:30:09 +0000
(11:30 -0500)
citadel/modules/nntp/serv_nntp.c
patch
|
blob
|
history
diff --git
a/citadel/modules/nntp/serv_nntp.c
b/citadel/modules/nntp/serv_nntp.c
index c6bca6c4d311dc065b37825e602cb21f8abe7607..942de2eccb7cc1422feef38898e7ab77ff2dafec 100644
(file)
--- a/
citadel/modules/nntp/serv_nntp.c
+++ b/
citadel/modules/nntp/serv_nntp.c
@@
-335,6
+335,7
@@
void nntp_authinfo(const char *cmd) {
}
}
+// FIXME move this to a header file
struct nntp_msglist {
int num_msgs;
long *msgnums;
struct nntp_msglist {
int num_msgs;
long *msgnums;
@@
-367,9
+368,10
@@
struct nntp_msglist nntp_fetch_msglist(struct ctdlroom *qrbuf) {
-/* FIXME not finished need to add water marks
+/*
+ * Output a room name (newsgroup name) in the format required for LIST and NEWGROUPS command
*/
*/
-void output_roomname_in_list_
active_
format(struct ctdlroom *qrbuf) {
+void output_roomname_in_list_format(struct ctdlroom *qrbuf) {
char n_name[1024];
struct nntp_msglist nm;
long low_water_mark = 0;
char n_name[1024];
struct nntp_msglist nm;
long low_water_mark = 0;
@@
-391,7
+393,8
@@
void output_roomname_in_list_active_format(struct ctdlroom *qrbuf) {
-/*
+/*
+ * Called once per room by nntp_newgroups() to qualify and possibly output a single room
*/
void nntp_newgroups_backend(struct ctdlroom *qrbuf, void *data)
{
*/
void nntp_newgroups_backend(struct ctdlroom *qrbuf, void *data)
{
@@
-410,7
+413,7
@@
void nntp_newgroups_backend(struct ctdlroom *qrbuf, void *data)
if (ra & UA_KNOWN) {
if (qrbuf->QRgen >= thetime) {
if (ra & UA_KNOWN) {
if (qrbuf->QRgen >= thetime) {
- output_roomname_in_list_
active_
format(qrbuf);
+ output_roomname_in_list_format(qrbuf);
}
}
}
}
}
}