update
This commit is contained in:
parent
c89a08e5d4
commit
9277d273a9
1
msg.go
1
msg.go
@ -13,7 +13,6 @@ func getMsgParsingRule(m *ChatWarsMessage) (*MessageParsingRule, error) {
|
|||||||
var i int
|
var i int
|
||||||
for i = 0; i < len(msgParsingRules); i++ {
|
for i = 0; i < len(msgParsingRules); i++ {
|
||||||
if msgParsingRules[i].re.FindStringSubmatch(m.Text) != nil {
|
if msgParsingRules[i].re.FindStringSubmatch(m.Text) != nil {
|
||||||
log.Printf("getMsgParsingRule : text matching with %s.\n", msgParsingRules[i].Description)
|
|
||||||
if (msgParsingRules[i].ChatID64 == 0 || msgParsingRules[i].ChatID64 == m.ChatID64) && (msgParsingRules[i].SenderUserID64 == 0 || msgParsingRules[i].SenderUserID64 == m.TGSenderUserID64) {
|
if (msgParsingRules[i].ChatID64 == 0 || msgParsingRules[i].ChatID64 == m.ChatID64) && (msgParsingRules[i].SenderUserID64 == 0 || msgParsingRules[i].SenderUserID64 == m.TGSenderUserID64) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user