summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-12-08 19:23:10 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2022-12-08 19:23:10 -0500
commit318925522b30d97425c644db05740c8f3410ed2c (patch)
tree536fa34162f4b63674c0483f815c8d259b4e97e5
parent7b19e08dc5665753bcdc99b33968939ea47d981a (diff)
downloadlingo-318925522b30d97425c644db05740c8f3410ed2c.tar.gz
lingo-318925522b30d97425c644db05740c8f3410ed2c.tar.bz2
lingo-318925522b30d97425c644db05740c8f3410ed2c.zip
Ok boomer
-rw-r--r--lingo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lingo.cpp b/lingo.cpp index 3b60c82..e6c5177 100644 --- a/lingo.cpp +++ b/lingo.cpp
@@ -70,7 +70,7 @@ public:
70 70
71 bot_->on_message_create([this](const dpp::message_create_t& event) { 71 bot_->on_message_create([this](const dpp::message_create_t& event) {
72 std::lock_guard answer_lock(answers_mutex_); 72 std::lock_guard answer_lock(answers_mutex_);
73 if (answer_by_message_.count(event.msg.message_reference.message_id)) 73 if (answer_by_message_.count(static_cast<uint64_t>(event.msg.message_reference.message_id)))
74 { 74 {
75 std::string canonical_answer = hatkirby::lowercase(answer_by_message_[event.msg.message_reference.message_id]); 75 std::string canonical_answer = hatkirby::lowercase(answer_by_message_[event.msg.message_reference.message_id]);
76 std::string canonical_attempt = hatkirby::lowercase(event.msg.content); 76 std::string canonical_attempt = hatkirby::lowercase(event.msg.content);