예제 #1
0
def handle_ping(data, match, client, channels):
    """
    Ping! Send pong back.

    '^PING.*'

    :type data: str
    :type match: dict
    :type client: Client
    :type channels: list
    """
    # logger.debug("Got ping from {nick}", nick=client.nick)
    return [Protocol.pong()]
예제 #2
0
파일: hooks.py 프로젝트: yukaritan/kawaiirc
def handle_ping(data, match, client, channels):
    """
    Ping! Send pong back.

    '^PING.*'

    :type data: str
    :type match: dict
    :type client: Client
    :type channels: list
    """
    # logger.debug("Got ping from {nick}", nick=client.nick)
    return [Protocol.pong()]