diff finch/gntconv.c @ 23911:e22bcca9f2b2

propagate from branch 'im.pidgin.pidgin' (head 9db6cf3ac465ef3a7aca0eee0f47e02d3ea7b162) to branch 'im.pidgin.soc.2008.vv' (head 3a78233bf1c7dba3fc3750e55a55ec3656f02b29)
author Mike Ruprecht <maiku@soc.pidgin.im>
date Mon, 18 Aug 2008 06:31:08 +0000
parents 240d847e9e88
children c1e58cfd1107
line wrap: on
line diff
--- a/finch/gntconv.c	Mon Aug 18 06:25:38 2008 +0000
+++ b/finch/gntconv.c	Mon Aug 18 06:31:08 2008 +0000
@@ -1289,6 +1289,7 @@
 	return PURPLE_CMD_STATUS_OK;
 }
 
+#if GLIB_CHECK_VERSION(2,6,0)
 static PurpleCmdRet
 cmd_message_color(PurpleConversation *conv, const char *cmd, char **args, char **error, gpointer data)
 {
@@ -1329,6 +1330,7 @@
 
 	return PURPLE_CMD_STATUS_OK;
 }
+#endif
 
 static PurpleCmdRet
 users_command_cb(PurpleConversation *conv, const char *cmd, char **args, char **error, gpointer data)
@@ -1414,6 +1416,7 @@
 	                  PURPLE_CMD_FLAG_CHAT | PURPLE_CMD_FLAG_IM, NULL,
 	                  cmd_show_window, _("statuses: Show the savedstatuses window."), finch_savedstatus_show_all);
 
+#if GLIB_CHECK_VERSION(2,6,0)
 	/* Allow customizing the message colors using a command during run-time */
 	purple_cmd_register("msgcolor", "www", PURPLE_CMD_P_DEFAULT,
 			PURPLE_CMD_FLAG_CHAT | PURPLE_CMD_FLAG_IM, NULL,
@@ -1423,6 +1426,7 @@
 				                 "    &lt;foreground/background&gt;: black, red, green, blue, white, gray, darkgray, magenta, cyan, default<br><br>"
 								 "EXAMPLE:<br>    msgcolor send cyan default"),
 			NULL);
+#endif
 
 	purple_signal_connect(purple_conversations_get_handle(), "buddy-typing", finch_conv_get_handle(),
 					PURPLE_CALLBACK(update_buddy_typing), NULL);