

def find_member(self, nickname):
    matches = tuple(filter((lambda x: (x.client.nickname == nickname)), self.members))
    return ((len(matches) > 0) and matches[0])

dataset/ETHPy150Open mammon-ircd/mammon/mammon/channel.py Channel.find_member/original