Always add a new line after a console message
This commit is contained in:
parent
d03b22abf6
commit
1f45a6bd4f
@ -271,15 +271,12 @@ static cell_t Native_BroadcastConsoleMessage(IPluginContext *pContext, const cel
|
|||||||
size_t len;
|
size_t len;
|
||||||
{
|
{
|
||||||
DetectExceptions eh(pContext);
|
DetectExceptions eh(pContext);
|
||||||
len = smutils->FormatString(buffer, sizeof(buffer) - 2, pContext, params, 1);
|
len = smutils->FormatString(buffer, sizeof(buffer), pContext, params, 1);
|
||||||
if (eh.HasException())
|
if (eh.HasException())
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
buffer[len++] = '\n';
|
static char fmt[] = "%s\n";
|
||||||
buffer[len] = '\0';
|
|
||||||
|
|
||||||
static char fmt[] = "%s";
|
|
||||||
|
|
||||||
if (pBroadcastPrintf)
|
if (pBroadcastPrintf)
|
||||||
{
|
{
|
||||||
@ -578,7 +575,7 @@ static cell_t Native_PrintToDemoConsole(IPluginContext *pContext, const cell_t *
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
pClient->ClientPrintf("%s", buffer);
|
pClient->ClientPrintf("%s\n", buffer);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user