utils.editbox and utils.inputbox -- Cancel doesn't work?

Posted by LezChap on Fri 26 Feb 2010 05:43 PM — 2 posts, 11,748 views.

#0
Whenever I click "Cancel" on an editbox or input box, the function returns the same value as if I clicked "Ok". Shouldn't it return a nil or other value? Or there should be a second variable with the button clicked?

CURRENT:
result = utils.inputbox("msg", "Title", "Nick")
OK ----- result = Nick
Cancel - result = Nick

PROPOSED:
result,button = utils.inputbox("msg", "Title", "Nick")
OK ----- result = Nick, button = ok
Cancel - result = Nick, button = cancel

Otherwise, how can we cancel further progression of the script if the user cancels at the input/editbox, where a "Valid" input/editbox entry could be nil/blank?
USA #1
When I do print(utils.inputbox("msg", "Title", "Nick")) and hit Cancel, I get nil. Same for editbox. What version of MUSHclient are you using?