1
0
mirror of https://github.com/velour/catbase.git synced 2025-04-03 11:49:55 +00:00

Removing unused variable

This commit is contained in:
Chris Sexton 2013-05-07 20:58:20 -04:00
parent 75e2c53bd1
commit 13fa9dd079

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