Skip to content

Commit 93e74d0

Browse files
authored
mapfeaturing leaves a log (#2335)
1 parent 68d83af commit 93e74d0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Zero-K.info/Controllers/MapsController.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ public ActionResult Tag(int id,
251251
MapSupportLevel mapSupportLevel) {
252252
var db = new ZkDataContext();
253253
var r = db.Resources.Single(x => x.ResourceID == id);
254+
255+
if (r.MapSupportLevel != mapSupportLevel)
256+
Global.Server.GhostChanSay(GlobalConst.ModeratorChannel, string.Format("{0} has changed level of map {1} from {2} to {3}", Global.Account.Name, r.InternalName, r.MapSupportLevel, mapSupportLevel));
257+
254258
r.TaggedByAccountID = Global.AccountID;
255259
r.MapIsSpecial = special;
256260
r.MapWaterLevel = sea;

0 commit comments

Comments
 (0)