Changeset 3edaed9 for protocols


Ignore:
Timestamp:
2006-04-25T17:57:23Z (19 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
1be54a9
Parents:
85616c3 (diff), 79c6f9f (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.
Message:

Misc. things (mainly code cleanup, better quoting for root commands)

Location:
protocols
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    r85616c3 r3edaed9  
    360360           protocols. */
    361361        proto_away( gc, u->away );
    362        
    363         if( strcmp( gc->prpl->name, "ICQ" ) == 0 )
    364         {
    365                 for( u = gc->irc->users; u; u = u->next )
    366                         if( u->gc == gc )
    367                                 break;
    368                
    369                 if( u == NULL )
    370                         serv_got_crap( gc, "\x02""***\x02"" BitlBee now supports ICQ server-side contact lists. "
    371                                               "See \x02""help import_buddies\x02"" for more information." );
    372         }
    373362}
    374363
     
    387376        while( g_source_remove_by_user_data( (gpointer) a ) );
    388377        a->reconnect = 0;
    389 }
    390 
    391 void account_offline( struct gaim_connection *gc )
    392 {
    393         gc->wants_to_die = TRUE;
    394         signoff( gc );
    395378}
    396379
     
    959942       
    960943        return( 0 );
    961 }
    962 
    963 
    964 /* prefs.c */
    965 
    966 /* Necessary? */
    967 void build_block_list()
    968 {
    969         return;
    970 }
    971 
    972 void build_allow_list()
    973 {
    974         return;
    975944}
    976945
  • protocols/nogaim.h

    r85616c3 r3edaed9  
    212212G_MODULE_EXPORT void serv_got_crap( struct gaim_connection *gc, char *format, ... );
    213213G_MODULE_EXPORT void account_online( struct gaim_connection *gc );
    214 G_MODULE_EXPORT void account_offline( struct gaim_connection *gc );
    215214G_MODULE_EXPORT void signoff( struct gaim_connection *gc );
    216215
     
    220219
    221220/* list.c */
    222 G_MODULE_EXPORT int bud_list_cache_exists( struct gaim_connection *gc );
    223 G_MODULE_EXPORT void do_import( struct gaim_connection *gc, void *null );
    224221G_MODULE_EXPORT void add_buddy( struct gaim_connection *gc, char *group, char *handle, char *realname );
    225222G_MODULE_EXPORT struct buddy *find_buddy( struct gaim_connection *gc, char *handle );
    226 G_MODULE_EXPORT void do_export( struct gaim_connection *gc );
    227223G_MODULE_EXPORT void signoff_blocked( struct gaim_connection *gc );
    228224
     
    245241G_MODULE_EXPORT void serv_got_chat_left( struct gaim_connection *gc, int id );
    246242
    247 /* prefs.c */
    248 G_MODULE_EXPORT void build_block_list();
    249 G_MODULE_EXPORT void build_allow_list();
    250 
    251243struct conversation *conv_findchannel( char *channel );
    252244
  • protocols/oscar/oscar.c

    r85616c3 r3edaed9  
    20582058                                                name = g_strdup(normalize(curitem->name));
    20592059                                                gc->permit = g_slist_append(gc->permit, name);
    2060                                                 build_allow_list();
    20612060                                                tmp++;
    20622061                                        }
     
    20722071                                                name = g_strdup(normalize(curitem->name));
    20732072                                                gc->deny = g_slist_append(gc->deny, name);
    2074                                                 build_block_list();
    20752073                                                tmp++;
    20762074                                        }
     
    22782276                tm.tm_mday = (int)info->birthday;
    22792277                tm.tm_mon = (int)info->birthmonth-1;
    2280                 tm.tm_year = (int)info->birthyear-1900;
     2278                tm.tm_year = (int)info->birthyear%100;
    22812279                strftime(date, sizeof(date), "%Y-%m-%d", &tm);
    22822280                info_string_append(str, "\n", _("Birthday"), date);
  • protocols/ssl_nss.c

    r85616c3 r3edaed9  
    122122        if( source == -1 )
    123123                goto ssl_connected_failure;
    124 
    125124       
    126 
    127 
     125        /* Until we find out how to handle non-blocking I/O with NSS... */
     126        sock_make_blocking( conn->fd );
     127       
    128128        conn->prfd = SSL_ImportFD(NULL, PR_ImportTCPSocket(source));
    129129        SSL_OptionSet(conn->prfd, SSL_SECURITY, PR_TRUE);
     
    181181        return( ((struct scd*)conn)->fd );
    182182}
     183
     184GaimInputCondition ssl_getdirection( void *conn )
     185{
     186        /* Just in case someone calls us, let's return the most likely case: */
     187        return GAIM_INPUT_READ;
     188}
Note: See TracChangeset for help on using the changeset viewer.