1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-11 03:45:01 -05:00

Fix double sending of chat messages

This commit is contained in:
sapier 2014-03-23 19:15:38 +01:00
parent 936c6f577a
commit 5bd9c236d5

View File

@ -2702,7 +2702,6 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
(s.fid == event.GUIEvent.Caller->getID())) (s.fid == event.GUIEvent.Caller->getID()))
{ {
s.send = true; s.send = true;
acceptInput();
if(s.is_exit){ if(s.is_exit){
if (m_allowclose) { if (m_allowclose) {
acceptInput(quit_mode_accept); acceptInput(quit_mode_accept);
@ -2712,6 +2711,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
} }
return true; return true;
}else{ }else{
acceptInput();
s.send = false; s.send = false;
return true; return true;
} }