| 354 struct irc_conn *irc; |
354 struct irc_conn *irc; |
| 355 char **userparts; |
355 char **userparts; |
| 356 const char *username = purple_account_get_username(account); |
356 const char *username = purple_account_get_username(account); |
| 357 |
357 |
| 358 gc = purple_account_get_connection(account); |
358 gc = purple_account_get_connection(account); |
| 359 gc->flags |= PURPLE_CONNECTION_NO_NEWLINES; |
359 purple_connection_set_flags(gc, PURPLE_CONNECTION_NO_NEWLINES); |
| 360 |
360 |
| 361 if (strpbrk(username, " \t\v\r\n") != NULL) { |
361 if (strpbrk(username, " \t\v\r\n") != NULL) { |
| 362 purple_connection_error (gc, |
362 purple_connection_error (gc, |
| 363 PURPLE_CONNECTION_ERROR_INVALID_SETTINGS, |
363 PURPLE_CONNECTION_ERROR_INVALID_SETTINGS, |
| 364 _("IRC nick and server may not contain whitespace")); |
364 _("IRC nick and server may not contain whitespace")); |