mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 04:16:38 +02:00
Fixed command parsing: now "/*" is not considered any more as a command (task #6684)
This commit is contained in:
@@ -792,6 +792,9 @@ int
|
||||
is_command (char *line)
|
||||
{
|
||||
char *pos_slash, *pos_space;
|
||||
|
||||
if (strncmp (line, "/*", 2) == 0)
|
||||
return 0;
|
||||
|
||||
pos_slash = strchr (line + 1, '/');
|
||||
pos_space = strchr (line + 1, ' ');
|
||||
|
||||
@@ -792,6 +792,9 @@ int
|
||||
is_command (char *line)
|
||||
{
|
||||
char *pos_slash, *pos_space;
|
||||
|
||||
if (strncmp (line, "/*", 2) == 0)
|
||||
return 0;
|
||||
|
||||
pos_slash = strchr (line + 1, '/');
|
||||
pos_space = strchr (line + 1, ' ');
|
||||
|
||||
Reference in New Issue
Block a user