aboutsummaryrefslogtreecommitdiff
path: root/src/unittest/test_socket.cpp
diff options
context:
space:
mode:
authorrubenwardy <rubenwardy@gmail.com>2017-02-03 22:28:09 +0000
committerrubenwardy <rubenwardy@gmail.com>2017-02-04 22:07:55 +0000
commitf2f9a923515386d787a245fac52f78e815b3a839 (patch)
tree4493917a60f3ea682a25d93e4f8a994b69044e81 /src/unittest/test_socket.cpp
parentf2aa2c6a986dec47856c49ae5f54fbf3c688e027 (diff)
downloadminetest-f2f9a923515386d787a245fac52f78e815b3a839.tar.gz
minetest-f2f9a923515386d787a245fac52f78e815b3a839.tar.bz2
minetest-f2f9a923515386d787a245fac52f78e815b3a839.zip
Add per-stack descriptions using ItemStack Metadata
Diffstat (limited to 'src/unittest/test_socket.cpp')
0 files changed, 0 insertions, 0 deletions
>(); void save(); bool isIpBanned(const std::string &ip); // Supplying ip_or_name = "" lists all bans. std::string getBanDescription(const std::string &ip_or_name); std::string getBanName(const std::string &ip); 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; }; #endif