Skip to content

Commit 3257837

Browse files
committed
Fix return path in init_chan_data and fix weakref import mess
1 parent c38e284 commit 3257837

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

plugins/chan_track.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from contextlib import suppress
1212
from numbers import Number
1313
from operator import attrgetter
14-
from weakref import WeakValueDictionary
1514

1615
import cloudbot.bot
1716
from cloudbot import hook
@@ -88,7 +87,7 @@ class KeyFoldDict(KeyFoldMixin, dict):
8887
pass
8988

9089

91-
class KeyFoldWeakValueDict(KeyFoldMixin, WeakValueDictionary):
90+
class KeyFoldWeakValueDict(KeyFoldMixin, weakref.WeakValueDictionary):
9291
"""
9392
KeyFolded WeakValueDictionary
9493
"""
@@ -461,6 +460,8 @@ def init_chan_data(conn, _clear=True):
461460
chan_data.clear()
462461
users.clear()
463462

463+
return None
464+
464465

465466
def parse_names_item(item, statuses, has_multi_prefix, has_userhost):
466467
"""

0 commit comments

Comments
 (0)