View Single Post
Old 11-14-12, 04:20 PM   #6
SDPhantom
A Molten Giant
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 884
I fixed the code I posted earlier. It appears when none of the conditions match for SecureCmdOptionParse(), it returns nil. At this point, the command should not be run. I added the check for this and have it exit immediately. I also fixed a potential error if the user were to call for a category that doesn't exist. The code is also more robust in the way that both the names in the table and the category name given through the arguments are case-insensitive.
__________________
"They say there's a fine line between genius and insanity.
I walk it like a drunk on the fogline."
-SDPhantom
SDPhantom is offline   Reply With Quote