diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-28 02:16:59 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-28 02:16:59 -0500 |
commit | 1989b22993378f8bad9e5b6577b2c934814294cf (patch) | |
tree | 27bc1c1fa21833dcddce907c4e1b34d57b94f269 /abaddon.cpp | |
parent | 0b8c83eaa1fdb0fcb610f9181145abde3d60d803 (diff) | |
parent | 6f7ea234e559b8a43b40fa325f3425c2e8a8e6fd (diff) | |
download | abaddon-portaudio-1989b22993378f8bad9e5b6577b2c934814294cf.tar.gz abaddon-portaudio-1989b22993378f8bad9e5b6577b2c934814294cf.zip |
Merge branch 'master' into disk-cache
Diffstat (limited to 'abaddon.cpp')
-rw-r--r-- | abaddon.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/abaddon.cpp b/abaddon.cpp index df63cf4..f0d94e4 100644 --- a/abaddon.cpp +++ b/abaddon.cpp @@ -20,6 +20,11 @@ Abaddon::Abaddon() , m_discord(m_settings.GetSettingBool("discord", "memory_db", false)) { // stupid but easy LoadFromSettings(); + // todo: set user agent for non-client(?) + std::string ua = m_settings.GetSettingString("http", "user_agent", ""); + if (ua != "") + m_discord.SetUserAgent(ua); + m_discord.signal_gateway_ready().connect(sigc::mem_fun(*this, &Abaddon::DiscordOnReady)); m_discord.signal_message_create().connect(sigc::mem_fun(*this, &Abaddon::DiscordOnMessageCreate)); m_discord.signal_message_delete().connect(sigc::mem_fun(*this, &Abaddon::DiscordOnMessageDelete)); |