mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
On channel creation, add creator to "admin" group.
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@192 05730e5d-ab1b-0410-a4ac-84af385074fa
This commit is contained in:
parent
7f73d73d97
commit
fdde84ff1a
@ -569,6 +569,11 @@ void MessageChannelAdd::process(Connection *cCon) {
|
||||
}
|
||||
|
||||
Channel *c = ServerDB::addChannel(p, qsName);
|
||||
if (sPlayerId >= 0) {
|
||||
Group *g = new Group(c, "admin");
|
||||
g->qsAdd << sPlayerId;
|
||||
}
|
||||
ServerDB::updateChannel(c);
|
||||
|
||||
iId = c->iId;
|
||||
g_sServer->sendAll(this);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user