#NEWLINE# def run( self ) : #NEWLINE# #INDENT# split = re . split ( '\\W+' , self . getCommandString ( ) ) #NEWLINE# friend_name = split [ 0 ] #NEWLINE# actor = self . getActor ( ) #NEWLINE# player = actor . getPlayer ( ) #NEWLINE# if player : #NEWLINE# #INDENT# if player . isFriend ( friend_name ) : #NEWLINE# #INDENT# player . removeFriend ( friend_name ) #NEWLINE# SendSystemMessage . sendSystemMessage ( actor , swgpy . OutOfBand ( 'cmnty' , 'friend_removed' , swgpy . ProseType . TT , friend_name ) , False , False ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# SendSystemMessage . sendSystemMessage ( actor , swgpy . OutOfBand ( 'cmnty' , 'friend_not_found' , swgpy . ProseType . TT , actor ) , False , False )