Noise: Prevent unittest crash caused by division by zero
[oweals/minetest.git] / src / ban.cpp
index 108319953ad069341d193ea086ca507ddde0c031..7a7fb8c3c7219af0f9b01439cd94ce6ff32898d6 100644 (file)
@@ -22,21 +22,18 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "threading/mutex_auto_lock.h"
 #include <sstream>
 #include <set>
-#include "strfnd.h"
+#include "util/strfnd.h"
 #include "util/string.h"
 #include "log.h"
 #include "filesys.h"
 
 BanManager::BanManager(const std::string &banfilepath):
-               m_banfilepath(banfilepath),
-               m_modified(false)
+               m_banfilepath(banfilepath)
 {
-       try{
+       try {
                load();
-       }
-       catch(SerializationError &e)
-       {
-               infostream<<"WARNING: BanManager: creating "
+       } catch(SerializationError &e) {
+               warningstream<<"BanManager: creating "
                                <<m_banfilepath<<std::endl;
        }
 }