Module:rad-pronunciation: Difference between revisions

m
Fixed mode change bug
mNo edit summary
m (Fixed mode change bug)
Line 79: Line 79:
for i = 2, #args do
for i = 2, #args do
mw.log("Processing argument " .. i .. ".")
mw.log("Processing argument " .. i .. ".")
if parameter[args[i]] then -- mode changer
if parameter[args[i]] ~= nil then -- mode changer
mode = args[i]
mode = args[i]
mode_dialect = "standard"
mode_dialect = "standard"
mode_register = "plain"
mode_register = "plain"
elseif dialect[args[i]] then
elseif dialect[args[i]] ~= nil then
mode_dialect = args[i]
mode_dialect = args[i]
mode_register = "plain"
mode_register = "plain"
elseif register[args[i]] then
elseif register[args[i]] ~= nil then
mode_register = args[i]
mode_register = args[i]