Changes in irc.c [1186382:bdda9e9]
Legend:
- Unmodified
- Added
- Removed
-
irc.c
r1186382 rbdda9e9 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", " utf-8", set_eval_charset, irc );134 set_add( &irc->set, "charset", "iso8859-1", 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 );146 145 set_add( &irc->set, "strip_html", "true", NULL, irc ); 147 146 set_add( &irc->set, "to_char", ": ", set_eval_to_char, irc ); … … 659 658 } 660 659 } 661 else if( ( c = chat_by_channel(channel ) ) )660 else if( ( c = irc_chat_by_channel( irc, channel ) ) ) 662 661 { 663 662 GList *l; … … 812 811 else 813 812 { 814 struct groupchat *c = chat_by_channel(channel );813 struct groupchat *c = irc_chat_by_channel( irc, channel ); 815 814 816 815 if( c ) … … 911 910 char reason[128]; 912 911 913 if( u->ic && u->ic->flags & OPT_LOGGING_OUT && set_getbool( &irc->set, "simulate_netsplit" ))912 if( u->ic && u->ic->flags & OPT_LOGGING_OUT ) 914 913 { 915 914 if( u->ic->acc->server ) … … 950 949 if( *nick == '#' || *nick == '&' ) 951 950 { 952 if( !( c = chat_by_channel(nick ) ) )951 if( !( c = irc_chat_by_channel( irc, nick ) ) ) 953 952 { 954 953 irc_reply( irc, 403, "%s :Channel does not exist", nick ); … … 1216 1215 return TRUE; 1217 1216 } 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.