summaryrefslogtreecommitdiff
path: root/src/plugins/rmodifier/rmodifier-debug.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-09-17 16:12:41 +0200
committerSebastien Helleu <flashcode@flashtux.org>2010-09-17 16:12:41 +0200
commit8b26f3c953f248cc2d66b2bf1a296f76e48c4c6d (patch)
treed668aea1e33305f24b49ccf989ad66dbf28c3746 /src/plugins/rmodifier/rmodifier-debug.c
parentefcc5010b690c8723fc012df3199188653764744 (diff)
downloadweechat-8b26f3c953f248cc2d66b2bf1a296f76e48c4c6d.zip
Add optional plugin name for command /debug dump and signal "debug_dump"
Diffstat (limited to 'src/plugins/rmodifier/rmodifier-debug.c')
-rw-r--r--src/plugins/rmodifier/rmodifier-debug.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/plugins/rmodifier/rmodifier-debug.c b/src/plugins/rmodifier/rmodifier-debug.c
index 3820edaa6..66309d523 100644
--- a/src/plugins/rmodifier/rmodifier-debug.c
+++ b/src/plugins/rmodifier/rmodifier-debug.c
@@ -41,17 +41,20 @@ rmodifier_debug_signal_debug_dump_cb (void *data, const char *signal,
(void) data;
(void) signal;
(void) type_data;
- (void) signal_data;
- weechat_log_printf ("");
- weechat_log_printf ("***** \"%s\" plugin dump *****",
- weechat_plugin->name);
-
- rmodifier_print_log ();
-
- weechat_log_printf ("");
- weechat_log_printf ("***** End of \"%s\" plugin dump *****",
- weechat_plugin->name);
+ if (!signal_data
+ || (weechat_strcasecmp ((char *)signal_data, RMODIFIER_PLUGIN_NAME) == 0))
+ {
+ weechat_log_printf ("");
+ weechat_log_printf ("***** \"%s\" plugin dump *****",
+ weechat_plugin->name);
+
+ rmodifier_print_log ();
+
+ weechat_log_printf ("");
+ weechat_log_printf ("***** End of \"%s\" plugin dump *****",
+ weechat_plugin->name);
+ }
return WEECHAT_RC_OK;
}