comparison libpurple/protocols/irc/irc.c @ 20128:57e9d1ecefff

Rename PURPLE_REASON_INVALID_USERNAME to PURPLE_REASON_INVALID_SETTINGS, so it can be used when a server parameter is required but not supplied (for example).
author Will Thompson <will.thompson@collabora.co.uk>
date Tue, 02 Oct 2007 17:16:16 +0000
parents c26b7aff4e96
children 8174f6999308
comparison
equal deleted inserted replaced
20127:a4fda4159937 20128:57e9d1ecefff
295 295
296 gc = purple_account_get_connection(account); 296 gc = purple_account_get_connection(account);
297 gc->flags |= PURPLE_CONNECTION_NO_NEWLINES; 297 gc->flags |= PURPLE_CONNECTION_NO_NEWLINES;
298 298
299 if (strpbrk(username, " \t\v\r\n") != NULL) { 299 if (strpbrk(username, " \t\v\r\n") != NULL) {
300 purple_connection_error_reason (gc, PURPLE_REASON_INVALID_USERNAME, 300 purple_connection_error_reason (gc, PURPLE_REASON_INVALID_SETTINGS,
301 _("IRC nicks may not contain whitespace")); 301 _("IRC nicks may not contain whitespace"));
302 return; 302 return;
303 } 303 }
304 304
305 gc->proto_data = irc = g_new0(struct irc_conn, 1); 305 gc->proto_data = irc = g_new0(struct irc_conn, 1);