#NEWLINE# def nick( value , message = 'Invalid nick' ) : #NEWLINE# #INDENT# ' expects to get a nick in one of the following forms:\n\n  popular\n  #popular\n  popular@example.com\n  #popular@example.com\n  ' #NEWLINE# value = encoding . smart_unicode ( value ) #NEWLINE# try : #NEWLINE# #INDENT# return user ( value , message = message ) #NEWLINE# #UNINDENT# except exception . ValidationError : #NEWLINE# #INDENT# return channel ( value , message = message )