| 219 |
219 |
| 220 username = purple_account_get_username(dialog->account); |
220 username = purple_account_get_username(dialog->account); |
| 221 at = strchr(username, '@'); |
221 at = strchr(username, '@'); |
| 222 slash = strchr(username, '/'); |
222 slash = strchr(username, '/'); |
| 223 if (at && !slash) { |
223 if (at && !slash) { |
| 224 server = g_strdup_printf("%s", at + 1); |
224 server = g_strdup(at + 1); |
| 225 } else if (at && slash && at + 1 < slash) { |
225 } else if (at && slash && at + 1 < slash) { |
| 226 server = g_strdup_printf("%.*s", (int)(slash - (at + 1)), at + 1); |
226 server = g_strdup_printf("%.*s", (int)(slash - (at + 1)), at + 1); |
| 227 } |
227 } |
| 228 |
228 |
| 229 if (server == NULL) |
229 if (server == NULL) |