Add ability to open URLs
Implements #1673 Tested on Arch Linux w/ KDE
Adds the /openurl <s> command, which opens the given URL in the user's default browser.
The command checks if the string begins with http:// or https://, and does nothing if the check fails.
Changes proposed in this request:
-
/openurl <s> -
/gameui_open_link <s> -
/setclipboard <s>
The UI and clipboard parts of this pull request are not necessary and can be removed if desired.
It's probably also important to note that no parts of the game's UI actually use these commands yet, they just exist in the console for now :)
Updated the initial comment with new command names.
I just realized I forgot to request a new review, sorry!
Looks good to me, will merge with the next sweep.