Adjusted the error message to reflect the name of the script.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@19934 282e977c-c81d-0410-88c4-b93c2d0d6712
master
silvernexus 2015-05-17 19:11:40 +00:00
parent 996493559a
commit 28b9d2af1d
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2015-05-17 15:00 Daniel Hawkins (SilverNexus)
* python/tod/replace_in_map.py: Adjusted error messages that appeared
to refer to an old name for the script.
2015-05-17 13:01 Daniel Hawkins (SilverNexus) 2015-05-17 13:01 Daniel Hawkins (SilverNexus)
* scorn/houses/resir: Spelling change for stairwell message and * scorn/houses/resir: Spelling change for stairwell message and

View File

@ -14,13 +14,13 @@ current = TimeOfDay()
inverse = "inverse" in parameters and parameters["inverse"] == True inverse = "inverse" in parameters and parameters["inverse"] == True
match = False match = False
if not "match" in parameters: if not "match" in parameters:
Crossfire.Log(Crossfire.LogError,"Script replace_in_map_period.py didn't get a 'match' parameter. Only got %s" %parameters) Crossfire.Log(Crossfire.LogError,"Script replace_in_map.py didn't get a 'match' parameter. Only got %s" %parameters)
elif parameters["match"].lower() == "one": elif parameters["match"].lower() == "one":
match=TimeOfDay().matchAny(parameters["when"]) != inverse match=TimeOfDay().matchAny(parameters["when"]) != inverse
elif parameters["match"].lower() == "all": elif parameters["match"].lower() == "all":
match=TimeOfDay().matchAll(parameters["when"]) != inverse match=TimeOfDay().matchAll(parameters["when"]) != inverse
else: else:
Crossfire.Log(Crossfire.LogError,"Script replace_in_map_period.py didn't get a 'match' parameter. Only got %s" %parameters) Crossfire.Log(Crossfire.LogError,"Script replace_in_map.py didn't get a 'match' parameter. Only got %s" %parameters)
#print "match is %s and alreadymatched is %s" %(match,alreadymatched) #print "match is %s and alreadymatched is %s" %(match,alreadymatched)