Exemplo n.º 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()]
Exemplo n.º 2
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()]