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")
|
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")
|
||||||
|
|||||||
Reference in New Issue
Block a user