mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
WIP commit on refactoring command registration.
Removes the repetitive and gigantic case statement, and adds a register_command function. This function generates a regex for matching that command and a handler function to call. The entry point into the script now matches the user input against a regex and calls the handler function.
This commit is contained in:
parent
a4fb3800e8
commit
1a5a192f71