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

Add new option weechat.look.command_chars, add functions string_is_command_char and string_input_for_buffer in plugin and script API

This commit is contained in:
Sebastien Helleu
2010-03-02 17:34:49 +01:00
parent 282f786c1a
commit 0543b0ccc7
35 changed files with 935 additions and 235 deletions
+2 -2
View File
@@ -932,7 +932,7 @@ command_command (void *data, struct t_gui_buffer *buffer,
return WEECHAT_RC_ERROR;
}
}
if (argv_eol[2][0] == '/')
if (string_is_command_char (argv_eol[2]))
{
input_exec_command (buffer, 0, ptr_plugin, argv_eol[2]);
}
@@ -2291,7 +2291,7 @@ command_mute (void *data, struct t_gui_buffer *buffer,
gui_chat_mute = mute_mode;
gui_chat_mute_buffer = mute_buffer;
if (ptr_command[0] == '/')
if (string_is_command_char (ptr_command))
{
input_exec_command (buffer, 1, NULL, ptr_command);
}