Dont clear the timer, instead set the TIMEOUT_IDLE when logging in (for now at least)
This commit is contained in:
		
							parent
							
								
									9f784e808e
								
							
						
					
					
						commit
						faaa3d14e4
					
				@ -69,7 +69,7 @@ void on_login_success(struct hub_info* hub, struct hub_user* u)
 | 
				
			|||||||
		hub_send_motd(hub, u);
 | 
							hub_send_motd(hub, u);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* reset timeout */
 | 
						/* reset timeout */
 | 
				
			||||||
	net_con_clear_timeout(&u->net.connection);
 | 
						net_con_set_timeout(&u->net.connection, TIMEOUT_IDLE);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void on_login_failure(struct hub_info* hub, struct hub_user* u, enum status_message msg)
 | 
					void on_login_failure(struct hub_info* hub, struct hub_user* u, enum status_message msg)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user