mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
progress 2
This commit is contained in:
1 parent
deb482a8db
commit
0b8c83eaa1
19 files changed
+700
-271
No files matched your search
+3
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user