mirror of
https://github.com/tbamud/tbamud.git
synced 2025-09-22 05:50:48 +02:00
Fixed crash bug when attempting to use the improved editor's toggle function without a string
This commit is contained in:
parent
b39e8a7711
commit
12c506c89a
1 changed files with 4 additions and 0 deletions
|
@ -125,6 +125,10 @@ void parse_edit_action(int command, char *string, struct descriptor_data *d)
|
|||
"/s - saves text\r\n");
|
||||
break;
|
||||
case PARSE_TOGGLE:
|
||||
if (!*d->str) {
|
||||
write_to_output(d, "No string.\r\n");
|
||||
break;
|
||||
}
|
||||
if (strchr(*d->str, '@')) {
|
||||
parse_at(*d->str);
|
||||
write_to_output(d, "Toggling (at) into (tab) Characters...\r\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue