Response with error for sticker set,inc,dec and add missing asserts

This commit is contained in:
jcorporation
2024-12-12 19:39:17 +01:00
parent b1677bf79c
commit bd36b5e310
2 changed files with 21 additions and 6 deletions
+2 -3
View File
@@ -283,11 +283,9 @@ StickerDatabase::StoreValue(const char *type, const char *uri,
assert(type != nullptr);
assert(uri != nullptr);
assert(name != nullptr);
assert(*name != 0);
assert(value != nullptr);
if (StringIsEmpty(name))
return;
if (!UpdateValue(type, uri, name, value))
InsertValue(type, uri, name, value);
}
@@ -367,6 +365,7 @@ StickerDatabase::DeleteValue(const char *type, const char *uri,
assert(type != nullptr);
assert(uri != nullptr);
assert(name != nullptr);
BindAll(s, type, uri, name);