comparison libpurple/protocols/irc/irc.c @ 32767:2ec94166be43

On the way to hiding the PurpleConnection struct. * Added purple_connection_get_flags() and purple_connection_set_flags() * Use purple_connection_ accessor functions.
author andrew.victor@mxit.com
date Tue, 18 Oct 2011 18:47:48 +0000
parents 10e5000326a5
children 50cd80d3554e
comparison
equal deleted inserted replaced
32766:ea2b621fd3ba 32767:2ec94166be43
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"));