mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Apparently the first commit (59ae429972)
did not include all files.
Furthermore the used script tended to produce funny results in certain
cases. This has been fixed and as a result thereof a few more changes
were made in this second run.
26 lines
894 B
C++
26 lines
894 B
C++
// Copyright 2009-2021 The Mumble Developers. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license
|
|
// that can be found in the LICENSE file at the root of the
|
|
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
|
|
|
|
#include "User.h"
|
|
#include "Channel.h"
|
|
|
|
User::User() {
|
|
uiSession = 0;
|
|
iId = -1;
|
|
bMute = bDeaf = false;
|
|
bSelfMute = bSelfDeaf = false;
|
|
bPrioritySpeaker = false;
|
|
bRecording = false;
|
|
bSuppress = false;
|
|
cChannel = 0;
|
|
}
|
|
|
|
bool User::lessThan(const User *first, const User *second) {
|
|
// We explicitly don't use localeAwareCompare as this would result in a different
|
|
// ordering of users on clients with different locales. This is not what one would
|
|
// expect and thus we don't take the locale into account for comparing users.
|
|
return QString::compare(first->qsName, second->qsName) < 0;
|
|
}
|