diff libpurple/protocols/irc/msgs.c @ 20112:1b420901ca3b

Move prpl-irc to purple_connection_error_reason.
author Will Thompson <will.thompson@collabora.co.uk>
date Tue, 18 Sep 2007 21:56:56 +0000
parents 44b4e8bd759b
children 57e9d1ecefff
line wrap: on
line diff
--- a/libpurple/protocols/irc/msgs.c	Tue Sep 18 21:37:36 2007 +0000
+++ b/libpurple/protocols/irc/msgs.c	Tue Sep 18 21:56:56 2007 +0000
@@ -911,8 +911,8 @@
 
 	} else {
 		gc->wants_to_die = TRUE;
-		purple_connection_error(purple_account_get_connection(irc->account),
-				      _("Your selected account name was rejected by the server.  It probably contains invalid characters."));
+		purple_connection_error_reason (gc, PURPLE_REASON_INVALID_USERNAME,
+				  _("Your selected account name was rejected by the server.  It probably contains invalid characters."));
 	}
 }