diff plugins/tcl/tcl_cmds.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 abdc55ffadba
children bb484e976aa8
line wrap: on
line diff
--- a/plugins/tcl/tcl_cmds.c	Thu Oct 02 02:15:36 2003 +0000
+++ b/plugins/tcl/tcl_cmds.c	Thu Oct 02 02:54:07 2003 +0000
@@ -261,7 +261,7 @@
 	GaimBlistNode *node, *gnode, *bnode;
 	GaimAccount *account;
 	GaimBuddy *bud;
-	GaimBlistChat *cnode;
+	GaimChat *cnode;
 	int error, all = 0, count;
 
 	if (objc < 2) {
@@ -284,7 +284,7 @@
 		if ((node = tcl_list_to_buddy(interp, count, elems)) == NULL)
 			return TCL_ERROR;
 		if (node->type == GAIM_BLIST_CHAT_NODE)
-			Tcl_SetStringObj(result, ((GaimBlistChat *)node)->alias, -1);
+			Tcl_SetStringObj(result, ((GaimChat *)node)->alias, -1);
 		else if (node->type == GAIM_BLIST_BUDDY_NODE)
 			Tcl_SetStringObj(result, (char *)gaim_get_buddy_alias((GaimBuddy *)node), -1);
 		return TCL_OK;
@@ -373,7 +373,7 @@
 					Tcl_DecrRefCount(tclcontactlist);
 					break;
 				case GAIM_BLIST_CHAT_NODE:
-					cnode = (GaimBlistChat *)node;
+					cnode = (GaimChat *)node;
 					if (!all && !gaim_account_is_connected(cnode->account))
 						continue;
 					tclbud = Tcl_NewListObj(0, NULL);
@@ -599,9 +599,9 @@
 			break;
 		}
 		if (gaim_conversation_get_type(convo) == GAIM_CONV_CHAT)
-			gaim_chat_write(GAIM_CHAT(convo), from, what, flags, time(NULL));
+			gaim_conv_chat_write(GAIM_CONV_CHAT(convo), from, what, flags, time(NULL));
 		else
-			gaim_im_write(GAIM_IM(convo), from, what, flags, time(NULL));
+			gaim_conv_im_write(GAIM_CONV_IM(convo), from, what, flags, time(NULL));
 		break;
 	}