changeset 5588:a569fef2a6b1

[gaim-migrate @ 5992] What the hell did you do, Sean? :P I'm stumped as well. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 31 May 2003 07:12:20 +0000
parents 1c55b1540e18
children 343dbdcc44e2
files src/protocols/irc/irc.c
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/irc/irc.c	Sat May 31 06:59:58 2003 +0000
+++ b/src/protocols/irc/irc.c	Sat May 31 07:12:20 2003 +0000
@@ -61,9 +61,6 @@
 
 static GaimPlugin *my_protocol = NULL;
 
-/* for win32 compatability */
-G_MODULE_IMPORT GSList *connections;
-
 #ifndef INET6_ADDRSTRLEN
 #define INET6_ADDRSTRLEN 46
 #endif
@@ -1247,7 +1244,7 @@
 
 static void 
 dcc_chat_init(struct dcc_chat *data) {
-	if (g_slist_find(connections, data->gc)) {
+	if (g_list_find(gaim_connections_get_all(), data->gc)) {
 		proxy_connect(data->gc->account, data->ip_address, data->port, dcc_chat_callback, data);
 	} else {
 		g_free(data);
@@ -1256,7 +1253,7 @@
 
 static void 
 dcc_chat_cancel(struct dcc_chat *data){
-	if (g_slist_find(connections, data->gc) && find_dcc_chat(data->gc, data->nick)) {
+	if (g_list_find(gaim_connections_get_all(), data->gc) && find_dcc_chat(data->gc, data->nick)) {
 		dcc_chat_list = g_slist_remove(dcc_chat_list, data); 
 		gaim_input_remove (data->inpa);
 		close (data->fd);
@@ -1881,7 +1878,7 @@
 	const char *charset = gaim_account_get_string(account, "charset", "UTF-8");
 	GError *err = NULL;
 	
-	if (!g_slist_find(connections, gc)) {
+	if (!g_list_find(gaim_connections_get_all(), gc)) {
 		close(source);
 		return;
 	}
@@ -2542,7 +2539,7 @@
 		return -EINVAL;
 	if (send_msg(gc, c->name, what) > 0)
 		serv_got_chat_in(gc, gaim_chat_get_id(GAIM_CHAT(c)),
-		gaim_connection_get_display_name(gc), 0, what, time(NULL));
+			(char *)gaim_connection_get_display_name(gc), 0, what, time(NULL));
 	return 0;
 }