More bug squashing

Contrast_Picker
Arcidayne 9 years ago
parent a4801bf303
commit 4effcd90a0

@ -120,24 +120,34 @@ end
function noteeditor(str) function noteeditor(str)
local note, note_to, note_subj, note_to_send = false, false, false, false local note, note_to, note_subj, note_to_send = false, false, false, false
if str == "new" then if str == "new" then
note_to = utils.inputbox("To whom are you writing the note?", "To list", "all") note_to = utils.inputbox("To whom are you writing the note?", "To list", "all")
if note_to then if note_to then
note_to_send = "note write " .. note_to note_to_send = "note write " .. note_to
else
note_to_send = "note write all"
end
note_subj = utils.inputbox("What is the subject of your note?", "Subject") note_subj = utils.inputbox("What is the subject of your note?", "Subject")
if not note_subj then if not note_subj then
note_subj = "" note_subj = ".q"
end note_to_send = "echo Note cancelled!"
end -- end note_subj
else
note_to_send = "echo Note cancelled!"
end -- end note_to
elseif str == "reply" then elseif str == "reply" then
note_to = utils.inputbox("To which note are you replying?", "Note number") note_to = utils.inputbox("To which note are you replying?", "Note number")
if note_to then
note_to_send = "note reply " .. note_to or "" note_to_send = "note reply " .. note_to or ""
else
note_to_send = "echo Note cancelled!"
end -- end note_to
end end
Send(note_to_send) Send(note_to_send)
if note_to_send ~= "echo Note cancelled!" then
if note_subj then if note_subj then
Send(note_subj) Send(note_subj)
end end
@ -155,6 +165,7 @@ function noteeditor(str)
Send(".q") Send(".q")
end end
end end
end
]]> ]]>
</script> </script>

Loading…
Cancel
Save