fix unload error on funcs with @rate
This commit is contained in:
parent
2397ded4b5
commit
69ee8f69f8
2
bot.py
2
bot.py
|
@ -173,7 +173,7 @@ class Fulvia(irc.IRCClient):
|
||||||
self._hooks.remove(func)
|
self._hooks.remove(func)
|
||||||
|
|
||||||
if func.rate or func.channel_rate or func.global_rate:
|
if func.rate or func.channel_rate or func.global_rate:
|
||||||
self._times.pop(func)
|
self._times.pop(func.__name__)
|
||||||
|
|
||||||
if hasattr(func, 'url_callback'):
|
if hasattr(func, 'url_callback'):
|
||||||
for url in func.url_callback:
|
for url in func.url_callback:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user