mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
update connections table when changing channel
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@461 05730e5d-ab1b-0410-a4ac-84af385074fa
This commit is contained in:
parent
73e91ad43a
commit
500013bfc2
@ -443,6 +443,11 @@ void ServerDB::setLastChannel(Player *p) {
|
||||
query.addBindValue(p->cChannel->iId);
|
||||
query.addBindValue(p->iId);
|
||||
query.exec();
|
||||
|
||||
query.prepare("UPDATE connections SET channel_id=? WHERE con_id = ?");
|
||||
query.addBindValue(p->cChannel->iId);
|
||||
query.addBindValue(p->sId);
|
||||
query.exec();
|
||||
}
|
||||
|
||||
int ServerDB::readLastChannel(Player *p) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user