Mercurial > pidgin.yaz
changeset 9931:7101987a49c8
[gaim-migrate @ 10823]
use the "founder" icon in jabber chats. This is "owner" in jabber terminology
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 01 Sep 2004 23:18:19 +0000 |
parents | 45a49b01dc03 |
children | 3fa121db91d0 |
files | src/protocols/jabber/presence.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/jabber/presence.c Wed Sep 01 02:03:09 2004 +0000 +++ b/src/protocols/jabber/presence.c Wed Sep 01 23:18:19 2004 +0000 @@ -300,11 +300,13 @@ real_jid = xmlnode_get_attrib(z, "jid"); affiliation = xmlnode_get_attrib(z, "affiliation"); role = xmlnode_get_attrib(z, "role"); + if(affiliation != NULL && !strcmp(affiliation, "owner")) + flags |= GAIM_CBFLAGS_FOUNDER; if (role != NULL) { if (!strcmp(role, "moderator")) - flags = GAIM_CBFLAGS_OP; + flags |= GAIM_CBFLAGS_OP; else if (!strcmp(role, "participant")) - flags = GAIM_CBFLAGS_VOICE; + flags |= GAIM_CBFLAGS_VOICE; } } }