Mercurial > pidgin
diff libpurple/protocols/jabber/message.c @ 17840:cac26c30047a
Implemented <required/> for x-data forms, simplified malloc/sprintf, message type headline is not a requirement for incoming PEP messages (it is just recommended to avoid offline message storage).
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Sun, 10 Jun 2007 12:22:39 +0000 |
parents | a75079eae085 |
children | a0cd74d7b51e |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/message.c Wed Jun 06 02:07:53 2007 +0000 +++ b/libpurple/protocols/jabber/message.c Sun Jun 10 12:22:39 2007 +0000 @@ -354,8 +354,7 @@ } else if(!strcmp(child->name, "gone") && !strcmp(xmlns,"http://jabber.org/protocol/chatstates")) { jm->chat_state = JM_STATE_GONE; jm->typing_style |= JM_TS_JEP_0085; - } else if(!strcmp(child->name, "event") && jm->type == JABBER_MESSAGE_HEADLINE && - !strcmp(xmlns,"http://jabber.org/protocol/pubsub#event")) { + } else if(!strcmp(child->name, "event") && !strcmp(xmlns,"http://jabber.org/protocol/pubsub#event")) { xmlnode *items; jm->type = JABBER_MESSAGE_EVENT; for(items = child->child; child; child = child->next)