Changeset 4bc66ae for protocols/twitter
- Timestamp:
- 2011-06-11T17:59:39Z (14 years ago)
- Branches:
- master
- Children:
- 14df98f
- Parents:
- c0f33f1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter.c
rc0f33f1 r4bc66ae 283 283 if (g_str_has_suffix(td->prefix, ".com")) 284 284 td->prefix[strlen(url.host) - 4] = '\0'; 285 if ((s = strrchr(td->prefix, '.'))) { 285 if ((s = strrchr(td->prefix, '.')) && strlen(s) > 4) { 286 /* If we have at least 3 chars after the last dot, cut off the rest. 287 (mostly a www/api prefix or sth) */ 286 288 s = g_strdup(s + 1); 287 289 g_free(td->prefix);
Note: See TracChangeset
for help on using the changeset viewer.