Changeset 61fc056
- Timestamp:
- 2018-08-26T20:56:09Z (6 years ago)
- Branches:
- master
- Children:
- 37437f2
- Parents:
- 0b1448f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_im.c
r0b1448f r61fc056 121 121 } 122 122 123 /* return early if nothing changed */ 124 if ((bu->flags == old->flags) && 125 (g_strcmp0(bu->status, old->status) == 0) && 126 (g_strcmp0(bu->status_msg, old->status_msg) == 0)) { 127 return TRUE; 128 } 129 123 130 if ((bu->flags & BEE_USER_ONLINE) != (old->flags & BEE_USER_ONLINE)) { 124 131 if (bu->flags & BEE_USER_ONLINE) { … … 144 151 } 145 152 146 /* Reset this one since the info may have changed. */147 153 iu->away_reply_timeout = 0; 148 154 149 155 bee_irc_channel_update(irc, NULL, iu); 150 156 151 /* If away-notify enabled, send status updates when: 152 * Away or Online state changes 153 * Status changes (e.g. "Away" to "Mobile") 154 * Status message changes 155 */ 156 if ((irc->caps & CAP_AWAY_NOTIFY) && 157 ((bu->flags & BEE_USER_AWAY) != (old->flags & BEE_USER_AWAY) || 158 (bu->flags & BEE_USER_ONLINE) != (old->flags & BEE_USER_ONLINE) || 159 (g_strcmp0(bu->status, old->status) != 0) || 160 (g_strcmp0(bu->status_msg, old->status_msg) != 0))) { 157 if (irc->caps & CAP_AWAY_NOTIFY) { 161 158 irc_send_away_notify(iu); 162 159 }
Note: See TracChangeset
for help on using the changeset viewer.