From 916fbb2551d4be9e26293364a24a39058409bca7 Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Sat, 8 Feb 2020 15:44:03 +0100 Subject: [PATCH] Fix a couple things Pajlada pointed out :) Change `CHATTERINO2_IMAGE_PASTE_SITE_URL` to `CHATTERINO2_IMAGE_UPLOADER_URL` Remove newline at the end of `docs/ENV.md` --- docs/ENV.md | 3 +-- src/common/Env.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/ENV.md b/docs/ENV.md index 00a680a27..1615009e6 100644 --- a/docs/ENV.md +++ b/docs/ENV.md @@ -19,7 +19,7 @@ Default value: `https://braize.pajlada.com/chatterino/twitchemotes/set/%1/` Arguments: - `%1` = Emote set ID -### CHATTERINO2_IMAGE_PASTE_SITE_URL +### CHATTERINO2_IMAGE_UPLOADER_URL Used to change the URL that Chatterino2 uses when trying to paste an image into chat. This can be used for hosting the uploaded images yourself. Default value: `https://i.nuuls.com/upload` @@ -43,4 +43,3 @@ Default value: `443` ### CHATTERINO2_TWITCH_SERVER_SECURE Bool value used to tell Chatterino whether to try to connect securely (secure irc) to the Twitch chat server. Default value: `true` - diff --git a/src/common/Env.cpp b/src/common/Env.cpp index 35a8ea716..7921e8dec 100644 --- a/src/common/Env.cpp +++ b/src/common/Env.cpp @@ -57,7 +57,7 @@ Env::Env() , twitchEmoteSetResolverUrl(readStringEnv( "CHATTERINO2_TWITCH_EMOTE_SET_RESOLVER_URL", "https://braize.pajlada.com/chatterino/twitchemotes/set/%1/")) - , imageUploaderUrl(readStringEnv("CHATTERINO2_IMAGE_PASTE_SITE_URL", + , imageUploaderUrl(readStringEnv("CHATTERINO2_IMAGE_UPLOADER_URL", "https://i.nuuls.com/upload")) , twitchServerHost( readStringEnv("CHATTERINO2_TWITCH_SERVER_HOST", "irc.chat.twitch.tv"))