diff options
author | Benjamin Jemlich <pcgod@users.sourceforge.net> | 2010-01-10 23:04:09 +0300 |
---|---|---|
committer | Benjamin Jemlich <pcgod@users.sourceforge.net> | 2010-01-11 01:37:54 +0300 |
commit | cf33de48419b9a8b7d5092d9496d6bd0cc0d9055 (patch) | |
tree | 06f9f39c4fc46103684fb1e6b9fc1d454ace984e /src/mumble/ACLEditor.cpp | |
parent | 170fd04e77210ced5715231d2f5f11e18ea26e41 (diff) |
Move assembly of some protobuf messages to ServerHandler
Diffstat (limited to 'src/mumble/ACLEditor.cpp')
-rw-r--r-- | src/mumble/ACLEditor.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mumble/ACLEditor.cpp b/src/mumble/ACLEditor.cpp index 17a153730..cc61b997e 100644 --- a/src/mumble/ACLEditor.cpp +++ b/src/mumble/ACLEditor.cpp @@ -252,13 +252,7 @@ void ACLEditor::accept() { } // Update channel state if (bAddChannelMode) { - MumbleProto::ChannelState mpcs; - mpcs.set_name(u8(qleChannelName->text())); - mpcs.set_description(u8(rteChannelDescription->text())); - mpcs.set_parent(iChannel); - mpcs.set_position(qsbChannelPosition->value()); - mpcs.set_temporary(qcbChannelTemporary->isChecked()); - g.sh->sendMessage(mpcs); + g.sh->createChannel(iChannel, qleChannelName->text(), rteChannelDescription->text(), qsbChannelPosition->value(), qcbChannelTemporary->isChecked()); } else { bool b = false; |