The order of enums in the lm-message.h and lm-message.c for the stream:error and stream:features message types was transposed, leading to inaccurate identification of those two types.
--- a/loudmouth/lm-message.c Thu Jan 29 09:15:05 2009 -0600
+++ b/loudmouth/lm-message.c Tue Feb 17 11:22:22 2009 -0700
@@ -43,8 +43,8 @@
{ LM_MESSAGE_TYPE_PRESENCE, "presence" },
{ LM_MESSAGE_TYPE_IQ, "iq" },
{ LM_MESSAGE_TYPE_STREAM, "stream:stream" },
+ { LM_MESSAGE_TYPE_STREAM_ERROR, "stream:error" },
{ LM_MESSAGE_TYPE_STREAM_FEATURES, "stream:features" },
- { LM_MESSAGE_TYPE_STREAM_ERROR, "stream:error" },
{ LM_MESSAGE_TYPE_AUTH, "auth" },
{ LM_MESSAGE_TYPE_CHALLENGE, "challenge" },
{ LM_MESSAGE_TYPE_RESPONSE, "response" },