Skip to content

Commit

Permalink
Don't show attendance popup if string is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
rspeicher committed Aug 30, 2009
1 parent ffd017b commit f7e9570
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions JuggyAttendance.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ function mod:CopyAttendance(method)

--str = "Tsigo\nBaud\nSebudai\nSouai\nDuskshadow"

if method == "1" then
currentText = string.gsub(str, "\n$", '')
StaticPopup_Show("JuggyCopyDialog")
else
currentText = string.gsub(str, ',$', '')
StaticPopup_Show("JuggyCopyDialog")
if (str ~= "") then
if method == "1" then
currentText = string.gsub(str, "\n$", '')
StaticPopup_Show("JuggyCopyDialog")
else
currentText = string.gsub(str, ',$', '')
StaticPopup_Show("JuggyCopyDialog")
end
end
end

Expand Down

0 comments on commit f7e9570

Please sign in to comment.