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