From 58ed505ea61c3ce0df14c386fdb69bd7056a025e Mon Sep 17 00:00:00 2001 From: "Denis V. Dedkov" Date: Sun, 24 Jul 2016 11:44:37 +0500 Subject: [PATCH] Refactoring --- noolite-cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noolite-cli.go b/noolite-cli.go index db98741..ad9ff41 100644 --- a/noolite-cli.go +++ b/noolite-cli.go @@ -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")