From a4801bf303e7ee32feacc4a022fea2d91dc8f1af Mon Sep 17 00:00:00 2001 From: Arcidayne <9382522b@opayq.com> Date: Mon, 25 Jan 2016 19:46:41 -0800 Subject: [PATCH] Bug Squashing! --- Note_Write_Helper/Note_Write_Helper.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Note_Write_Helper/Note_Write_Helper.xml b/Note_Write_Helper/Note_Write_Helper.xml index 8408bdb..2928bf2 100644 --- a/Note_Write_Helper/Note_Write_Helper.xml +++ b/Note_Write_Helper/Note_Write_Helper.xml @@ -122,8 +122,15 @@ function noteeditor(str) local note, note_to, note_subj, note_to_send = false, false, false, false if str == "new" then note_to = utils.inputbox("To whom are you writing the note?", "To list", "all") - note_to_send = "note write " .. note_to + if note_to then + 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") + if not note_subj then + note_subj = "" + end elseif str == "reply" then note_to = utils.inputbox("To which note are you replying?", "Note number") note_to_send = "note reply " .. note_to or ""