Skip to content
Permalink
Browse files

Better log message when a user disconnects from the same channel as t…

…he client.
  • Loading branch information...
bontibon authored and mkrautz committed Feb 20, 2015
1 parent 9ba92b5 commit f5affcd43bb6fe8dcd42bd046b8302e0a78ba624
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/mumble/Messages.cpp
@@ -566,9 +566,11 @@ void MainWindow::msgUserRemove(const MumbleProto::UserRemove &msg) {
else
g.l->log((pSrc == pSelf) ? Log::YouKicked : Log::UserKicked, tr("%3 was kicked from the server by %1: %2.").arg(Log::formatClientUser(pSrc, Log::Source)).arg(reason).arg(Log::formatClientUser(pDst, Log::Target)));
} else {
if(pDst->cChannel == pSelf->cChannel)
g.l->log(Log::ChannelLeave, tr("%1 left channel.").arg(Log::formatClientUser(pDst, Log::Source)));
g.l->log(Log::UserLeave, tr("%1 disconnected.").arg(Log::formatClientUser(pDst, Log::Source)));
if (pDst->cChannel == pSelf->cChannel) {
g.l->log(Log::ChannelLeave, tr("%1 left channel and disconnected.").arg(Log::formatClientUser(pDst, Log::Source)));
} else {
g.l->log(Log::UserLeave, tr("%1 disconnected.").arg(Log::formatClientUser(pDst, Log::Source)));
}
}
if (pDst != pSelf)
pmModel->removeUser(pDst);

0 comments on commit f5affcd

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