--- a/ChangeLog Sat Aug 25 03:52:25 2007 -0400
+++ b/ChangeLog Sun Aug 26 17:01:50 2007 -0400
@@ -1,6 +1,7 @@
* Merged autorejoin into irc-more. No prefs migration will take place.
You will need to reconfigure the delay yourself.
+ * Slashexec's '/exec command' and '!command' are now optional (QuLogic) * Fixed lack of .build, .pidgin-plugin, and Makefile.mingw for convbadger
--- a/slashexec/slashexec.c Sat Aug 25 03:52:25 2007 -0400
+++ b/slashexec/slashexec.c Sun Aug 26 17:01:50 2007 -0400
@@ -44,7 +44,7 @@
-/* Windows 2000 and earlier only allow 2047 bytes in an argv vector for cmd.exe
+/* Windows 2000 and earlier allow only 2047 bytes in an argv vector for cmd.exe * so we need to make sure we don't exceed that. 2036 allows "cmd.exe /c " to
* fit inside the vector. */
# define MAX_CMD_LEN 2036
@@ -56,6 +56,10 @@
# define MAX_CMD_LEN 8000
+#define PREF_PREFIX "/plugins/core/slashexec" +#define PREF_SLASH PREF_PREFIX "/slash" +#define PREF_BANG PREF_PREFIX "/bang" static PurpleCmdId se_cmd;
@@ -278,6 +282,9 @@
+ if(!purple_prefs_get_bool(PREF_SLASH)) + return PURPLE_CMD_RET_CONTINUE; if(string && !strncmp(string, "-o ", 3)) {
@@ -295,7 +302,7 @@
char *string = *message, *strip;
- if(conv == NULL) return;
+ if(conv == NULL || !purple_prefs_get_bool(PREF_BANG)) return; strip = purple_markup_strip_html(string);
@@ -407,6 +414,40 @@
+static PurplePluginPrefFrame * +get_plugin_pref_frame(PurplePlugin *plugin) + PurplePluginPrefFrame *frame; + PurplePluginPref *pref; + frame = purple_plugin_pref_frame_new(); + pref = purple_plugin_pref_new_with_label(_("Execute commands starting with: ")); + purple_plugin_pref_frame_add(frame, pref); + pref = purple_plugin_pref_new_with_name_and_label(PREF_SLASH, + _("/exec Command (/exec some_command)")); + purple_plugin_pref_frame_add(frame, pref); + pref = purple_plugin_pref_new_with_name_and_label(PREF_BANG, + _("Exclamation point (!some_command)")); + purple_plugin_pref_frame_add(frame, pref); +static PurplePluginUiInfo prefs_info = { static PurplePluginInfo se_info = {
@@ -433,11 +474,11 @@
+ &prefs_info, /* prefs info */
@@ -453,6 +494,9 @@
" clients have. Also included is the ability to"
" execute commands with an exclamation point"
" (!uptime, for instance).\n");
+ purple_prefs_add_none(PREF_PREFIX); + purple_prefs_add_bool(PREF_SLASH, TRUE); + purple_prefs_add_bool(PREF_BANG, FALSE); PURPLE_INIT_PLUGIN(slashexec, init_plugin, se_info)