Blankposting is allowed again if an area loses its CM somehow.
This commit is contained in:
		
							parent
							
								
									6d278330a2
								
							
						
					
					
						commit
						34da56eea6
					
				@ -81,6 +81,7 @@ class AreaManager:
 | 
			
		||||
        
 | 
			
		||||
        def unlock(self):
 | 
			
		||||
            self.is_locked = False
 | 
			
		||||
            self.blankposting_allowed = True
 | 
			
		||||
            self.invite_list = {}
 | 
			
		||||
            self.send_host_message('This area is open now.')
 | 
			
		||||
        
 | 
			
		||||
 | 
			
		||||
@ -643,6 +643,7 @@ def ooc_cmd_uncm(client, arg):
 | 
			
		||||
    if client.is_cm:
 | 
			
		||||
        client.is_cm = False
 | 
			
		||||
        client.area.owned = False
 | 
			
		||||
        client.area.blankposting_allowed = True
 | 
			
		||||
        if client.area.is_locked:
 | 
			
		||||
            client.area.unlock()
 | 
			
		||||
        client.area.send_host_message('{} is no longer CM in this area.'.format(client.get_char_name()))
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user