| 726 | | wi_string_delete_characters_to_index(string, index + pathlength + 1); |
|---|
| 727 | | |
|---|
| 728 | | wd_reply(420, WI_STR("%@"), string); |
|---|
| | 726 | if(account->files) { |
|---|
| | 727 | pathrange.location = index + 1; |
|---|
| | 728 | pathrange.length = wi_string_length(string) - pathrange.location; |
|---|
| | 729 | |
|---|
| | 730 | if(wi_string_index_of_string_in_range(string, account->files, WI_STRING_CASE_INSENSITIVE, pathrange) == pathrange.location) { |
|---|
| | 731 | wi_string_delete_characters_to_index(string, index + pathlength + 1); |
|---|
| | 732 | |
|---|
| | 733 | wd_reply(420, WI_STR("%@"), string); |
|---|
| | 734 | } |
|---|
| | 735 | } else { |
|---|
| | 736 | wi_string_delete_characters_to_index(string, index + 1); |
|---|
| | 737 | |
|---|
| | 738 | wd_reply(420, WI_STR("%@"), string); |
|---|
| | 739 | } |
|---|