mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-22 10:10:13 +01: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");
|
"/s - saves text\r\n");
|
||||||
break;
|
break;
|
||||||
case PARSE_TOGGLE:
|
case PARSE_TOGGLE:
|
||||||
|
if (!*d->str) {
|
||||||
|
write_to_output(d, "No string.\r\n");
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (strchr(*d->str, '@')) {
|
if (strchr(*d->str, '@')) {
|
||||||
parse_at(*d->str);
|
parse_at(*d->str);
|
||||||
write_to_output(d, "Toggling (at) into (tab) Characters...\r\n");
|
write_to_output(d, "Toggling (at) into (tab) Characters...\r\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue