Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 2eee5035 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

Adding the sticker commands to the handle_simple_command

parent 7f5c6b6e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!54Resolve "Stickers"
......@@ -186,6 +186,17 @@ handle_simple_command(struct lkt_state *srv, size_t c, struct lkt_command cmd)
else if (!strcmp(cmd.name, "playlist") || !strcmp(cmd.name, "playlistinfo"))
err = !command_queue_list(srv, c, cmd.args);
else if (!strcmp(cmd.name, "sticker") && cmd.args[0]) {
if (!strcmp(cmd.args[0], "get"))
err = ! command_sticker_get(srv, c, &cmd.args[1]);
else if (!strcmp(cmd.args[0], "set"))
err = ! command_sticker_set(srv, c, &cmd.args[1]);
else if (!strcmp(cmd.args[0], "delete"))
err = ! command_sticker_delete(srv, c, &cmd.args[1]);
else if (!strcmp(cmd.args[0], "list") || !strcmp(cmd.args[0], "find"))
err = ! command_sticker_delete(srv, c, &cmd.args[1]);
}
else if (!strcmp(cmd.name, "help"))
err = !command_help(srv, c);
else if (!strcmp(cmd.name, "__dbupdate"))
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter