QTfrontend/chatwidget.cpp
changeset 2777 95a1a69d491c
parent 2776 9572aae13d49
child 2779 e1ae0019d43f
--- a/QTfrontend/chatwidget.cpp	Tue Feb 09 03:21:09 2010 +0000
+++ b/QTfrontend/chatwidget.cpp	Tue Feb 09 13:04:11 2010 +0000
@@ -126,13 +126,13 @@
 	chatText->moveCursor(QTextCursor::End);
 }
 
-void HWChatWidget::nickAdded(const QString& nick, bool isChief)
+void HWChatWidget::nickAdded(const QString& nick, bool notifyNick)
 {
 	QListWidgetItem * item = new QListWidgetItem(nick);
 	item->setIcon(QIcon(":/res/hh_small.png"));
 	chatNicks->addItem(item);
 
-    if(isChief && notify && gameSettings->value("audio/frontendsound", true).toBool()) {
+    if(notifyNick && notify && gameSettings->value("audio/frontendsound", true).toBool()) {
        Mix_PlayChannel(-1, sound, 0);
     }
 }