From 57477f9da98d2bb9cc52c997932ef07d59cf8917 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 27 Mar 2007 11:06:50 +0000 Subject: [PATCH] Fixed command parsing: now "/*" is not considered any more as a command (task #6684) --- src/common/command.c | 3 +++ weechat/src/common/command.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/common/command.c b/src/common/command.c index 372993d9f..9729f73df 100644 --- a/src/common/command.c +++ b/src/common/command.c @@ -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, ' '); diff --git a/weechat/src/common/command.c b/weechat/src/common/command.c index 372993d9f..9729f73df 100644 --- a/weechat/src/common/command.c +++ b/weechat/src/common/command.c @@ -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, ' ');