1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 02:33:12 +02:00

errors while loading perl scripts are now displayed in server buffer (instead of current buffer)

This commit is contained in:
Emmanuel Bouthenot
2005-06-16 17:02:37 +00:00
parent f72e5952f2
commit d00c99f292
4 changed files with 10 additions and 8 deletions
+2 -1
View File
@@ -5,7 +5,8 @@ ChangeLog - 2005-06-16
Version 0.1.3 (under dev!):
* in python scripts, all messages written in stdin and stderr are redirect in server window
* errors while loading perl scripts are now displayed in server buffer (instead of current buffer)
* in python scripts, all messages written in stdin and stderr are redirect in server buffer
* fix a filename error while loading a python script manually
* fixed plugins "print" and "prnt" functions: now ok for writing on server
buffers
+3 -3
View File
@@ -832,19 +832,19 @@ wee_perl_init ()
" my $content = wee_perl_load_file ($filename);"
" if ($content eq \"__WEECHAT_ERROR__\")"
" {"
" weechat::print \"WeeChat Error: Perl script '$filename' not found.\\n\";"
" weechat::print \"WeeChat Error: Perl script '$filename' not found.\\n\", \"\";"
" return 1;"
" }"
" eval $content;"
" if ($@)"
" {"
" weechat::print \"WeeChat error: unable to load Perl script '$filename':\\n\";"
" weechat::print \"WeeChat error: unable to load Perl script '$filename':\\n\", \"\";"
" weechat::print \"$@\\n\";"
" return 2;"
" }"
" return 0;"
"}"
"$SIG{__WARN__} = sub { weechat::print \"$_[0]\n\"; };"
"$SIG{__WARN__} = sub { weechat::print \"$_[0]\n\", \"\"; };"
};
wee_log_printf (_("Loading %s module \"weechat\"\n"), "Perl");
+2 -1
View File
@@ -5,7 +5,8 @@ ChangeLog - 2005-06-16
Version 0.1.3 (under dev!):
* in python scripts, all messages written in stdin and stderr are redirect in server window
* errors while loading perl scripts are now displayed in server buffer (instead of current buffer)
* in python scripts, all messages written in stdin and stderr are redirect in server buffer
* fix a filename error while loading a python script manually
* fixed plugins "print" and "prnt" functions: now ok for writing on server
buffers
+3 -3
View File
@@ -832,19 +832,19 @@ wee_perl_init ()
" my $content = wee_perl_load_file ($filename);"
" if ($content eq \"__WEECHAT_ERROR__\")"
" {"
" weechat::print \"WeeChat Error: Perl script '$filename' not found.\\n\";"
" weechat::print \"WeeChat Error: Perl script '$filename' not found.\\n\", \"\";"
" return 1;"
" }"
" eval $content;"
" if ($@)"
" {"
" weechat::print \"WeeChat error: unable to load Perl script '$filename':\\n\";"
" weechat::print \"WeeChat error: unable to load Perl script '$filename':\\n\", \"\";"
" weechat::print \"$@\\n\";"
" return 2;"
" }"
" return 0;"
"}"
"$SIG{__WARN__} = sub { weechat::print \"$_[0]\n\"; };"
"$SIG{__WARN__} = sub { weechat::print \"$_[0]\n\", \"\"; };"
};
wee_log_printf (_("Loading %s module \"weechat\"\n"), "Perl");