diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-03-24 13:00:50 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-03-24 13:00:50 +0100 |
commit | c4cfd651fc5ff993fd52ae48794a72a09cd1ee05 (patch) | |
tree | d0dd73d599d7530d011300e3fe7b506aa34f3845 /src/plugins/scripts/tcl/weechat-tcl.c | |
parent | 93ec33d491732e7f5d8094f105d45c0145271c77 (diff) | |
download | weechat-c4cfd651fc5ff993fd52ae48794a72a09cd1ee05.zip |
api: display warning in scripts when invalid pointers (malformed strings) are given to plugin API functions (warning displayed if debug for plugin is >= 1)
Diffstat (limited to 'src/plugins/scripts/tcl/weechat-tcl.c')
-rw-r--r-- | src/plugins/scripts/tcl/weechat-tcl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/scripts/tcl/weechat-tcl.c b/src/plugins/scripts/tcl/weechat-tcl.c index 16f6e0316..429ca119a 100644 --- a/src/plugins/scripts/tcl/weechat-tcl.c +++ b/src/plugins/scripts/tcl/weechat-tcl.c @@ -290,7 +290,7 @@ weechat_tcl_load (const char *filename) return 0; } - if ((weechat_tcl_plugin->debug >= 1) || !tcl_quiet) + if ((weechat_tcl_plugin->debug >= 2) || !tcl_quiet) { weechat_printf (NULL, weechat_gettext ("%s: loading script \"%s\""), @@ -369,7 +369,7 @@ weechat_tcl_unload (struct t_plugin_script *script) Tcl_Interp* interp; int *rc; - if ((weechat_tcl_plugin->debug >= 1) || !tcl_quiet) + if ((weechat_tcl_plugin->debug >= 2) || !tcl_quiet) { weechat_printf (NULL, weechat_gettext ("%s: unloading script \"%s\""), |