Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/buddy.c @ 29961:618c4165d4f8
jabber: Treat the version properly.
Granted, consensus among XMPP folks is that bumping the minor would break
almost everything, but that's no reason not to be accurate ourselves.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Tue, 09 Mar 2010 23:09:54 +0000 |
parents | fbefcfbb5377 |
children | 9f59abd49def |
comparison
equal
deleted
inserted
replaced
29960:13f320cde14f | 29961:618c4165d4f8 |
---|---|
1822 PurpleMenuAction *act; | 1822 PurpleMenuAction *act; |
1823 | 1823 |
1824 if(!jb) | 1824 if(!jb) |
1825 return m; | 1825 return m; |
1826 | 1826 |
1827 if (js->protocol_version == JABBER_PROTO_0_9 && jb != js->user_jb) { | 1827 if (js->protocol_version.major == 0 && js->protocol_version.minor == 9 && |
1828 jb != js->user_jb) { | |
1828 if(jb->invisible & JABBER_INVIS_BUDDY) { | 1829 if(jb->invisible & JABBER_INVIS_BUDDY) { |
1829 act = purple_menu_action_new(_("Un-hide From"), | 1830 act = purple_menu_action_new(_("Un-hide From"), |
1830 PURPLE_CALLBACK(jabber_buddy_make_visible), | 1831 PURPLE_CALLBACK(jabber_buddy_make_visible), |
1831 NULL, NULL); | 1832 NULL, NULL); |
1832 } else { | 1833 } else { |