Updated the global.cpp listener

This commit is contained in:
Mathias Wagner 2023-11-04 23:58:15 +01:00
parent 8941b875ea
commit 7f7f709236
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -31,8 +31,8 @@ void global::execute(sql::Connection &con, dpp::cluster &bot, const dpp::message
{event.msg.channel_id.str()});
if (!res->next()) return;
sql::ResultSet *res2 = util::getResultSet(con, "SELECT * FROM `channels` WHERE `langCode` = ? AND `roomId` = ?",
{res->getString("langCode").c_str(), res->getString("roomId").c_str()});
sql::ResultSet *res2 = util::getResultSet(con, "SELECT * FROM `channels` WHERE `langCode` = ? AND `topicId` = ?",
{res->getString("langCode").c_str(), res->getString("topicId").c_str()});
bot.message_delete(event.msg.id, event.msg.channel_id);