diff libpurple/protocols/mxit/protocol.c @ 28989:7d0b473f2295

I think errdesc was meant to be used here, not errmsg. errmsg isn't initialized and errdesc is, and errdesc makes the happy little error box show up at the bottom of the buddy list. Fixes a crash when attempting to register for a new account (and failing because my phone number is invalid--maybe I have to be in South Africa?)
author Mark Doliner <mark@kingant.net>
date Sun, 22 Nov 2009 18:22:18 +0000
parents 69aa4660401a
children 5f80ab7ac183
line wrap: on
line diff
--- a/libpurple/protocols/mxit/protocol.c	Sun Nov 22 13:40:47 2009 +0000
+++ b/libpurple/protocols/mxit/protocol.c	Sun Nov 22 18:22:18 2009 +0000
@@ -1944,7 +1944,7 @@
 
 	if ( packet->errcode == MXIT_ERRCODE_LOGGEDOUT ) {
 		/* we are not currently logged in, so we need to reconnect */
-		purple_connection_error( session->con, _( errmsg ) );
+		purple_connection_error( session->con, _( errdesc ) );
 	}
 
 	/* packet command */