From 13fa9dd079eb3b5bfc05681417678a0bf2aaa461 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Tue, 7 May 2013 20:58:20 -0400 Subject: [PATCH] Removing unused variable --- bot/handlers.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/bot/handlers.go b/bot/handlers.go index 358c9e0..8a78faf 100644 --- a/bot/handlers.go +++ b/bot/handlers.go @@ -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):]