Navigation Menu

Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Depado/go-b0tsec
Browse files Browse the repository at this point in the history
  • Loading branch information
Depado committed Feb 7, 2016
2 parents b74ed76 + 142eb66 commit e2c112a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/usercommand/middleware.go
Expand Up @@ -31,7 +31,7 @@ func (m *Middleware) Get(ib *irc.Connection, from string, to string, message str
return return
} }
cnf := configuration.Config cnf := configuration.Config
if !strings.HasPrefix(message, cnf.UserCommandCharacter) || len(message) == 1 { if len(message) == 1 || !strings.HasPrefix(message, cnf.UserCommandCharacter) {
return return
} }


Expand Down

0 comments on commit e2c112a

Please sign in to comment.