Author: suokko
Date: Mon Sep  1 19:41:51 2008
New Revision: 29169

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29169&view=rev
Log:
Backported: Fixed server configuration reload to trigger ban writing if 
filename changed


Modified:
    branches/1.4/src/server/ban.cpp

Modified: branches/1.4/src/server/ban.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.4/src/server/ban.cpp?rev=29169&r1=29168&r2=29169&view=diff
==============================================================================
--- branches/1.4/src/server/ban.cpp (original)
+++ branches/1.4/src/server/ban.cpp Mon Sep  1 19:41:51 2008
@@ -551,7 +551,11 @@
                                                
parse_time((**itor)["time"])-time(NULL)));
                }
                init_ban_help();
-               filename_ = cfg["ban_save_file"];
+               if (filename_ != cfg["ban_save_file"])
+               {
+                       dirty_ = true;
+                       filename_ = cfg["ban_save_file"];
+               }
        }
 
        ban_manager::~ban_manager()


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to