Ejemplo n.º 1
0
def m_pong(conn, parv):
    '''Reply to PONG's.'''

    if not parv[0]:
        return

    if parv[0] not in var.servers:
        return

    logger.info('bursting to %s (%d user%s)' % (parv[0], var.servers[parv[0]]['users'], 's' if var.servers[parv[0]]['users'] != 1 else ''))

    if conn.server['actual'] == parv[0]:
        return
Ejemplo n.º 2
0
def m_pong(conn, parv):
    '''Reply to PONG's.'''
    # unsure about relevance to inspircd from charybdis.
    if not parv[0]:
        return

    if parv[0] not in var.servers:
        return

    logger.info('bursting to %s (%d user%s)' % (parv[0], var.servers[parv[0]]['users'], 's' if var.servers[parv[0]]['users'] != 1 else ''))

    if conn.server['actual'] == parv[0]:
        return
Ejemplo n.º 3
0
def m_squit(conn, parv):
    '''Handle server leavings.'''

    logger.info('server %s leaving from %s' % (parv[0], parv[1]))
    server.delete(parv[0])