changeset 18694:c72d2458b22e

Switched formatting of the ad-hoc commands to be less intimidating
author Andreas Monitzer <pidgin@monitzer.com>
date Mon, 16 Jul 2007 03:44:09 +0000
parents f02902d2f00b
children 91eece1ad9bc
files libpurple/protocols/jabber/adhoccommands.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/adhoccommands.c	Fri Jul 13 15:37:22 2007 +0000
+++ b/libpurple/protocols/jabber/adhoccommands.c	Mon Jul 16 03:44:09 2007 +0000
@@ -273,7 +273,7 @@
 			GList *riter;
 			for(riter = jbr->commands; riter; riter = g_list_next(riter)) {
 				JabberAdHocCommands *cmd = riter->data;
-				char *cmdname = g_strdup_printf("[%s] %s",jbr->name,cmd->name);
+				char *cmdname = g_strdup_printf("%s (%s)",cmd->name,jbr->name);
 				PurplePluginAction *act = purple_plugin_action_new(cmdname, jabber_adhoc_server_execute);
 				act->user_data = cmd;
 				*m = g_list_append(*m, act);
@@ -286,10 +286,8 @@
 	/* now add server commands */
 	for(cmdlst = js->commands; cmdlst; cmdlst = g_list_next(cmdlst)) {
 		JabberAdHocCommands *cmd = cmdlst->data;
-		char *cmdname = g_strdup_printf("[%s] %s",js->user->domain,cmd->name);
-		PurplePluginAction *act = purple_plugin_action_new(cmdname, jabber_adhoc_server_execute);
+		PurplePluginAction *act = purple_plugin_action_new(cmd->name, jabber_adhoc_server_execute);
 		act->user_data = cmd;
 		*m = g_list_append(*m, act);
-		g_free(cmdname);
 	}
 }