Browse Source

Refactoring

Denis V. Dedkov 9 years ago
parent
commit
58ed505ea6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      noolite-cli.go

+ 1 - 1
noolite-cli.go

@@ -28,7 +28,7 @@ func sendCommand(n *noolite.NooliteAdapter, command string, channel, value, r, g
 			return errors.New("Need some value")
 			return errors.New("Need some value")
 		}
 		}
 	} else {
 	} else {
-		cmd, ok := n.StringCommand(command)
+		cmd, ok := n.FindCommand(command)
 
 
 		if !ok {
 		if !ok {
 			return errors.New("Command not found")
 			return errors.New("Command not found")