Skip to content

Commit ed5ea2c

Browse files
committed
Shows version when you type 'mapper help'
1 parent 886c4d0 commit ed5ea2c

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

plugins/ATCP_Mapper.xml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,22 +1237,22 @@ local available = {
12371237
end -- room_change_exit
12381238
12391239
function change_room_area (room, uid)
1240-
1241-
if next (areas) == nil then
1242-
mapper.maperror("There are no available areas to choose from.")
1243-
return
1244-
end -- if
1245-
1246-
local chosen_area = utils.listbox ("Choose the area this room belongs to:", "Areas ...", areas)
1247-
1248-
if not chosen_area then
1249-
return
1250-
end -- if
1251-
1252-
rooms[uid].area = chosen_area
1253-
mapper.draw (current_room)
1254-
1255-
dbcheck (db:execute (string.format ([[
1240+
1241+
if next (areas) == nil then
1242+
mapper.maperror("There are no available areas to choose from.")
1243+
return
1244+
end -- if
1245+
1246+
local chosen_area = utils.listbox ("Choose the area this room belongs to:", "Areas ...", areas)
1247+
1248+
if not chosen_area then
1249+
return
1250+
end -- if
1251+
1252+
rooms[uid].area = chosen_area
1253+
mapper.draw (current_room)
1254+
1255+
dbcheck (db:execute (string.format ([[
12561256
UPDATE rooms SET area = %s WHERE uid = %s;
12571257
]], fixsql (chosen_area), -- area (e.g. "1" for "western ithmia")
12581258
fixsql (uid) -- from current room
@@ -1287,7 +1287,7 @@ function room_click (uid, flags)
12871287
{ name = "Add Exit", func = room_add_exit} ,
12881288
{ name = "Change Exit", func = room_change_exit} ,
12891289
{ name = "Delete Exit", func = room_delete_exit} ,
1290-
{ name = "Set area", func = change_room_area} ,
1290+
{ name = "Set area", func = change_room_area} ,
12911291
} -- handlers
12921292
12931293
local t, tf = {}, {}
@@ -1812,11 +1812,11 @@ function map_areas (name, line, wildcards)
18121812
function (uid)
18131813
local room = rooms [uid]
18141814
local reason
1815-
-- if this room is in the list of wanted areas then save its path
1816-
if wanted_areas[room.area] then
1817-
reason = wanted_areas [room.area]
1818-
wanted_areas [room.area] = nil
1819-
end -- found one!
1815+
-- if this room is in the list of wanted areas then save its path
1816+
if wanted_areas[room.area] then
1817+
reason = wanted_areas [room.area]
1818+
wanted_areas [room.area] = nil
1819+
end -- found one!
18201820
return reason, next (wanted_areas) == nil
18211821
end, -- function
18221822
show_vnums, -- show vnum?
@@ -1877,6 +1877,7 @@ function OnPluginDisconnect ()
18771877
end -- OnPluginConnect
18781878
18791879
function OnHelp ()
1880+
mapper.mapprint (string.format ("[MUSHclient mapper, version %0.1f]", mapper.VERSION))
18801881
mapper.mapprint (world.GetPluginInfo (world.GetPluginID (), 3))
18811882
end
18821883

0 commit comments

Comments
 (0)