Removing unused variable

This commit is contained in:
Chris Sexton 2013-05-07 20:58:20 -04:00
parent 75e2c53bd1
commit 13fa9dd079
1 changed files with 0 additions and 2 deletions

View File

@ -85,8 +85,6 @@ func (b *Bot) isCmd(message string) (bool, string) {
iscmd := false
lowerMessage := strings.ToLower(message)
rex := fmt.Sprintf(`^%s\S\s.+`, botnick)
if strings.HasPrefix(lowerMessage, cmdc) && len(cmdc) > 0 {
iscmd = true
message = message[len(cmdc):]