fix AFK message being sent repeatedly
This commit is contained in:
		
							parent
							
								
									f0412e0e05
								
							
						
					
					
						commit
						42ca1d2779
					
				| @ -324,8 +324,9 @@ Server* AOClient::getServer() { return server; } | |||||||
| 
 | 
 | ||||||
| void AOClient::onAfkTimeout() | void AOClient::onAfkTimeout() | ||||||
| { | { | ||||||
|  |     if (!is_afk) | ||||||
|  |         sendServerMessage("You are now AFK."); | ||||||
|     is_afk = true; |     is_afk = true; | ||||||
|     sendServerMessage("You are now AFK."); |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| AOClient::~AOClient() { | AOClient::~AOClient() { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 in1tiate
						in1tiate