Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/disco.c @ 29929:3e5bb4e2334c
Added PurpleConnection flags to determine support for moods and mood messages.
Mood messages is yet to be implemented in the UI (and replacing the current
account-specific mood setting for XMPP).
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Thu, 04 Mar 2010 22:14:03 +0000 |
parents | 4f3a9ddfa34e |
children | 7c871249318b ae615b3d3e47 |
comparison
equal
deleted
inserted
replaced
29928:cead5610c89a | 29929:3e5bb4e2334c |
---|---|
515 for (child = xmlnode_get_child(query, "identity"); child; | 515 for (child = xmlnode_get_child(query, "identity"); child; |
516 child = xmlnode_get_next_twin(child)) { | 516 child = xmlnode_get_next_twin(child)) { |
517 const char *category, *type, *name; | 517 const char *category, *type, *name; |
518 category = xmlnode_get_attrib(child, "category"); | 518 category = xmlnode_get_attrib(child, "category"); |
519 type = xmlnode_get_attrib(child, "type"); | 519 type = xmlnode_get_attrib(child, "type"); |
520 if(category && type && !strcmp(category, "pubsub") && !strcmp(type,"pep")) | 520 if(category && type && !strcmp(category, "pubsub") && !strcmp(type,"pep")) { |
521 PurpleConnection *gc = js->gc; | |
521 js->pep = TRUE; | 522 js->pep = TRUE; |
523 gc->flags |= PURPLE_CONNECTION_SUPPORT_MOODS | | |
524 PURPLE_CONNECTION_SUPPORT_MOOD_MESSAGES; | |
525 } | |
522 if (!category || strcmp(category, "server")) | 526 if (!category || strcmp(category, "server")) |
523 continue; | 527 continue; |
524 if (!type || strcmp(type, "im")) | 528 if (!type || strcmp(type, "im")) |
525 continue; | 529 continue; |
526 | 530 |