diff options
Diffstat (limited to 'lingo.cpp')
-rw-r--r-- | lingo.cpp | 2 |
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); |