mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 22:06:38 +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:
@@ -121,7 +121,7 @@ irc_command_exec_all_channels (struct t_irc_server *server,
|
||||
if (!command || !command[0])
|
||||
return;
|
||||
|
||||
if (command[0] != '/')
|
||||
if (!weechat_string_is_command_char (command))
|
||||
{
|
||||
length = 1 + strlen (command) + 1;
|
||||
str_command = malloc (length);
|
||||
@@ -240,7 +240,7 @@ irc_command_exec_all_servers (const char *exclude_servers, const char *command)
|
||||
if (!command || !command[0])
|
||||
return;
|
||||
|
||||
if (command[0] != '/')
|
||||
if (!weechat_string_is_command_char (command))
|
||||
{
|
||||
length = 1 + strlen (command) + 1;
|
||||
str_command = malloc (length);
|
||||
|
||||
Reference in New Issue
Block a user