Refactoring

This commit is contained in:
2016-07-24 11:44:37 +05:00
parent 0fe0289299
commit 58ed505ea6

View File

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