From 921cf7382d1cc1adfa64490cf141161a9c820d41 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Fri, 24 Mar 2006 03:21:38 +0000 Subject: [PATCH] minor tweaks to cmd_mesg --- citadel/citserver.c | 13 +++++++++---- citadel/support.c | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/citadel/citserver.c b/citadel/citserver.c index e394b2790..411773d08 100644 --- a/citadel/citserver.c +++ b/citadel/citserver.c @@ -465,7 +465,7 @@ void cmd_mesg(char *mname) /* If the client requested "?" then produce a listing */ if (!strcmp(buf, "?")) { - cprintf("%d %s\n",LISTING_FOLLOWS,buf); + cprintf("%d %s\n", LISTING_FOLLOWS, buf); dp = opendir(dirs[1]); if (dp != NULL) { while (d = readdir(dp), d != NULL) { @@ -500,17 +500,22 @@ void cmd_mesg(char *mname) free(dirs[1]); if (strlen(targ)==0) { - cprintf("%d '%s' not found.\n",ERROR + FILE_NOT_FOUND, mname); + cprintf("%d '%s' not found. (Searching in %s and %s)\n", + ERROR + FILE_NOT_FOUND, + mname, + ctdl_message_dir, + ctdl_hlp_dir + ); return; } - mfp = fopen(targ,"r"); + mfp = fopen(targ, "r"); if (mfp==NULL) { cprintf("%d Cannot open '%s': %s\n", ERROR + INTERNAL_ERROR, targ, strerror(errno)); return; } - cprintf("%d %s\n",LISTING_FOLLOWS,buf); + cprintf("%d %s\n", LISTING_FOLLOWS,buf); while (fgets(buf, (sizeof buf - 1), mfp) != NULL) { buf[strlen(buf)-1] = 0; diff --git a/citadel/support.c b/citadel/support.c index bb27760cf..be48c6fed 100644 --- a/citadel/support.c +++ b/citadel/support.c @@ -112,7 +112,7 @@ void mesg_locate(char *targ, size_t n, const char *searchfor, for (a=0; a