diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-27 17:05:59 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-27 17:05:59 +0100 |
commit | 3c51c0e7c484d2c3efa72e5373ce7fb81de8d4db (patch) | |
tree | 3adaea1fa3c98278e43d8025a233d245c95b6c1a /src/plugins/scripts/perl | |
parent | aa77b482adce234207d9954850df0f6da6d61711 (diff) | |
download | weechat-3c51c0e7c484d2c3efa72e5373ce7fb81de8d4db.zip |
Remove argument "switch_to_another" for function gui_buffer_close()
Diffstat (limited to 'src/plugins/scripts/perl')
-rw-r--r-- | src/plugins/scripts/perl/weechat-perl-api.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/scripts/perl/weechat-perl-api.c b/src/plugins/scripts/perl/weechat-perl-api.c index 5507136a1..0c01452b1 100644 --- a/src/plugins/scripts/perl/weechat-perl-api.c +++ b/src/plugins/scripts/perl/weechat-perl-api.c @@ -3223,7 +3223,7 @@ static XS (XS_weechat_api_buffer_close) PERL_RETURN_ERROR; } - if (items < 2) + if (items < 1) { WEECHAT_SCRIPT_MSG_WRONG_ARGUMENTS("buffer_close"); PERL_RETURN_ERROR; @@ -3231,8 +3231,7 @@ static XS (XS_weechat_api_buffer_close) script_api_buffer_close (weechat_perl_plugin, perl_current_script, - script_str2ptr (SvPV (ST (0), PL_na)), /* buffer */ - SvIV (ST (1))); /* switch_to_another */ + script_str2ptr (SvPV (ST (0), PL_na))); /* buffer */ PERL_RETURN_OK; } |