summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2007-03-27 11:06:50 +0000
committerSebastien Helleu <flashcode@flashtux.org>2007-03-27 11:06:50 +0000
commit57477f9da98d2bb9cc52c997932ef07d59cf8917 (patch)
treeff823d3e1feef0aefaa83d72a234b13bc5638624 /src
parent64bcd25692d750e12c0e9a766bed51e10b7f431b (diff)
downloadweechat-57477f9da98d2bb9cc52c997932ef07d59cf8917.zip
Fixed command parsing: now "/*" is not considered any more as a command (task #6684)
Diffstat (limited to 'src')
-rw-r--r--src/common/command.c3
1 files changed, 3 insertions, 0 deletions
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, ' ');