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/tcl | |
parent | aa77b482adce234207d9954850df0f6da6d61711 (diff) | |
download | weechat-3c51c0e7c484d2c3efa72e5373ce7fb81de8d4db.zip |
Remove argument "switch_to_another" for function gui_buffer_close()
Diffstat (limited to 'src/plugins/scripts/tcl')
-rw-r--r-- | src/plugins/scripts/tcl/weechat-tcl-api.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/plugins/scripts/tcl/weechat-tcl-api.c b/src/plugins/scripts/tcl/weechat-tcl-api.c index 382d0b5f5..59b9448c5 100644 --- a/src/plugins/scripts/tcl/weechat-tcl-api.c +++ b/src/plugins/scripts/tcl/weechat-tcl-api.c @@ -3650,7 +3650,7 @@ weechat_tcl_api_buffer_close (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { Tcl_Obj *objp; - int i,switch_to_another; + int i; /* make C compiler happy */ (void) clientData; @@ -3661,22 +3661,15 @@ weechat_tcl_api_buffer_close (ClientData clientData, Tcl_Interp *interp, TCL_RETURN_ERROR; } - if (objc < 3) - { - WEECHAT_SCRIPT_MSG_WRONG_ARGUMENTS("buffer_close"); - TCL_RETURN_ERROR; - } - - if (Tcl_GetIntFromObj (interp, objv[2], &switch_to_another) != TCL_OK) + if (objc < 2) { WEECHAT_SCRIPT_MSG_WRONG_ARGUMENTS("buffer_close"); TCL_RETURN_ERROR; } - + script_api_buffer_close (weechat_tcl_plugin, tcl_current_script, - script_str2ptr (Tcl_GetStringFromObj (objv[1], &i)), /* buffer */ - switch_to_another); /* switch_to_another */ + script_str2ptr (Tcl_GetStringFromObj (objv[1], &i))); /* buffer */ TCL_RETURN_OK; } |