Fix last motd number saving
This commit is contained in:
		
							parent
							
								
									0642fb66cd
								
							
						
					
					
						commit
						78bdf20603
					
				|  | @ -78,7 +78,7 @@ local function onCharacterList(protocol, characters, account, otui) | |||
|   if motdEnabled then | ||||
|     local lastMotdNumber = g_settings.getNumber("motd") | ||||
|     if G.motdNumber and G.motdNumber ~= lastMotdNumber then | ||||
|       g_settings.set("motd", motdNumber) | ||||
|       g_settings.set("motd", G.motdNumber) | ||||
|       motdWindow = displayInfoBox(tr('Message of the day'), G.motdMessage) | ||||
|       connect(motdWindow, { onOk = function() CharacterList.show() motdWindow = nil end }) | ||||
|       CharacterList.hide() | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Kamil Chojnowski
						Kamil Chojnowski