From: sapier Date: Sun, 23 Mar 2014 18:15:38 +0000 (+0100) Subject: Fix double sending of chat messages X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=5bd9c236d563f3c5a6e268abb13f291a915cde1c;p=zefram%2Fminetest%2Fminetest_engine.git Fix double sending of chat messages --- diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index 4751978d..3f9d7f78 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -2702,7 +2702,6 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event) (s.fid == event.GUIEvent.Caller->getID())) { s.send = true; - acceptInput(); if(s.is_exit){ if (m_allowclose) { acceptInput(quit_mode_accept); @@ -2712,6 +2711,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event) } return true; }else{ + acceptInput(); s.send = false; return true; }