--- a/QTfrontend/ui/widget/chatwidget.cpp Wed May 01 16:37:47 2019 +0300
+++ b/QTfrontend/ui/widget/chatwidget.cpp Wed May 01 21:59:41 2019 +0300
@@ -521,10 +521,18 @@
if (!isIgnored)
printChatString(nick, QString("*** ") + tr("%1 has joined").arg(linkedNick(nick)), "Join", false);
- if (notifyNick && notify && (m_helloSounds.size() > 0))
+ if (notifyNick && notify)
{
- SDLInteraction::instance().playSoundFile(
+ if (m_helloSounds.size() > 0)
+ {
+ SDLInteraction::instance().playSoundFile(
m_helloSounds.at(rand() % m_helloSounds.size()));
+ }
+
+ if (!isInGame())
+ {
+ HWApplication::alert(this, 2000);
+ }
}
}