diff src/protocols/napster/napster.c @ 7118:bf630f7dfdcd

[gaim-migrate @ 7685] Here's a commit that I think will make faceprint happy. GaimWindow -> GaimConvWindow, GaimIm -> GaimConvIm, GaimChat -> GaimConvChat, GaimBlistChat -> GaimChat, and updated the API functions as well. Plugin authors are going to hunt me down and murder me. I can feel it.. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 02 Oct 2003 02:54:07 +0000
parents 0909ebf6fb28
children a6298fd7ee21
line wrap: on
line diff
--- a/src/protocols/napster/napster.c	Thu Oct 02 02:15:36 2003 +0000
+++ b/src/protocols/napster/napster.c	Thu Oct 02 02:54:07 2003 +0000
@@ -125,7 +125,7 @@
 }
 
 /* 205 - MSG_CLIENT_PRIVMSG */
-static int nap_send_im(GaimConnection *gc, const char *who, const char *message, GaimImFlags flags)
+static int nap_send_im(GaimConnection *gc, const char *who, const char *message, GaimConvImFlags flags)
 {
 
 	if ((strlen(message) < 2) || (message[0] != '/' ) || (message[1] == '/')) {
@@ -326,14 +326,14 @@
 	case 401: /* MSG_CLIENT_PART */
 		c = nap_find_chat(gc, buf);
 		if (c)
-			serv_got_chat_left(gc, gaim_chat_get_id(GAIM_CHAT(c)));
+			serv_got_chat_left(gc, gaim_conv_chat_get_id(GAIM_CONV_CHAT(c)));
 		break;
 
 	case 403: /* MSG_SERVER_PUBLIC */
 		res = g_strsplit(buf, " ", 3);
 		c = nap_find_chat(gc, res[0]);
 		if (c)
-			serv_got_chat_in(gc, gaim_chat_get_id(GAIM_CHAT(c)), res[1], 0, res[2], time((time_t)NULL));
+			serv_got_chat_in(gc, gaim_conv_chat_get_id(GAIM_CONV_CHAT(c)), res[1], 0, res[2], time((time_t)NULL));
 		g_strfreev(res);
 		break;
 
@@ -345,13 +345,13 @@
 	case 405: /* MSG_SERVER_JOIN_ACK */
 		c = nap_find_chat(gc, buf);
 		if (!c)
-			serv_got_joined_chat(gc, gaim_chat_get_id(GAIM_CHAT(c)), buf);
+			serv_got_joined_chat(gc, gaim_conv_chat_get_id(GAIM_CONV_CHAT(c)), buf);
 		break;
 
 	case 407: /* MSG_SERVER_PART */
 		res = g_strsplit(buf, " ", 0);
 		c = nap_find_chat(gc, res[0]);
-		gaim_chat_remove_user(GAIM_CHAT(c), res[1], NULL);
+		gaim_conv_chat_remove_user(GAIM_CONV_CHAT(c), res[1], NULL);
 		g_strfreev(res);
 		break;
 
@@ -359,7 +359,7 @@
 	case 408: /* MSG_SERVER_CHANNEL_USER_LIST */
 		res = g_strsplit(buf, " ", 4);
 		c = nap_find_chat(gc, res[0]);
-		gaim_chat_add_user(GAIM_CHAT(c), res[1], NULL);
+		gaim_conv_chat_add_user(GAIM_CONV_CHAT(c), res[1], NULL);
 		g_strfreev(res);
 		break;
 
@@ -370,7 +370,7 @@
 		/* display the topic in the channel */
 		res = g_strsplit(buf, " ", 2);
 		c = nap_find_chat(gc, res[0]);
-		gaim_chat_set_topic(GAIM_CHAT(c), res[0], res[1]);
+		gaim_conv_chat_set_topic(GAIM_CONV_CHAT(c), res[0], res[1]);
 		g_strfreev(res);
 		break;
 
@@ -433,7 +433,7 @@
 		buf3 = g_strdup_printf("/me %s", buf2);
 		g_free(buf2);
 		if ((c = nap_find_chat(gc, res[0]))) {
-			gaim_chat_write(GAIM_CHAT(c), res[1], buf3, GAIM_MESSAGE_NICK, time(NULL));
+			gaim_conv_chat_write(GAIM_CONV_CHAT(c), res[1], buf3, GAIM_MESSAGE_NICK, time(NULL));
 		}
 		g_free(buf3);
 		g_strfreev(res);