This commit is contained in:
evilsocket 2018-01-24 11:37:13 +01:00
commit 3c8280c08e
2 changed files with 1 additions and 5 deletions

View file

@ -50,7 +50,7 @@ func ParseCommands(buffer string) []string {
cmds := make([]string, 0)
for _, cmd := range strings.Split(buffer, ";") {
cmd = strings.Trim(cmd, "\r\n\t ")
if cmd != "" {
if cmd != "" || (len(cmd) > 0 && cmd[0] != '#') {
cmds = append(cmds, cmd)
}
}