do not write to commandlog when in macro (SCFileWrite/SCWriteWithOutcode)
This commit is contained in:
4
conman.c
4
conman.c
@ -729,7 +729,7 @@ static void writeToLogFiles(SConnection *self, char *buffer)
|
|||||||
SICSLogWrite(buffer,iOut);
|
SICSLogWrite(buffer,iOut);
|
||||||
|
|
||||||
/* write to commandlog if user or manager privilege */
|
/* write to commandlog if user or manager privilege */
|
||||||
if(SCGetRights(self) <= usUser)
|
if(SCGetRights(self) <= usUser && self->iMacro != 1)
|
||||||
{
|
{
|
||||||
sprintf(pBueffel,"To sock %d :",iRet);
|
sprintf(pBueffel,"To sock %d :",iRet);
|
||||||
WriteToCommandLog(pBueffel,buffer);
|
WriteToCommandLog(pBueffel,buffer);
|
||||||
@ -873,7 +873,7 @@ static void writeToLogFiles(SConnection *self, char *buffer)
|
|||||||
SICSLogWrite(buffer,iOut);
|
SICSLogWrite(buffer,iOut);
|
||||||
|
|
||||||
/* write to commandlog if user or manager privilege */
|
/* write to commandlog if user or manager privilege */
|
||||||
if(SCGetRights(self) <= usUser)
|
if(SCGetRights(self) <= usUser && self->iMacro != 1)
|
||||||
{
|
{
|
||||||
sprintf(pBueffel,"To sock %d :",-10);
|
sprintf(pBueffel,"To sock %d :",-10);
|
||||||
WriteToCommandLog(pBueffel,buffer);
|
WriteToCommandLog(pBueffel,buffer);
|
||||||
|
Reference in New Issue
Block a user