]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/ban.cpp
Masterserver show privs and js autoload
[dragonfireclient.git] / src / ban.cpp
index f9d32b605c2b6a20766f227791cb9ccb717bb10d..50ba0dba1a41b9d4eff4e39023b7586ac90b62b3 100644 (file)
@@ -19,10 +19,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include "ban.h"
 #include <fstream>
-#include <jmutexautolock.h>
+#include "jthread/jmutexautolock.h"
 #include <sstream>
 #include <set>
 #include "strfnd.h"
+#include "util/string.h"
 #include "log.h"
 #include "filesys.h"
 
@@ -88,7 +89,7 @@ void BanManager::save()
 
        if(!fs::safeWriteToFile(m_banfilepath, ss.str())) {
                infostream<<"BanManager: failed saving to "<<m_banfilepath<<std::endl;
-               throw SerializationError("BanManager::load(): Couldn't write file");
+               throw SerializationError("BanManager::save(): Couldn't write file");
        }
 
        m_modified = false;