Changeset 7b8238d for irc_channel.c
- Timestamp:
- 2015-01-28T17:06:40Z (9 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.