| 335 struct irc_conn *irc; |
335 struct irc_conn *irc; |
| 336 char **userparts; |
336 char **userparts; |
| 337 const char *username = purple_account_get_username(account); |
337 const char *username = purple_account_get_username(account); |
| 338 |
338 |
| 339 gc = purple_account_get_connection(account); |
339 gc = purple_account_get_connection(account); |
| 340 purple_connection_set_flags(gc, PURPLE_CONNECTION_FLAG_NO_NEWLINES); |
340 purple_connection_set_flags(gc, PURPLE_CONNECTION_FLAG_NO_NEWLINES | |
| |
341 PURPLE_CONNECTION_FLAG_NO_IMAGES); |
| 341 |
342 |
| 342 if (strpbrk(username, " \t\v\r\n") != NULL) { |
343 if (strpbrk(username, " \t\v\r\n") != NULL) { |
| 343 purple_connection_error (gc, |
344 purple_connection_error (gc, |
| 344 PURPLE_CONNECTION_ERROR_INVALID_SETTINGS, |
345 PURPLE_CONNECTION_ERROR_INVALID_SETTINGS, |
| 345 _("IRC nick and server may not contain whitespace")); |
346 _("IRC nick and server may not contain whitespace")); |