1 // Copyright 2005-2019 The Mumble Developers. All rights reserved.
2 // Use of this source code is governed by a BSD-style license
3 // that can be found in the LICENSE file at the root of the
4 // Mumble source tree or at <https://www.mumble.info/LICENSE>.
5 
6 #ifdef MUMBLE
7 	#include "mumble_pch.hpp"
8 #else
9 	#include "murmur_pch.h"
10 #endif
11 
12 #include "User.h"
13 #include "Channel.h"
14 
User()15 User::User() {
16 	uiSession = 0;
17 	iId = -1;
18 	bMute = bDeaf = false;
19 	bSelfMute = bSelfDeaf = false;
20 	bPrioritySpeaker = false;
21 	bRecording = false;
22 	bSuppress = false;
23 	cChannel = 0;
24 }
25 
lessThan(const User * first,const User * second)26 bool User::lessThan(const User *first, const User *second) {
27 	return (QString::localeAwareCompare(first->qsName, second->qsName) < 0);
28 }
29