| 2860 | localStorage.setItem(namelessWarningKey, 'true'); | 2859 | localStorage.setItem(namelessWarningKey, 'true'); |
| 2861 | } | 2860 | } |
| 2862 | name = name2; | 2861 | name = name2; |
| | 2862 | if (!text) { |
| | 2863 | toastr.warning('You must specify text to send as'); |
| | 2864 | return ''; |
| 2863 | } | 2865 | } |
| | 2866 | } |
| | 2867 | |
| | 2868 | mesText = text.trim(); |
| 2864 | | 2869 | |
| 2865 | // Requires a regex check after the slash command is pushed to output | 2870 | // Requires a regex check after the slash command is pushed to output |
| 2866 | mesText = getRegexedString(mesText, regex_placement.SLASH_COMMAND, { characterOverride: name }); | 2871 | mesText = getRegexedString(mesText, regex_placement.SLASH_COMMAND, { characterOverride: name }); |