Prevent entering commands in <debug> if restricted
Because the <debug> ID always exists, it's possible to create a window for it even while restricted with "/window <debug>" and try to enter commands there.
This commit is contained in:
		
							parent
							
								
									8570a62235
								
							
						
					
					
						commit
						5c167e4181
					
				| @ -392,7 +392,7 @@ const char *commandIsAction(uint id, const char *input) { | ||||
| } | ||||
| 
 | ||||
| void command(uint id, char *input) { | ||||
| 	if (id == Debug && input[0] != '/') { | ||||
| 	if (id == Debug && input[0] != '/' && !self.restricted) { | ||||
| 		commandQuote(id, input); | ||||
| 		return; | ||||
| 	} else if (commandIsPrivmsg(id, input)) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user