Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/usermood.c @ 25987:c4fd9222dda1
propagate from branch 'im.pidgin.pidgin' (head 303af74a38e7b313d4fb0be4d4054a16cb13d819)
to branch 'im.pidgin.cpw.darkrain42.xmpp.bosh' (head 650d82b8a5f0c8860804dd8004cd54badea48e1e)
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 07 Mar 2009 01:59:40 +0000 |
parents | 5f9a24d1c25e 26eabe8e739b |
children | 8c991e09efcb |
comparison
equal
deleted
inserted
replaced
25464:0e93bbb7f5ca | 25987:c4fd9222dda1 |
---|---|
139 } | 139 } |
140 g_free(moodtext); | 140 g_free(moodtext); |
141 } | 141 } |
142 | 142 |
143 void jabber_mood_init(void) { | 143 void jabber_mood_init(void) { |
144 jabber_add_feature("mood", "http://jabber.org/protocol/mood", jabber_pep_namespace_only_when_pep_enabled_cb); | 144 jabber_add_feature("http://jabber.org/protocol/mood", jabber_pep_namespace_only_when_pep_enabled_cb); |
145 jabber_pep_register_handler("moodn", "http://jabber.org/protocol/mood", jabber_mood_cb); | 145 jabber_pep_register_handler("http://jabber.org/protocol/mood", jabber_mood_cb); |
146 } | 146 } |
147 | 147 |
148 static void do_mood_set_from_fields(PurpleConnection *gc, PurpleRequestFields *fields) { | 148 static void do_mood_set_from_fields(PurpleConnection *gc, PurpleRequestFields *fields) { |
149 JabberStream *js; | 149 JabberStream *js; |
150 const int max_mood_idx = sizeof(moodstrings) / sizeof(moodstrings[0]) - 1; | 150 const int max_mood_idx = sizeof(moodstrings) / sizeof(moodstrings[0]) - 1; |