Mercurial > pidgin
comparison src/blist.c @ 5305:d2732160850b
[gaim-migrate @ 5677]
David Brigada (jsi) writes:
" This patch makes it so that Gaim doesn't emit the
signal for "buddy is not away" when a buddy logs off if
the buddy wasn't away in the first place. This was
causing unsightly clutter in conversation windows with
the buddy status notification plugin."
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Tue, 06 May 2003 00:11:23 +0000 |
parents | 436c83d60be0 |
children | 8d118c2b03c9 |
comparison
equal
deleted
inserted
replaced
5304:51903cf0c039 | 5305:d2732160850b |
---|---|
138 | 138 |
139 if (buddy->uc == status) | 139 if (buddy->uc == status) |
140 return; | 140 return; |
141 | 141 |
142 ops = gaimbuddylist->ui_ops; | 142 ops = gaimbuddylist->ui_ops; |
143 | |
144 if((status & UC_UNAVAILABLE) != (buddy->uc & UC_UNAVAILABLE)) { | |
145 if(status & UC_UNAVAILABLE) | |
146 gaim_event_broadcast(event_buddy_away, buddy->account->gc, buddy->name); | |
147 else | |
148 gaim_event_broadcast(event_buddy_back, buddy->account->gc, buddy->name); | |
149 } | |
150 | |
143 buddy->uc = status; | 151 buddy->uc = status; |
144 | |
145 if(!(status & UC_UNAVAILABLE)) | |
146 gaim_event_broadcast(event_buddy_back, buddy->account->gc, buddy->name); | |
147 else | |
148 gaim_event_broadcast(event_buddy_away, buddy->account->gc, buddy->name); | |
149 | |
150 if (ops) | 152 if (ops) |
151 ops->update(gaimbuddylist, (GaimBlistNode*)buddy); | 153 ops->update(gaimbuddylist, (GaimBlistNode*)buddy); |
152 } | 154 } |
153 | 155 |
154 static gboolean presence_update_timeout_cb(struct buddy *buddy) { | 156 static gboolean presence_update_timeout_cb(struct buddy *buddy) { |