Mercurial > pidgin.yaz
diff libpurple/protocols/oscar/flap_connection.c @ 18609:2774acdb1cff
Move a call to purple_connection_error() from oscar.c to
flap_connection.c, where it makes more sense.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 22 Jul 2007 08:28:55 +0000 |
parents | a244c34ce59c |
children | 9f3a85a59939 |
line wrap: on
line diff
--- a/libpurple/protocols/oscar/flap_connection.c Sun Jul 22 08:18:27 2007 +0000 +++ b/libpurple/protocols/oscar/flap_connection.c Sun Jul 22 08:28:55 2007 +0000 @@ -380,7 +380,10 @@ { /* No more FLAP connections! Sign off this PurpleConnection! */ gchar *tmp; - if (conn->disconnect_reason == OSCAR_DISCONNECT_REMOTE_CLOSED) + if (conn->disconnect_code == 0x0001) { + tmp = g_strdup(_("You have signed on from another location.")); + od->gc->wants_to_die = TRUE; + } else if (conn->disconnect_reason == OSCAR_DISCONNECT_REMOTE_CLOSED) tmp = g_strdup(_("Server closed the connection.")); else if (conn->disconnect_reason == OSCAR_DISCONNECT_LOST_CONNECTION) tmp = g_strdup_printf(_("Lost connection with server:\n%s"),