From 06b70a35d520a42c0e4996488e2539c657188eef Mon Sep 17 00:00:00 2001
From: MangosArentLiterature
 <58055358+MangosArentLiterature@users.noreply.github.com>
Date: Thu, 15 Apr 2021 11:53:20 -0500
Subject: [PATCH] Make maximum_statements actually get loaded in

Also has the effect of making it changeable with /reload, hooray!
---
 src/server.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/server.cpp b/src/server.cpp
index 48d2787..f02c918 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -53,9 +53,7 @@ void Server::start()
 
     loadServerConfig();
     loadCommandConfig();
-
-    maximum_statements = config.value("maximum_statements", 50).toInt();
-
+    
     proxy = new WSProxy(port, ws_port, this);
     if(ws_port != -1)
         proxy->start();
@@ -235,6 +233,7 @@ void Server::loadServerConfig()
         zalgo_tolerance = config.value("zalgo_tolerance", "3").toInt(&zalgo_tolerance_conversion_success);
         if (!zalgo_tolerance_conversion_success)
             zalgo_tolerance = 3;
+    maximum_statements = config.value("maximum_statements", 10).toInt();
     config.endGroup();
 
     //Load dice values