#NEWLINE# def nick( nick , prefix = '' , msg = None ) : #NEWLINE# #INDENT# 'Returns a NICK with nick nick.' #NEWLINE# if conf . supybot . protocols . irc . strictRfc ( ) : #NEWLINE# #INDENT# assert isNick ( nick ) , repr ( nick ) #NEWLINE# #UNINDENT# if ( msg and ( not prefix ) ) : #NEWLINE# #INDENT# prefix = msg . prefix #NEWLINE# #UNINDENT# return IrcMsg ( prefix = prefix , command = 'NICK' , args = ( nick , ) , msg = msg )