Changeset eb50495
- Timestamp:
- 2010-05-04T08:45:10Z (15 years ago)
- Branches:
- master
- Children:
- 9438323
- Parents:
- 9893da3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.h
r9893da3 reb50495 91 91 { 92 92 IRC_USER_PRIVATE = 1, 93 IRC_USER_AWAY = 2, 93 94 } irc_user_flags_t; 94 95 -
irc_im.c
r9893da3 reb50495 82 82 irc_user_t *iu = bu->ui_data; 83 83 irc_channel_t *ic = irc->channels->data; /* For now, just pick the first channel. */ 84 85 /* Do this outside the if below since away state can change without 86 the online state changing. */ 87 iu->flags &= ~IRC_USER_AWAY; 88 if( bu->flags & BEE_USER_AWAY || !( bu->flags & BEE_USER_ONLINE ) ) 89 iu->flags |= IRC_USER_AWAY; 84 90 85 91 if( ( bu->flags & BEE_USER_ONLINE ) != ( old->flags & BEE_USER_ONLINE ) ) -
irc_send.c
r9893da3 reb50495 231 231 irc_send_num( irc, num, "%s :%s", iu->nick, bu->status ? : bu->status_msg ); 232 232 } 233 else if( !( bu->flags & BEE_USER_ONLINE ) ) 234 { 235 irc_send_num( irc, 301, "%s :%s", iu->nick, "User is offline" ); 236 } 233 237 } 234 238 else … … 252 256 irc_send_num( irc, 352, "%s %s %s %s %s %c :0 %s", 253 257 channel ? : "*", iu->user, iu->host, irc->root->host, 254 iu->nick, 'H', iu->fullname ); 258 iu->nick, iu->flags & IRC_USER_AWAY ? 'G' : 'H', 259 iu->fullname ); 255 260 l = l->next; 256 261 } -
protocols/bee_user.c
r9893da3 reb50495 42 42 if( bee->ui->user_new ) 43 43 bee->ui->user_new( bee, bu ); 44 45 /* Offline by default. This will set the right flags. */ 46 imcb_buddy_status( ic, handle, 0, NULL, NULL ); 44 47 45 48 return bu;
Note: See TracChangeset
for help on using the changeset viewer.