libpurple/protocols/irc/irc.c

branch
soc.2013.gobjectification
changeset 34746
dc9c911dbd35
parent 34706
02cb08146888
child 34810
8a3d21b27a22
equal deleted inserted replaced
34745:111757790de8 34746:dc9c911dbd35
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"));

mercurial