diff src/protocols/toc/toc.c @ 6622:a4622f1fb5a1

[gaim-migrate @ 7146] (10:10:23) Robot101: kills off OPT_CONN_* in favour of an enum, and deprecates all the IM_FLAGS_* except IM_FLAG_AWAY which is made into GAIM_IM_AUTO_RESP in a GaimImFlags enum. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 25 Aug 2003 14:12:28 +0000
parents 7c14b35bc984
children 156e6643f9db
line wrap: on
line diff
--- a/src/protocols/toc/toc.c	Mon Aug 25 02:49:42 2003 +0000
+++ b/src/protocols/toc/toc.c	Mon Aug 25 14:12:28 2003 +0000
@@ -169,8 +169,8 @@
 
 	gc = gaim_account_get_connection(account);
 	gc->proto_data = tdt = g_new0(struct toc_data, 1);
-	gc->flags |= OPT_CONN_HTML;
-	gc->flags |= OPT_CONN_AUTO_RESP;
+	gc->flags |= GAIM_CONNECTION_HTML;
+	gc->flags |= GAIM_CONNECTION_AUTO_RESP;
 
 	g_snprintf(buf, sizeof buf, _("Looking up %s"),
 			gaim_account_get_string(account, "server", TOC_HOST));
@@ -737,7 +737,7 @@
 			message++;
 		message++;
 
-		a = (away && (*away == 'T')) ? IM_FLAG_AWAY : 0;
+		a = (away && (*away == 'T')) ? GAIM_IM_AUTO_RESP : 0;
 
 		serv_got_im(gc, c, message, a, time(NULL), -1);
 	} else if (!g_ascii_strcasecmp(c, "UPDATE_BUDDY")) {
@@ -1058,7 +1058,7 @@
 	}
 }
 
-static int toc_send_im(GaimConnection *gc, const char *name, const char *message, int len, int flags)
+static int toc_send_im(GaimConnection *gc, const char *name, const char *message, int len, GaimImFlags flags)
 {
 	char *buf1, *buf2;
 
@@ -1071,7 +1071,7 @@
 
 gaim_debug(GAIM_DEBUG_ERROR, "xxx", "1 - Sending message %s\n", buf1);
 	buf2 = g_strdup_printf("toc_send_im %s \"%s\"%s", normalize(name), buf1, 
-						   ((flags & IM_FLAG_AWAY) ? " auto" : ""));
+						   ((flags & GAIM_IM_AUTO_RESP) ? " auto" : ""));
 	g_free(buf1);
 gaim_debug(GAIM_DEBUG_ERROR, "xxx", "1 - Sending message %s\n", buf2);
 	sflap_send(gc, buf2, -1, TYPE_DATA);