libpurple/protocols/irc/irc.c

branch
soc.2013.gobjectification.plugins
changeset 37146
b5b9c75a4b54
parent 37133
832cd077145e
parent 36055
33978dc8ef6f
child 37148
50f361d39a1e
equal deleted inserted replaced
37145:8826f95514fd 37146:b5b9c75a4b54
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