Index: src/protocols/jabber/presence.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/jabber/presence.c,v retrieving revision 1.49 diff -u -p -r1.49 presence.c --- src/protocols/jabber/presence.c 18 Jul 2004 20:32:51 -0000 1.49 +++ src/protocols/jabber/presence.c 9 Aug 2004 20:56:46 -0000 @@ -403,10 +403,12 @@ void jabber_presence_parse(JabberStream jabber_chat_track_handle(chat, jid->resource, real_jid, affiliation, role); - if (!strcmp(role, "moderator")) - flags = GAIM_CBFLAGS_OP; - else if (!strcmp(role, "participant")) - flags = GAIM_CBFLAGS_VOICE; + if (role != NULL) { + if (!strcmp(role, "moderator")) + flags = GAIM_CBFLAGS_OP; + else if (!strcmp(role, "participant")) + flags = GAIM_CBFLAGS_VOICE; + } if(!jabber_chat_find_buddy(chat->conv, jid->resource)) gaim_conv_chat_add_user(GAIM_CONV_CHAT(chat->conv), jid->resource,