From: Art Cancro Date: Sat, 8 Feb 2014 21:19:57 +0000 (-0500) Subject: Painting with all of the colors of the wind and also C++ style comments X-Git-Tag: v9.01~122^2~28 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=b77dfd3d3f01699be7709a16ef6e93c978cd3870 Painting with all of the colors of the wind and also C++ style comments --- diff --git a/citadel/modules/nntp/serv_nntp.c b/citadel/modules/nntp/serv_nntp.c index e135aad15..6f6f41fa7 100644 --- a/citadel/modules/nntp/serv_nntp.c +++ b/citadel/modules/nntp/serv_nntp.c @@ -64,7 +64,7 @@ extern long timezone; -//***************** BEGIN UTILITY FUNCTIONS THAT COULD BE MOVED ELSEWHERE LATER **************/ +// ***************** BEGIN UTILITY FUNCTIONS THAT COULD BE MOVED ELSEWHERE LATER ************** // @@ -173,7 +173,7 @@ void newsgroup_to_room(char *target, char *source, size_t target_size) { } -//***************** END UTILITY FUNCTIONS THAT COULD BE MOVED ELSEWHERE LATER **************/ +// ***************** END UTILITY FUNCTIONS THAT COULD BE MOVED ELSEWHERE LATER ************** @@ -580,10 +580,10 @@ void nntp_listgroup_backend(long msgnum, void *userdata) { // Implements the GROUP and LISTGROUP commands // void nntp_group(const char *cmd) { - /* - * HACK: this works because the 5XX series error codes from citadel - * protocol will also be considered error codes by an NNTP client - */ + // + // HACK: this works because the 5XX series error codes from citadel + // protocol will also be considered error codes by an NNTP client + // if (CtdlAccessCheck(ac_logged_in_or_guest)) return; char verb[16]; @@ -777,9 +777,7 @@ void nntp_command_loop(void) syslog(LOG_DEBUG, "NNTP: %s\n", ((!strncasecmp(ChrPtr(Cmd), "AUTHINFO", 8)) ? "AUTHINFO ..." : ChrPtr(Cmd))); extract_token(cmdname, ChrPtr(Cmd), 0, ' ', sizeof cmdname); - /* - * Rumpelstiltskin lookups are awesome - */ + // Rumpelstiltskin lookups are *awesome* if (!strcasecmp(cmdname, "quit")) { nntp_quit(); @@ -838,9 +836,9 @@ void nntp_command_loop(void) } -//****************************************************************************/ -// MODULE INITIALIZATION STUFF */ -//****************************************************************************/ +// **************************************************************************** +// MODULE INITIALIZATION STUFF +// **************************************************************************** //