fix unload error on funcs with @rate

This commit is contained in:
iou1name 2020-01-29 14:06:58 -05:00
parent 2397ded4b5
commit 69ee8f69f8

2
bot.py
View File

@ -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: