ftt: merge meow into honk

This commit is contained in:
Jackzie 2021-10-05 17:46:37 -05:00
parent 8e1dc263ad
commit 509e70b235
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
4 changed files with 17 additions and 11 deletions

View file

@ -353,8 +353,10 @@ void DisableTroll(int client, const char[] troll) {
}
}
void SetCategory(const char[] newCat) {
categoryID = categories.PushString(newCat);
public void SetCategory(const char[] newCat) {
categoryID = categories.FindString(newCat);
if(categoryID == -1)
categoryID = categories.PushString(newCat);
}
void GetCategory(int category, char[] buffer, int size) {
categories.GetString(category, buffer, size);