Skip to content
Permalink
Browse files

Messages: use actual username (instead of the ConnectDialog username)…

… in msgPermissionDenied.
  • Loading branch information...
Natenom authored and mkrautz committed Jan 7, 2014
1 parent d9d81a9 commit b2d938ba1aefadead721233b2366c3faaf55d9bc
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/mumble/Messages.cpp
@@ -208,16 +208,13 @@ void MainWindow::msgPermissionDenied(const MumbleProto::PermissionDenied &msg) {
break;
case MumbleProto::PermissionDenied_DenyType_H9K: {
if (g.bHappyEaster) {
unsigned short p;
QString h, u, pw;
bool bold = g.s.bDeaf;
bool bold2 = g.s.bTTS;
g.sh->getConnectionInfo(h, p, u, pw);
g.s.bDeaf = false;
g.s.bTTS = true;
quint32 oflags = g.s.qmMessages.value(Log::PermissionDenied);
g.s.qmMessages[Log::PermissionDenied] = (oflags | Settings::LogTTS) & (~Settings::LogSoundfile);
g.l->log(Log::PermissionDenied, QString::fromUtf8(g.ccHappyEaster + 39).arg(u));
g.l->log(Log::PermissionDenied, QString::fromUtf8(g.ccHappyEaster + 39).arg(g.s.qsUsername));
g.s.qmMessages[Log::PermissionDenied] = oflags;
g.s.bDeaf = bold;
g.s.bTTS = bold2;

0 comments on commit b2d938b

Please sign in to comment.
You can’t perform that action at this time.