mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #01829
[Bug 683431] Re: getFgColor on an invalid selection causes crash
** Changed in: mudlet
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/683431
Title:
getFgColor on an invalid selection causes crash
Status in Mudlet the MUD client:
Fix Released
Bug description:
On the sign-in screen to Achaea (and when sending a message in game)
Mudlet crashes. For each line I am extracting the foreground colour
with getFgColor, then storing the line/deleting from screen. If i
comment out the getFgColor, everything works (though without colour
obviously).
--Copy Lines and Foreground Colour
function Store_Lines()
local r
local g
local b
--select/copy colour/store to table
selectString(matches[2],1)
r,g,b = getFgColor()
--Store to table
if r and g and b and matches[2] then
table.insert(Main_Lines, {raw_line = matches[2], red = r, green = g, blue = b, prefix = false, suffix = false, args = false})
elseif matches[2] then
table.insert(Main_Lines, {raw_line = matches[2], red = false, green = false, blue = false, prefix = false, suffix = false, args = false})
end
--Hide Line
deleteLine()
end
Windows 7 Pro, Mudlet 1.2-pre6
To manage notifications about this bug go to:
https://bugs.launchpad.net/mudlet/+bug/683431/+subscriptions
References