mirror of https://github.com/velour/catbase.git
parent
00d0d8e069
commit
00df26d004
|
@ -54,7 +54,7 @@ func (p *AdminPlugin) handleVariables(message bot.Message) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
variable := strings.TrimSpace(parts[0])
|
variable := strings.TrimSpace(parts[0])
|
||||||
value := strings.TrimSpace(parts[1])
|
value := parts[1]
|
||||||
|
|
||||||
q := p.varC.Find(bson.M{"variable": variable, "value": value})
|
q := p.varC.Find(bson.M{"variable": variable, "value": value})
|
||||||
if n, _ := q.Count(); n != 0 {
|
if n, _ := q.Count(); n != 0 {
|
||||||
|
|
Loading…
Reference in New Issue