/*
-Minetest-c55
-Copyright (C) 2011 celeron55, Perttu Ahola <celeron55@gmail.com>
+Minetest
+Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
#ifndef BAN_HEADER
#define BAN_HEADER
+#include "util/string.h"
+#include "threading/thread.h"
+#include "exceptions.h"
#include <map>
#include <string>
-#include <jthread.h>
-#include <jmutex.h>
-#include "common_irrlicht.h"
-#include "exceptions.h"
+#include <mutex>
class BanManager
{
void add(const std::string &ip, const std::string &name);
void remove(const std::string &ip_or_name);
bool isModified();
-private:
- JMutex m_mutex;
- std::string m_banfilepath;
- std::map<std::string, std::string> m_ips;
- bool m_modified;
+private:
+ std::mutex m_mutex;
+ std::string m_banfilepath = "";
+ StringMap m_ips;
+ bool m_modified = false;
};
#endif