Escalate user_disconnect to an error in case of a "ghost login". I want to see them in logs.
This commit is contained in:
		
							parent
							
								
									d4c8b657bf
								
							
						
					
					
						commit
						c02c45f2d0
					
				| @ -359,7 +359,7 @@ static int check_logged_in(struct user* user, struct adc_message* cmd) | ||||
| 	{ | ||||
| 		if (lookup1 == lookup2) | ||||
| 		{ | ||||
| 			hub_log(log_debug, "check_logged_in: exact same user is logged in: %s", user->id.nick); | ||||
| 			hub_log(log_error, "check_logged_in: exact same user is logged in: %s", user->id.nick); | ||||
| 			user_disconnect(lookup1, quit_timeout); | ||||
| 			return 0; | ||||
| 		} | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user