X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fban.cpp;h=3decc9666117274c4a7e21d490b4ce567edca655;hb=9d1aed01fc471486bc2e18cc12aa58494f3df999;hp=053e799be2b9d4f730ce72034301ffa8577f9d67;hpb=e53d8a75360944a494a56269fc328871cb0a60cc;p=dragonfireclient.git diff --git a/src/ban.cpp b/src/ban.cpp index 053e799be..3decc9666 100644 --- a/src/ban.cpp +++ b/src/ban.cpp @@ -1,6 +1,7 @@ /* Minetest Copyright (C) 2013 celeron55, Perttu Ahola +Copyright (C) 2018 nerzhul, Loic BLOT 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 @@ -125,11 +126,11 @@ void BanManager::remove(const std::string &ip_or_name) for (StringMap::iterator it = m_ips.begin(); it != m_ips.end();) { if ((it->first == ip_or_name) || (it->second == ip_or_name)) { m_ips.erase(it++); + m_modified = true; } else { ++it; } } - m_modified = true; }