diff --git a/sigIRCv2.jar b/sigIRCv2.jar index 3ddb610..d74d928 100644 Binary files a/sigIRCv2.jar and b/sigIRCv2.jar differ diff --git a/src/sig/modules/ChatLog/ChatLogMessage.java b/src/sig/modules/ChatLog/ChatLogMessage.java index d86bd64..b6e9feb 100644 --- a/src/sig/modules/ChatLog/ChatLogMessage.java +++ b/src/sig/modules/ChatLog/ChatLogMessage.java @@ -225,12 +225,14 @@ public class ChatLogMessage { } public static void importMessages(String...logContents) { - for (String s : logContents) { - if (s!=null) { - if (ChatLogModule.chatlogmodule.messageHistory.size()>=ChatLogModule.messageHistoryCount) { - ChatLogModule.chatlogmodule.messageHistory.remove(0).cleanup(); + if (sigIRC.chatlogmodule_enabled) { + for (String s : logContents) { + if (s!=null) { + if (ChatLogModule.chatlogmodule.messageHistory.size()>=ChatLogModule.messageHistoryCount) { + ChatLogModule.chatlogmodule.messageHistory.remove(0).cleanup(); + } + ChatLogModule.chatlogmodule.messageHistory.add(new ChatLogMessage(s)); } - ChatLogModule.chatlogmodule.messageHistory.add(new ChatLogMessage(s)); } } } diff --git a/src/sig/sigIRC.java b/src/sig/sigIRC.java index fcda6bd..0b6bcaf 100644 --- a/src/sig/sigIRC.java +++ b/src/sig/sigIRC.java @@ -96,7 +96,7 @@ public class sigIRC{ static String touhoumotherConsoleFont="Agency FB Bold"; static boolean touhoumothermodule_enabled=false; static boolean twitchmodule_enabled=true; - static boolean chatlogmodule_enabled=true; + public static boolean chatlogmodule_enabled=true; static boolean downloadsComplete=false; static boolean hardwareAcceleration=true; static boolean playedoAuthSoundOnce=false; diff --git a/src/sig/utils/FileUtils.java b/src/sig/utils/FileUtils.java index 81a1f9f..ade655d 100644 --- a/src/sig/utils/FileUtils.java +++ b/src/sig/utils/FileUtils.java @@ -21,6 +21,7 @@ import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; +import sig.sigIRC; import sig.modules.ChatLog.ChatLogMessage; public class FileUtils { @@ -256,7 +257,7 @@ public class FileUtils { } catch (IOException e) { e.printStackTrace(); } - if (outputToChatLog) { + if (outputToChatLog && sigIRC.chatlogmodule_enabled) { ChatLogMessage.importMessages(message); } }