mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 04:32:36 +01:00
Added an iteritems to ChannelsDictionary and made it into an IterableMap.
This commit is contained in:
parent
0f3dcf0c01
commit
890d2a5f4e
@ -519,7 +519,7 @@ class UsersDB(object):
|
||||
|
||||
|
||||
|
||||
class ChannelsDictionary(object):
|
||||
class ChannelsDictionary(utils.IterableMap):
|
||||
def __init__(self, filename):
|
||||
self.filename = filename
|
||||
Set = sets.Set
|
||||
@ -549,6 +549,9 @@ class ChannelsDictionary(object):
|
||||
"""Reloads the channel database from its file."""
|
||||
self.__init__(self.filename)
|
||||
|
||||
def iteritems(self):
|
||||
return self.dict.iteritems()
|
||||
|
||||
|
||||
###
|
||||
# Later, I might add some special handling for botnet.
|
||||
|
Loading…
Reference in New Issue
Block a user