#NEWLINE# def pong( payload , prefix = '' , msg = None ) : #NEWLINE# #INDENT# 'Takes a payload and returns the proper PONG IrcMsg.' #NEWLINE# if conf . supybot . protocols . irc . strictRfc ( ) : #NEWLINE# #INDENT# assert payload , 'PONG requires a payload' #NEWLINE# #UNINDENT# if ( msg and ( not prefix ) ) : #NEWLINE# #INDENT# prefix = msg . prefix #NEWLINE# #UNINDENT# return IrcMsg ( prefix = prefix , command = 'PONG' , args = ( payload , ) , msg = prefix )