1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-15 22:57:12 +02:00

Make builtin formatted strings default to false to avoid trying to perform a format in cases where it can be folled by a following parameters that are not meant to be part of that formatted string.

This commit is contained in:
Sandu Liviu Catalin
2017-06-18 20:25:12 +03:00
parent bb7a6881c6
commit 7bb44ec008
15 changed files with 38 additions and 38 deletions

View File

@ -33,7 +33,7 @@ void IrcFreeMem(void * p)
static SQInteger SqGetNick(HSQUIRRELVM vm)
{
// Attempt to retrieve the value from the stack as a string
StackStrF val(vm, 2);
StackStrF val(vm, 2, true);
// Have we failed to retrieve the string?
if (SQ_FAILED(val.mRes))
{
@ -51,7 +51,7 @@ static SQInteger SqGetNick(HSQUIRRELVM vm)
static SQInteger SqGetHost(HSQUIRRELVM vm)
{
// Attempt to retrieve the value from the stack as a string
StackStrF val(vm, 2);
StackStrF val(vm, 2, true);
// Have we failed to retrieve the string?
if (SQ_FAILED(val.mRes))
{
@ -69,7 +69,7 @@ static SQInteger SqGetHost(HSQUIRRELVM vm)
static SQInteger SqStripColorFromMIRC(HSQUIRRELVM vm)
{
// Attempt to retrieve the value from the stack as a string
StackStrF val(vm, 2);
StackStrF val(vm, 2, true);
// Have we failed to retrieve the string?
if (SQ_FAILED(val.mRes))
{
@ -94,7 +94,7 @@ static SQInteger SqStripColorFromMIRC(HSQUIRRELVM vm)
static SQInteger SqConvertColorFromMIRC(HSQUIRRELVM vm)
{
// Attempt to retrieve the value from the stack as a string
StackStrF val(vm, 2);
StackStrF val(vm, 2, true);
// Have we failed to retrieve the string?
if (SQ_FAILED(val.mRes))
{
@ -119,7 +119,7 @@ static SQInteger SqConvertColorFromMIRC(HSQUIRRELVM vm)
static SQInteger SqConvertColorToMIRC(HSQUIRRELVM vm)
{
// Attempt to retrieve the value from the stack as a string
StackStrF val(vm, 2);
StackStrF val(vm, 2, true);
// Have we failed to retrieve the string?
if (SQ_FAILED(val.mRes))
{

View File

@ -1048,7 +1048,7 @@ static SQInteger FormattedIrcMessageCmd(HSQUIRRELVM vm, SendIrcMessageFunc send_
}
// Attempt to retrieve the value from the stack as a string
StackStrF message(vm, 3);
StackStrF message(vm, 3, true);
// Have we failed to retrieve the string?
if (SQ_FAILED(message.mRes))
{