Changeset 7b8238d
- Timestamp:
- 2015-01-28T17:06:40Z (10 years ago)
- Branches:
- master
- Children:
- 7821ee8
- Parents:
- 1fa5109
- git-author:
- jgeboski <jgeboski@…> (17-12-14 17:57:17)
- git-committer:
- jgeboski <jgeboski@…> (28-01-15 17:06:40)
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
r1fa5109 r7b8238d 953 953 954 954 if( strcmp( set->key, "away_devoice" ) == 0 && !bool2int( value ) ) 955 val = "online, away";955 val = "online,special%,away"; 956 956 else if( strcmp( set->key, "show_offline" ) == 0 && bool2int( value ) ) 957 val = "online@, away+,offline";957 val = "online@,special%,away+,offline"; 958 958 else 959 val = "online+, away";959 val = "online+,special%,away"; 960 960 961 961 for( l = irc->channels; l; l = l->next ) -
irc.h
r1fa5109 r7b8238d 224 224 struct account *account; 225 225 struct prpl *protocol; 226 char modes[ 4];226 char modes[5]; 227 227 }; 228 228 -
irc_channel.c
r1fa5109 r7b8238d 642 642 643 643 /* When changing the default, also change it below. */ 644 set_add( &ic->set, "show_users", "online+, away", set_eval_show_users, ic );644 set_add( &ic->set, "show_users", "online+,special%,away", set_eval_show_users, ic ); 645 645 646 646 ic->data = icc = g_new0( struct irc_control_channel, 1 ); … … 648 648 649 649 /* Have to run the evaluator to initialize icc->modes. */ 650 set_setstr( &ic->set, "show_users", "online+, away" );650 set_setstr( &ic->set, "show_users", "online+,special%,away" ); 651 651 652 652 /* For scripts that care. */ … … 744 744 struct irc_control_channel *icc = ic->data; 745 745 char **parts = g_strsplit( value, ",", 0 ), **part; 746 char modes[ 4];747 748 memset( modes, 0, 4);746 char modes[5]; 747 748 memset( modes, 0, 5 ); 749 749 for( part = parts; *part; part ++ ) 750 750 { … … 766 766 else if( strncmp( *part, "away", 4 ) == 0 ) 767 767 modes[1] = modechar; 768 else if( strncmp( *part, "special", 7 ) == 0 ) 769 modes[2] = modechar; 768 770 else if( strncmp( *part, "online", 6 ) == 0 ) 769 modes[ 2] = modechar;771 modes[3] = modechar; 770 772 else 771 773 goto fail; 772 774 } 773 memcpy( icc->modes, modes, 4);775 memcpy( icc->modes, modes, 5 ); 774 776 bee_irc_channel_update( ic->irc, ic, NULL ); 775 777 -
irc_im.c
r1fa5109 r7b8238d 190 190 else if( iu->bu->flags & BEE_USER_AWAY ) 191 191 mode = icc->modes[1]; 192 else if( iu->bu->flags & BEE_USER_SPECIAL ) 193 mode = icc->modes[2]; 192 194 else 193 mode = icc->modes[ 2];195 mode = icc->modes[3]; 194 196 195 197 if( !mode ) -
protocols/bee.h
r1fa5109 r7b8238d 63 63 BEE_USER_MOBILE = 8, /* Compatibility with old OPT_MOBILE flag */ 64 64 BEE_USER_LOCAL = 256, /* Locally-added contacts (not in real contact list) */ 65 BEE_USER_SPECIAL = 512, /* Denotes a user as being special */ 65 66 } bee_user_flags_t; 66 67
Note: See TracChangeset
for help on using the changeset viewer.