Remove old users iteration and rename new one
Nothing used neither the old or new versions, but keeping the new one in anyway
This commit is contained in:
parent
371f8488df
commit
2bf715637c
@ -145,17 +145,10 @@ def _exists(nick=None, ident=None, host=None, realname=None, account=None, *, al
|
||||
def exists(nick, *stuff, **morestuff): # backwards-compatible API
|
||||
return nick in var.USERS
|
||||
|
||||
def users_():
|
||||
def users():
|
||||
"""Iterate over the users in the registry."""
|
||||
yield from _users
|
||||
|
||||
class users: # backwards-compatible API
|
||||
def __iter__(self):
|
||||
yield from var.USERS
|
||||
@staticmethod
|
||||
def items():
|
||||
yield from var.USERS.items()
|
||||
|
||||
def complete_match(string, users):
|
||||
matches = []
|
||||
string = lower(string)
|
||||
|
Loading…
Reference in New Issue
Block a user