mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
set user-agent through ini
This commit is contained in:
1 parent
1463d8da9e
commit
ae77bfd1d1
7 files changed
+46
-10
No files matched your search
@@ -19,6 +19,11 @@ Abaddon::Abaddon()
|
||||
, m_emojis("res/emojis.bin") {
|
||||
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));
|
||||
|
||||
Reference in new issue
Block a user