summaryrefslogtreecommitdiff
path: root/src/gui/widgets/chattab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/chattab.cpp')
-rw-r--r--src/gui/widgets/chattab.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp
index be6a31164..5f1b02d98 100644
--- a/src/gui/widgets/chattab.cpp
+++ b/src/gui/widgets/chattab.cpp
@@ -311,9 +311,17 @@ void ChatTab::chatLog(std::string line, Own own,
&& !Client::getInputFocused()))))
{
if (own == BY_GM)
+ {
+ if (chatWindow)
+ chatWindow->unHideWindow();
sound.playGuiSound(SOUND_GLOBAL);
+ }
else if (own != BY_SERVER)
+ {
+ if (chatWindow)
+ chatWindow->unHideWindow();
playNewMessageSound();
+ }
}
}
}