Mercurial > pidgin.yaz
comparison src/protocols/jabber/presence.c @ 10490:a3a540ed2518
[gaim-migrate @ 11780]
some random jabber stuff, remove a duplicate #define, and shuffle account
loading so we're not emitting signals that haven't been registered yet
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 08 Jan 2005 21:10:17 +0000 |
parents | 84bc372a621e |
children | 8bcf7909bec8 |
comparison
equal
deleted
inserted
replaced
10489:8dffdd8861b5 | 10490:a3a540ed2518 |
---|---|
69 const char *msg; | 69 const char *msg; |
70 int priority; | 70 int priority; |
71 | 71 |
72 gaim_status_to_jabber(gstatus, &state, &msg, &priority); | 72 gaim_status_to_jabber(gstatus, &state, &msg, &priority); |
73 | 73 |
74 if (state == JABBER_BUDDY_STATE_UNAVAILABLE) { | 74 if (state == JABBER_BUDDY_STATE_UNAVAILABLE || state == JABBER_BUDDY_STATE_UNKNOWN) { |
75 jabber_buddy_remove_resource(jb, js->user->resource); | 75 jabber_buddy_remove_resource(jb, js->user->resource); |
76 } else { | 76 } else { |
77 jabber_buddy_track_resource(jb, js->user->resource, priority, state, msg); | 77 jabber_buddy_track_resource(jb, js->user->resource, priority, state, msg); |
78 } | 78 } |
79 if((jbr = jabber_buddy_find_resource(jb, NULL))) { | 79 if((jbr = jabber_buddy_find_resource(jb, NULL))) { |