Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    rbdda9e9 r1186382  
    132132        set_add( &irc->set, "buddy_sendbuffer", "false", set_eval_bool, irc );
    133133        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 );
    135135        set_add( &irc->set, "debug", "false", set_eval_bool, irc );
    136136        set_add( &irc->set, "default_target", "root", NULL, irc );
     
    143143        set_add( &irc->set, "query_order", "lifo", NULL, irc );
    144144        set_add( &irc->set, "save_on_quit", "true", set_eval_bool, irc );
     145        set_add( &irc->set, "simulate_netsplit", "true", set_eval_bool, irc );
    145146        set_add( &irc->set, "strip_html", "true", NULL, irc );
    146147        set_add( &irc->set, "to_char", ": ", set_eval_to_char, irc );
     
    658659                }
    659660        }
    660         else if( ( c = irc_chat_by_channel( irc, channel ) ) )
     661        else if( ( c = chat_by_channel( channel ) ) )
    661662        {
    662663                GList *l;
     
    811812        else
    812813        {
    813                 struct groupchat *c = irc_chat_by_channel( irc, channel );
     814                struct groupchat *c = chat_by_channel( channel );
    814815               
    815816                if( c )
     
    910911        char reason[128];
    911912       
    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" ) )
    913914        {
    914915                if( u->ic->acc->server )
     
    949950        if( *nick == '#' || *nick == '&' )
    950951        {
    951                 if( !( c = irc_chat_by_channel( irc, nick ) ) )
     952                if( !( c = chat_by_channel( nick ) ) )
    952953                {
    953954                        irc_reply( irc, 403, "%s :Channel does not exist", nick );
     
    12151216        return TRUE;
    12161217}
    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.