From d6aa077b1eda1ea5694dde0250b8b5fd21f114dd Mon Sep 17 00:00:00 2001 From: Matt Kohls Date: Fri, 6 Jul 2018 21:43:41 -0400 Subject: Cleaning things up a bit --- src/main/java/soundchan/BotListener/BotListener.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/soundchan/BotListener/BotListener.java b/src/main/java/soundchan/BotListener/BotListener.java index 7a65f78..b54edbe 100644 --- a/src/main/java/soundchan/BotListener/BotListener.java +++ b/src/main/java/soundchan/BotListener/BotListener.java @@ -54,8 +54,7 @@ public class BotListener extends ListenerAdapter{ private void loadProperties(Properties properties) { localFilePath = properties.getProperty("localFilePath"); followingUser = properties.getProperty("followingUser"); - String temp = properties.getProperty("audioOnUserJoin"); - audioOnUserJoin = settingEnableCheck(temp); + audioOnUserJoin = settingEnableCheck(properties.getProperty("audioOnUserJoin")); if(audioOnUserJoin) { localManager = new LocalAudioManager(localFilePath, properties.getProperty("userAudioFilePath")); } -- cgit v1.2.3