Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/usermood.c @ 17583:f108b91e2fee
Fixed a minor mistake which could leave the usermood to be parsed incompletely.
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Sun, 17 Jun 2007 19:38:24 +0000 |
parents | 7754d39d70c5 |
children | 6842cc73b1b7 |
comparison
equal
deleted
inserted
replaced
17582:0f0e98978d66 | 17583:f108b91e2fee |
---|---|
103 return; | 103 return; |
104 | 104 |
105 mood = xmlnode_get_child_with_namespace(item, "mood", "http://jabber.org/protocol/mood"); | 105 mood = xmlnode_get_child_with_namespace(item, "mood", "http://jabber.org/protocol/mood"); |
106 if (!mood) | 106 if (!mood) |
107 return; | 107 return; |
108 for (moodinfo = mood->child; moodinfo != mood->lastchild; moodinfo = moodinfo->next) { | 108 for (moodinfo = mood->child; moodinfo; moodinfo = moodinfo->next) { |
109 if (moodinfo->type == XMLNODE_TYPE_TAG) { | 109 if (moodinfo->type == XMLNODE_TYPE_TAG) { |
110 if (!strcmp(moodinfo->name, "text")) { | 110 if (!strcmp(moodinfo->name, "text")) { |
111 if (!moodtext) /* only pick the first one */ | 111 if (!moodtext) /* only pick the first one */ |
112 moodtext = xmlnode_get_data(moodinfo); | 112 moodtext = xmlnode_get_data(moodinfo); |
113 } else { | 113 } else { |