#NEWLINE# def nick( self , sock , source , nick ) : #NEWLINE# #INDENT# user = self . users [ sock ] #NEWLINE# if ( nick in self . nicks ) : #NEWLINE# #INDENT# return self . fire ( reply ( sock , ERR_NICKNAMEINUSE ( nick ) ) ) #NEWLINE# #UNINDENT# if ( not user . registered ) : #NEWLINE# #INDENT# user . registered = True #NEWLINE# self . fire ( response . create ( 'signon' , sock , user ) ) #NEWLINE# #UNINDENT# user . nick = nick #NEWLINE# self . nicks [ nick ] = user