From 88b3a0738032596d74cb98ee6cdc8feab4b50d30 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Thu, 13 Apr 2006 09:15:42 +0200 Subject: Cleaned up two more functions from nogaim. --- protocols/nogaim.c | 14 -------------- protocols/nogaim.h | 7 ------- protocols/oscar/oscar.c | 2 -- 3 files changed, 23 deletions(-) (limited to 'protocols') diff --git a/protocols/nogaim.c b/protocols/nogaim.c index fb9c7986..72b4389c 100644 --- a/protocols/nogaim.c +++ b/protocols/nogaim.c @@ -961,20 +961,6 @@ static int remove_chat_buddy_silent( struct conversation *b, char *handle ) } -/* prefs.c */ - -/* Necessary? */ -void build_block_list() -{ - return; -} - -void build_allow_list() -{ - return; -} - - /* Misc. BitlBee stuff which shouldn't really be here */ struct conversation *conv_findchannel( char *channel ) diff --git a/protocols/nogaim.h b/protocols/nogaim.h index 4699f69f..d3be643e 100644 --- a/protocols/nogaim.h +++ b/protocols/nogaim.h @@ -219,11 +219,8 @@ G_MODULE_EXPORT void do_error_dialog( struct gaim_connection *gc, char *msg, cha G_MODULE_EXPORT void do_ask_dialog( struct gaim_connection *gc, char *msg, void *data, void *doit, void *dont ); /* list.c */ -G_MODULE_EXPORT int bud_list_cache_exists( struct gaim_connection *gc ); -G_MODULE_EXPORT void do_import( struct gaim_connection *gc, void *null ); G_MODULE_EXPORT void add_buddy( struct gaim_connection *gc, char *group, char *handle, char *realname ); G_MODULE_EXPORT struct buddy *find_buddy( struct gaim_connection *gc, char *handle ); -G_MODULE_EXPORT void do_export( struct gaim_connection *gc ); G_MODULE_EXPORT void signoff_blocked( struct gaim_connection *gc ); G_MODULE_EXPORT void serv_buddy_rename( struct gaim_connection *gc, char *handle, char *realname ); @@ -244,10 +241,6 @@ G_MODULE_EXPORT struct conversation *serv_got_joined_chat( struct gaim_connectio G_MODULE_EXPORT void serv_got_chat_in( struct gaim_connection *gc, int id, char *who, int whisper, char *msg, time_t mtime ); G_MODULE_EXPORT void serv_got_chat_left( struct gaim_connection *gc, int id ); -/* prefs.c */ -G_MODULE_EXPORT void build_block_list(); -G_MODULE_EXPORT void build_allow_list(); - struct conversation *conv_findchannel( char *channel ); #endif diff --git a/protocols/oscar/oscar.c b/protocols/oscar/oscar.c index 3342fa42..71c99151 100644 --- a/protocols/oscar/oscar.c +++ b/protocols/oscar/oscar.c @@ -2057,7 +2057,6 @@ static int gaim_ssi_parselist(aim_session_t *sess, aim_frame_t *fr, ...) { char *name; name = g_strdup(normalize(curitem->name)); gc->permit = g_slist_append(gc->permit, name); - build_allow_list(); tmp++; } } @@ -2071,7 +2070,6 @@ static int gaim_ssi_parselist(aim_session_t *sess, aim_frame_t *fr, ...) { char *name; name = g_strdup(normalize(curitem->name)); gc->deny = g_slist_append(gc->deny, name); - build_block_list(); tmp++; } } -- cgit v1.2.3 From c99af3a10749850864e230b660060f6a0719925a Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Thu, 13 Apr 2006 09:30:11 +0200 Subject: Removed account_offline(), we have signoff() already. --- protocols/nogaim.c | 6 ------ protocols/nogaim.h | 1 - 2 files changed, 7 deletions(-) (limited to 'protocols') diff --git a/protocols/nogaim.c b/protocols/nogaim.c index 72b4389c..73d1da92 100644 --- a/protocols/nogaim.c +++ b/protocols/nogaim.c @@ -388,12 +388,6 @@ void cancel_auto_reconnect( account_t *a ) a->reconnect = 0; } -void account_offline( struct gaim_connection *gc ) -{ - gc->wants_to_die = TRUE; - signoff( gc ); -} - void signoff( struct gaim_connection *gc ) { irc_t *irc = gc->irc; diff --git a/protocols/nogaim.h b/protocols/nogaim.h index d3be643e..4251fbaa 100644 --- a/protocols/nogaim.h +++ b/protocols/nogaim.h @@ -211,7 +211,6 @@ G_MODULE_EXPORT void hide_login_progress( struct gaim_connection *gc, char *msg G_MODULE_EXPORT void hide_login_progress_error( struct gaim_connection *gc, char *msg ); G_MODULE_EXPORT void serv_got_crap( struct gaim_connection *gc, char *format, ... ); G_MODULE_EXPORT void account_online( struct gaim_connection *gc ); -G_MODULE_EXPORT void account_offline( struct gaim_connection *gc ); G_MODULE_EXPORT void signoff( struct gaim_connection *gc ); /* dialogs.c */ -- cgit v1.2.3 From 4d8988640fd540caced98ab21296f16d3b940881 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Fri, 14 Apr 2006 08:18:23 +0200 Subject: Removed import_buddies message. --- protocols/nogaim.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'protocols') diff --git a/protocols/nogaim.c b/protocols/nogaim.c index 73d1da92..51d08e5a 100644 --- a/protocols/nogaim.c +++ b/protocols/nogaim.c @@ -359,17 +359,6 @@ void account_online( struct gaim_connection *gc ) /* Also necessary when we're not away, at least for some of the protocols. */ proto_away( gc, u->away ); - - if( strcmp( gc->prpl->name, "ICQ" ) == 0 ) - { - for( u = gc->irc->users; u; u = u->next ) - if( u->gc == gc ) - break; - - if( u == NULL ) - serv_got_crap( gc, "\x02""***\x02"" BitlBee now supports ICQ server-side contact lists. " - "See \x02""help import_buddies\x02"" for more information." ); - } } gboolean auto_reconnect( gpointer data ) -- cgit v1.2.3 From 5aa9551e1909e076edf733697f77bb0dc7a7ddde Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 17 Apr 2006 10:09:55 +0200 Subject: Y2K! ;-) --- protocols/oscar/oscar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/oscar/oscar.c b/protocols/oscar/oscar.c index 71c99151..53da1e27 100644 --- a/protocols/oscar/oscar.c +++ b/protocols/oscar/oscar.c @@ -2275,7 +2275,7 @@ static int gaim_icqinfo(aim_session_t *sess, aim_frame_t *fr, ...) struct tm tm; tm.tm_mday = (int)info->birthday; tm.tm_mon = (int)info->birthmonth-1; - tm.tm_year = (int)info->birthyear-1900; + tm.tm_year = (int)info->birthyear%100; strftime(date, sizeof(date), "%Y-%m-%d", &tm); info_string_append(str, "\n", _("Birthday"), date); } -- cgit v1.2.3 From 6e62132fd4433e48ca85ee8ffcc6e848acb2547e Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 17 Apr 2006 10:25:16 +0200 Subject: Fixed ssl_nss.c (although it still needs some non-blocking I/O changes). --- protocols/ssl_nss.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'protocols') diff --git a/protocols/ssl_nss.c b/protocols/ssl_nss.c index dfd32622..00d32834 100644 --- a/protocols/ssl_nss.c +++ b/protocols/ssl_nss.c @@ -121,10 +121,10 @@ static void ssl_connected( gpointer data, gint source, GaimInputCondition cond ) if( source == -1 ) goto ssl_connected_failure; - - - + /* Until we find out how to handle non-blocking I/O with NSS... */ + sock_make_blocking( conn->fd ); + conn->prfd = SSL_ImportFD(NULL, PR_ImportTCPSocket(source)); SSL_OptionSet(conn->prfd, SSL_SECURITY, PR_TRUE); SSL_OptionSet(conn->prfd, SSL_HANDSHAKE_AS_CLIENT, PR_TRUE); @@ -180,3 +180,9 @@ int ssl_getfd( void *conn ) { return( ((struct scd*)conn)->fd ); } + +GaimInputCondition ssl_getdirection( void *conn ) +{ + /* Just in case someone calls us, let's return the most likely case: */ + return GAIM_INPUT_READ; +} -- cgit v1.2.3