diff options
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r-- | src/core/wee-command.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 3f4f631f2..cc96fd9b5 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -706,7 +706,7 @@ COMMAND_CALLBACK(buffer) argv[arg_name]); return WEECHAT_RC_OK; } - ptr_buffer = gui_buffer_search_by_name (PLUGIN_CORE, argv[arg_name]); + ptr_buffer = gui_buffer_search (PLUGIN_CORE, argv[arg_name]); if (!ptr_buffer) { ptr_buffer = gui_buffer_new_user ( @@ -5351,8 +5351,7 @@ COMMAND_CALLBACK(print) argv[arg_new_buffer_name]); return WEECHAT_RC_OK; } - ptr_buffer = gui_buffer_search_by_name (PLUGIN_CORE, - argv[arg_new_buffer_name]); + ptr_buffer = gui_buffer_search (PLUGIN_CORE, argv[arg_new_buffer_name]); if (!ptr_buffer) { ptr_buffer = gui_buffer_new_user ( |