

def add_handler(self, to_call, *commands):
    if (not commands):
        if hasattr(self, 'commands'):
            commands = to_call.commands
        else:
            self._global_handlers.add(to_call)
            return
    for command in commands:
        command = str(command).upper()
        if self._handlers.has_key(command):
            self._handlers[command].add(to_call)
            continue
        self._handlers[command] = set([to_call])

dataset/ETHPy150Open gwik/geventirc/lib/geventirc/irc.py Client.add_handler/VarMisuse@26/31 `to_call`->`self`