test
This commit is contained in:
parent
7c512a5a2f
commit
73f4ba51b2
6
rules.go
6
rules.go
@ -336,6 +336,7 @@ func loadMsgParsingRules() (m map[int]MessageParsingRule, err error) {
|
|||||||
log.Println("Loading message parsing rules...")
|
log.Println("Loading message parsing rules...")
|
||||||
m = make(map[int]MessageParsingRule)
|
m = make(map[int]MessageParsingRule)
|
||||||
count := int(0)
|
count := int(0)
|
||||||
|
countCommand := int(0)
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
if rec := recover(); rec != nil {
|
if rec := recover(); rec != nil {
|
||||||
@ -368,7 +369,12 @@ func loadMsgParsingRules() (m map[int]MessageParsingRule, err error) {
|
|||||||
m[count] = *i
|
m[count] = *i
|
||||||
// log.Printf("New rule : %s\n", rule)
|
// log.Printf("New rule : %s\n", rule)
|
||||||
count++
|
count++
|
||||||
|
if botCommand {
|
||||||
|
countCommand++
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
log.Printf("Loaded %d rules (%d commands)\n", count, countCommand)
|
||||||
|
|
||||||
return m, nil
|
return m, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user