Refactoring
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user