| /* only escape if we find either \\r or \\n in the nick */ | ||
| if (l->data != NULL && | ||
| (strstr(l->data, "\\r") != NULL || | ||
| strstr(l->data, "\\n") != NULL)) { |
| } | ||
| } | ||
|
|
||
| /* Escape all '"', "'" and '\' chars with '\' */ |
| return NULL; | ||
|
|
||
| /* escape if the word doesn't begin with '/' and expand_escapes are turned on */ | ||
| data = *line != '/' && settings_get_bool("expand_escapes") ? |
|
|
||
| /* word completed */ | ||
| *pos = startpos+strlen(complist->data); | ||
| *pos = startpos+strlen(data); |
| g_string_free(result, FALSE); | ||
|
|
||
| /* free data if we have been escaping something */ | ||
| if (data != complist->data) |
Merged
osm
changed the title
Escape \r and \n from nicks when expand_escapes is enabled
Escape nicks during nick completion when expand_escapes is enabled
Closed
jwilk
mentioned this pull request
Closed