Mercurial > pidgin
comparison libpurple/protocols/msn/contact.c @ 31007:388ca4797d7b
Replace the mpop account setting with a session boolean, because I
can't get a good signal for when the user changes an account setting.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 05 Dec 2010 08:13:13 +0000 |
parents | 3cff7a5e0351 |
children | c1a162c0f4e5 |
comparison
equal
deleted
inserted
replaced
31006:e9afcbec8f20 | 31007:388ca4797d7b |
---|---|
730 char *name, *value; | 730 char *name, *value; |
731 name = xmlnode_get_data(xmlnode_get_child(annotation, "Name")); | 731 name = xmlnode_get_data(xmlnode_get_child(annotation, "Name")); |
732 value = xmlnode_get_data(xmlnode_get_child(annotation, "Value")); | 732 value = xmlnode_get_data(xmlnode_get_child(annotation, "Value")); |
733 if (!strcmp(name, "MSN.IM.MPOP")) { | 733 if (!strcmp(name, "MSN.IM.MPOP")) { |
734 if (!value || atoi(value) != 0) | 734 if (!value || atoi(value) != 0) |
735 purple_account_set_bool(session->account, "mpop", TRUE); | 735 session->enable_mpop = TRUE; |
736 else | 736 else |
737 purple_account_set_bool(session->account, "mpop", FALSE); | 737 session->enable_mpop = FALSE; |
738 } | 738 } |
739 g_free(name); | 739 g_free(name); |
740 g_free(value); | 740 g_free(value); |
741 } | 741 } |
742 | 742 |