Skip to content
Permalink
Browse files

Merge branch 'master' of github.com:Depado/go-b0tsec

  • Loading branch information...
Depado committed Feb 7, 2016
2 parents b74ed76 + 142eb66 commit e2c112aa2e15fbe639e6981fbbfe60f3227dd732
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/usercommand/middleware.go
@@ -31,7 +31,7 @@ func (m *Middleware) Get(ib *irc.Connection, from string, to string, message str
return
}
cnf := configuration.Config
if !strings.HasPrefix(message, cnf.UserCommandCharacter) || len(message) == 1 {
if len(message) == 1 || !strings.HasPrefix(message, cnf.UserCommandCharacter) {
return
}

0 comments on commit e2c112a

Please sign in to comment.
You can’t perform that action at this time.