Changes in irc.c [bdda9e9:1186382]
Legend:
- Unmodified
- Added
- Removed
-
irc.c
rbdda9e9 r1186382 132 132 set_add( &irc->set, "buddy_sendbuffer", "false", set_eval_bool, irc ); 133 133 set_add( &irc->set, "buddy_sendbuffer_delay", "200", set_eval_int, irc ); 134 set_add( &irc->set, "charset", " iso8859-1", set_eval_charset, irc );134 set_add( &irc->set, "charset", "utf-8", set_eval_charset, irc ); 135 135 set_add( &irc->set, "debug", "false", set_eval_bool, irc ); 136 136 set_add( &irc->set, "default_target", "root", NULL, irc ); … … 143 143 set_add( &irc->set, "query_order", "lifo", NULL, irc ); 144 144 set_add( &irc->set, "save_on_quit", "true", set_eval_bool, irc ); 145 set_add( &irc->set, "simulate_netsplit", "true", set_eval_bool, irc ); 145 146 set_add( &irc->set, "strip_html", "true", NULL, irc ); 146 147 set_add( &irc->set, "to_char", ": ", set_eval_to_char, irc ); … … 658 659 } 659 660 } 660 else if( ( c = irc_chat_by_channel( irc,channel ) ) )661 else if( ( c = chat_by_channel( channel ) ) ) 661 662 { 662 663 GList *l; … … 811 812 else 812 813 { 813 struct groupchat *c = irc_chat_by_channel( irc,channel );814 struct groupchat *c = chat_by_channel( channel ); 814 815 815 816 if( c ) … … 910 911 char reason[128]; 911 912 912 if( u->ic && u->ic->flags & OPT_LOGGING_OUT )913 if( u->ic && u->ic->flags & OPT_LOGGING_OUT && set_getbool( &irc->set, "simulate_netsplit" ) ) 913 914 { 914 915 if( u->ic->acc->server ) … … 949 950 if( *nick == '#' || *nick == '&' ) 950 951 { 951 if( !( c = irc_chat_by_channel( irc,nick ) ) )952 if( !( c = chat_by_channel( nick ) ) ) 952 953 { 953 954 irc_reply( irc, 403, "%s :Channel does not exist", nick ); … … 1215 1216 return TRUE; 1216 1217 } 1217 1218 struct groupchat *irc_chat_by_channel( irc_t *irc, char *channel )1219 {1220 struct groupchat *c;1221 account_t *a;1222 1223 /* This finds the connection which has a conversation which belongs to this channel */1224 for( a = irc->accounts; a; a = a->next )1225 {1226 if( a->ic == NULL )1227 continue;1228 1229 c = a->ic->groupchats;1230 while( c )1231 {1232 if( c->channel && g_strcasecmp( c->channel, channel ) == 0 )1233 return c;1234 1235 c = c->next;1236 }1237 }1238 1239 return NULL;1240 }
Note: See TracChangeset
for help on using the changeset viewer.