- Timestamp:
- 2009-03-12T19:33:28Z (16 years ago)
- Branches:
- master
- Children:
- fc34fb5
- Parents:
- 823de9d (diff), 9e768da (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
r823de9d r673a54c 146 146 irc_connection_list = g_slist_append( irc_connection_list, irc ); 147 147 148 148 149 s = set_add( &irc->set, "auto_connect", "true", set_eval_bool, irc ); 149 150 s = set_add( &irc->set, "auto_reconnect", "false", set_eval_bool, irc ); … … 418 419 } 419 420 420 if( lines[i] ) 421 { 422 if( ( cmd = irc_parse_line( lines[i] ) ) == NULL ) 423 continue; 421 if( lines[i] && ( cmd = irc_parse_line( lines[i] ) ) ) 422 { 424 423 irc_exec( irc, cmd ); 425 424 g_free( cmd ); … … 496 495 if( line[0] == ':' ) 497 496 { 498 for( i = 0; line[i] != ' '; i ++ );497 for( i = 0; line[i] && line[i] != ' '; i ++ ); 499 498 line = line + i; 500 499 } … … 821 820 irc_reply( irc, 3, ":%s", IRCD_INFO ); 822 821 irc_reply( irc, 4, "%s %s %s %s", irc->myhost, BITLBEE_VERSION, UMODES UMODES_PRIV, CMODES ); 823 irc_reply( irc, 5, "PREFIX=(ohv)@%%+ CHANTYPES=#& CHANMODES=,,,%s NICKLEN=%d NETWORK=BitlBee CASEMAPPING=rfc1459 MAXTARGETS=1 WATCH=128 :are supported by this server", CMODES, MAX_NICK_LENGTH - 1 ); 822 irc_reply( irc, 5, "PREFIX=(ohv)@%%+ CHANTYPES=%s CHANMODES=,,,%s NICKLEN=%d NETWORK=BitlBee " 823 "CASEMAPPING=rfc1459 MAXTARGETS=1 WATCH=128 :are supported by this server", 824 CTYPES, CMODES, MAX_NICK_LENGTH - 1 ); 824 825 irc_motd( irc ); 825 826 irc->umode[0] = '\0'; … … 1085 1086 user_t *u = NULL; 1086 1087 1087 if( *nick == '#' || *nick == '&')1088 if( strchr( CTYPES, *nick ) ) 1088 1089 { 1089 1090 if( !( c = irc_chat_by_channel( irc, nick ) ) )
Note: See TracChangeset
for help on using the changeset viewer.