1
0
Fork 0
mirror of https://codeberg.org/demostf/plugin.git synced 2026-06-04 00:54:08 +02:00

Fixed issues with handling responses

that don't link to the STV
This commit is contained in:
TheBv 2022-12-20 17:37:13 +01:00
commit 8a529b2e9e
2 changed files with 17 additions and 13 deletions

Binary file not shown.

View file

@ -7,7 +7,7 @@ public Plugin:myinfo =
name = "demos.tf uploader",
author = "Icewind",
description = "Auto-upload match stv to demos.tf",
version = "0.3",
version = "0.3.1",
url = "https://demos.tf"
};
@ -164,6 +164,8 @@ public ShowResponse()
strcopy(url, sizeof(url), output);
if (StrContains(url, "STV available at: ") != -1)
{
// Get the url part
ReplaceString(url, sizeof(url), "STV available at: ", "");
// Split the string on '/'
@ -177,9 +179,11 @@ public ShowResponse()
break;
}
}
CallDemoUploaded(true, demoid, url);
return;
}
CallDemoUploaded(false, "", "");
return;
}