diff --git a/conman.c b/conman.c index 3f4378b1..553fcbac 100644 --- a/conman.c +++ b/conman.c @@ -706,14 +706,18 @@ static void writeToLogFiles(SConnection *self, char *buffer) if(self->iMacro != 1) { sprintf(pBueffel,"To sock %d :",iRet); + sendingConnection = self; WriteToCommandLog(pBueffel,buffer); + sendingConnection = NULL; } else { if(iOut == eError || iOut == eWarning) { sprintf(pBueffel,"To sock %d :",iRet); + sendingConnection = self; WriteToCommandLog(pBueffel,buffer); + sendingConnection = NULL; } } }