Fixed crash bug when attempting to use the improved editor's toggle function without a string

This commit is contained in:
Vatiken 2012-06-18 23:58:36 +00:00
parent b39e8a7711
commit 12c506c89a

View file

@ -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");