libpurple/protocols/irc/irc.c

changeset 36055
33978dc8ef6f
parent 35758
87c51487e197
child 36076
a0e5b68ff4ef
child 37146
b5b9c75a4b54
equal deleted inserted replaced
36054:501ed6c0631e 36055:33978dc8ef6f
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"));

mercurial