Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
process only command messages
Browse files Browse the repository at this point in the history
  • Loading branch information
r--w committed Oct 12, 2018
1 parent 21cffd9 commit 2ecedf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func run() error {
for u := range updates {
log.Debugf("Got message: %v", u)

if u.Message == nil {
if u.Message == nil || !u.Message.IsCommand() {
log.Debug("Received non-message or non-command")
continue
}
Expand Down

0 comments on commit 2ecedf0

Please sign in to comment.