Example #1
0
def m_sjoin(conn, parv):
    '''Channel syncing.'''
    
    # :proteus.malkier.net SJOIN 1073516550 #shrike +tn :@sycobuny @+rakaur
    #
    # XXX: Since the regex doesn't get the information in the way we would expect,
    # we have to do this. Somebody please make a charybdis protocol regex? Thanks.
    sparv = parv[1].split(' ')
    chan = sparv[0]
    ts = sparv[1]

    channel.add(chan, ts)
Example #2
0
def m_fjoin(conn, parv):
    '''Channel syncing.'''
    
    # :001 FJOIN #spartairc 1276970839 +nt :o,001AAAAAA v,001AAAAAB
    # 
    # XXX: Since the regex doesn't get the information in the way we would expect,
    # we have to do this. Somebody please make an inspircd protocol regex? Thanks.o

    sparv = parv[1].split(' ')
    chan = parv[0]
    ts = sparv[0]
    channel.add(chan, ts)