Browse Source

Fix respect matching

dave/xdcc
dave 5 years ago
parent
commit
23a9afbafb
  1. 2
      pyircbot/modules/PressF.py

2
pyircbot/modules/PressF.py

@ -16,7 +16,7 @@ class PressF(ModuleBase):
ModuleBase.__init__(self, bot, moduleName)
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):
if time() - self.last > self.config.get("delay", 5):
self.last = time()

Loading…
Cancel
Save