diff options
| author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-23 20:34:09 -0500 |
|---|---|---|
| committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-23 20:34:09 -0500 |
| commit | 0b8c83eaa1fdb0fcb610f9181145abde3d60d803 (patch) | |
| tree | 9897253c0018fb89e2acdf5f3effe2a2e8b02294 /abaddon.cpp | |
| parent | deb482a8db55874a536b6efec366343280214e48 (diff) | |
| download | abaddon-portaudio-0b8c83eaa1fdb0fcb610f9181145abde3d60d803.tar.gz abaddon-portaudio-0b8c83eaa1fdb0fcb610f9181145abde3d60d803.zip | |
progress 2
Diffstat (limited to 'abaddon.cpp')
| -rw-r--r-- | abaddon.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/abaddon.cpp b/abaddon.cpp index e833949..df63cf4 100644 --- a/abaddon.cpp +++ b/abaddon.cpp @@ -16,7 +16,8 @@ Abaddon::Abaddon() : m_settings("abaddon.ini") - , m_emojis("res/emojis.bin") { + , m_emojis("res/emojis.bin") + , m_discord(m_settings.GetSettingBool("discord", "memory_db", false)) { // stupid but easy LoadFromSettings(); m_discord.signal_gateway_ready().connect(sigc::mem_fun(*this, &Abaddon::DiscordOnReady)); @@ -360,7 +361,7 @@ void Abaddon::ActionChatDeleteMessage(Snowflake channel_id, Snowflake id) { } void Abaddon::ActionChatEditMessage(Snowflake channel_id, Snowflake id) { - const auto *msg = m_discord.GetMessage(id); + const auto msg = m_discord.GetMessage(id); EditMessageDialog dlg(*m_main_window); dlg.SetContent(msg->Content); auto response = dlg.run(); |
