Fix respect matching
This commit is contained in:
parent
2f4ab6cd60
commit
23a9afbafb
|
@ -16,7 +16,7 @@ class PressF(ModuleBase):
|
||||||
ModuleBase.__init__(self, bot, moduleName)
|
ModuleBase.__init__(self, bot, moduleName)
|
||||||
self.last = 0
|
self.last = 0
|
||||||
|
|
||||||
@regex(r'F', types=['PRIVMSG'], allow_private=False)
|
@regex(r'\bF\b', types=['PRIVMSG'], allow_private=False)
|
||||||
def respect(self, msg, cmd):
|
def respect(self, msg, cmd):
|
||||||
if time() - self.last > self.config.get("delay", 5):
|
if time() - self.last > self.config.get("delay", 5):
|
||||||
self.last = time()
|
self.last = time()
|
||||||
|
|
Loading…
Reference in New Issue