mirror of https://github.com/velour/catbase.git
Removing unused variable
This commit is contained in:
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):]
|
||||||
|
|
Loading…
Reference in New Issue