Compare the operation correctly

This bug would have prevented "command" operations from getting processed properly.
Merge pull request #391 from Collaborne/indexer-op-compare

Compare the operation correctly