- fixed some issues related to "config listen 1" mode

i.e. do not write some lines twice when in this mode
This commit is contained in:
zolliker
2013-06-07 06:17:07 +00:00
parent 9a142c18bf
commit 3f6a76052d
2 changed files with 32 additions and 10 deletions

View File

@@ -68,7 +68,8 @@ void WriteToCommandLogId(char *prompt, int id, char *text)
time_t now;
char stamp1[32], stamp2[32], buffer[80];
int doStamp, doStampId;
int old;
/* suppress status messages */
if (strstr(text, "status =") != NULL) {
return;
@@ -196,6 +197,7 @@ void WriteToCommandLogId(char *prompt, int id, char *text)
if (pServ->pTasker != NULL) {
if (doStamp) {
TaskSignal(pServ->pTasker, COMLOG, stamp1);
SCOnlySockWrite(GetSendingConnection(), stamp1, eLog);
}
TaskSignal(pServ->pTasker, COMLOG, pCopy);
}