summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/ruby/weechat-ruby.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/scripts/ruby/weechat-ruby.c
parentefcc5010b690c8723fc012df3199188653764744 (diff)
downloadweechat-8b26f3c953f248cc2d66b2bf1a296f76e48c4c6d.zip
Add optional plugin name for command /debug dump and signal "debug_dump"
Diffstat (limited to 'src/plugins/scripts/ruby/weechat-ruby.c')
-rw-r--r--src/plugins/scripts/ruby/weechat-ruby.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/scripts/ruby/weechat-ruby.c b/src/plugins/scripts/ruby/weechat-ruby.c
index 951177a36..31dc8795d 100644
--- a/src/plugins/scripts/ruby/weechat-ruby.c
+++ b/src/plugins/scripts/ruby/weechat-ruby.c
@@ -853,9 +853,12 @@ weechat_ruby_signal_debug_dump_cb (void *data, const char *signal,
(void) data;
(void) signal;
(void) type_data;
- (void) signal_data;
- script_print_log (weechat_ruby_plugin, ruby_scripts);
+ if (!signal_data
+ || (weechat_strcasecmp ((char *)signal_data, RUBY_PLUGIN_NAME) == 0))
+ {
+ script_print_log (weechat_ruby_plugin, ruby_scripts);
+ }
return WEECHAT_RC_OK;
}