Mercurial > pidgin.yaz
diff src/protocols/jabber/jabber.c @ 2501:227cc42ffa6e
[gaim-migrate @ 2514]
i should have hidden something ultra-secret in this.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 14 Oct 2001 11:36:36 +0000 |
parents | 569ae9f2bb89 |
children | e0d4a23aac89 |
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c Sun Oct 14 05:52:36 2001 +0000 +++ b/src/protocols/jabber/jabber.c Sun Oct 14 11:36:36 2001 +0000 @@ -65,10 +65,10 @@ #define IQ_AUTH 0 #define IQ_ROSTER 1 -#define UC_AWAY 0x38 -#define UC_CHAT 0x48 -#define UC_XA 0x98 -#define UC_DND 0x118 +#define UC_AWAY (0x02 | UC_UNAVAILABLE) +#define UC_CHAT 0x04 +#define UC_XA (0x08 | UC_UNAVAILABLE) +#define UC_DND (0x10 | UC_UNAVAILABLE) #define DEFAULT_SERVER "jabber.org" #define DEFAULT_GROUPCHAT "conference.jabber.org" @@ -700,7 +700,7 @@ char *buddy; xmlnode y; char *show; - int state = UC_NORMAL; + int state = 0; GSList *resources; char *res; struct conversation *cnv = NULL; @@ -713,7 +713,7 @@ if ((y = xmlnode_get_tag(p->x, "show"))) { show = xmlnode_get_data(y); if (!show) { - state = UC_NORMAL; + state = 0; } else if (!strcasecmp(show, "away")) { state = UC_AWAY; } else if (!strcasecmp(show, "chat")) { @@ -724,7 +724,7 @@ state = UC_DND; } } else { - state = UC_NORMAL; + state = 0; } who = jid_new(j->p, from); @@ -1647,7 +1647,7 @@ return m; } -static GList *jabber_away_states() { +static GList *jabber_away_states(struct gaim_connection *gc) { GList *m = NULL; m = g_list_append(m, "Online");