Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Hacker <dd0t@users.sourceforge.net>2012-07-31 15:07:50 +0400
committerStefan Hacker <dd0t@users.sourceforge.net>2012-08-04 16:32:02 +0400
commitbc69a496a7e24f34e3c23c141874ed146d72a0f7 (patch)
treefbdf866f5fd9810248c75888b8e6692c34c964f0
parentfd0ca48eb5cc9b5ef8d75b206f683ae46636f9c0 (diff)
msgServerConfig is MainWindow independent
-rw-r--r--src/mumble/MainWindow.h1
-rw-r--r--src/mumble/MainWindowMessages.cpp13
-rw-r--r--src/mumble/MessageHandler.cpp12
3 files changed, 11 insertions, 15 deletions
diff --git a/src/mumble/MainWindow.h b/src/mumble/MainWindow.h
index 731815f7b..c0c4c2e75 100644
--- a/src/mumble/MainWindow.h
+++ b/src/mumble/MainWindow.h
@@ -254,7 +254,6 @@ class MainWindow : public QMainWindow, public Ui::MainWindow {
void msgBanList(const MumbleProto::BanList &msg);
void msgReject(const MumbleProto::Reject &msg);
void msgServerSync(const MumbleProto::ServerSync &msg);
- void msgServerConfig(const MumbleProto::ServerConfig &msg);
void msgPermissionDenied(const MumbleProto::PermissionDenied &msg);
void msgUserState(const MumbleProto::UserState &msg);
void msgUserRemove(const MumbleProto::UserRemove &msg);
diff --git a/src/mumble/MainWindowMessages.cpp b/src/mumble/MainWindowMessages.cpp
index db5e5ba41..a44ca1345 100644
--- a/src/mumble/MainWindowMessages.cpp
+++ b/src/mumble/MainWindowMessages.cpp
@@ -141,19 +141,6 @@ void MainWindow::msgServerSync(const MumbleProto::ServerSync &msg) {
}
-void MainWindow::msgServerConfig(const MumbleProto::ServerConfig &msg) {
- if (msg.has_welcome_text())
- g.l->log(Log::Information, tr("Welcome message: %1").arg(u8(msg.welcome_text())));
- if (msg.has_max_bandwidth())
- AudioInput::setMaxBandwidth(msg.max_bandwidth());
- if (msg.has_allow_html())
- g.bAllowHTML = msg.allow_html();
- if (msg.has_message_length())
- g.uiMessageLength = msg.message_length();
- if (msg.has_image_message_length())
- g.uiImageLength = msg.image_message_length();
-}
-
void MainWindow::msgPermissionDenied(const MumbleProto::PermissionDenied &msg) {
switch (msg.type()) {
case MumbleProto::PermissionDenied_DenyType_Permission: {
diff --git a/src/mumble/MessageHandler.cpp b/src/mumble/MessageHandler.cpp
index f3e058232..e268942f2 100644
--- a/src/mumble/MessageHandler.cpp
+++ b/src/mumble/MessageHandler.cpp
@@ -39,6 +39,7 @@
#include "Log.h"
#include "ConversionHelpers.h"
#include "Connection.h"
+#include "AudioInput.h"
#define ACTOR_INIT \
ClientUser *pSrc=NULL; \
@@ -112,7 +113,16 @@ void MessageHandler::msgServerSync(const MumbleProto::ServerSync &msg) {
void MessageHandler::msgServerConfig(const MumbleProto::ServerConfig &msg) {
- g.mw->msgServerConfig(msg);
+ if (msg.has_welcome_text())
+ g.l->log(Log::Information, tr("Welcome message: %1").arg(u8(msg.welcome_text())));
+ if (msg.has_max_bandwidth())
+ AudioInput::setMaxBandwidth(msg.max_bandwidth());
+ if (msg.has_allow_html())
+ g.bAllowHTML = msg.allow_html();
+ if (msg.has_message_length())
+ g.uiMessageLength = msg.message_length();
+ if (msg.has_image_message_length())
+ g.uiImageLength = msg.image_message_length();
}
void MessageHandler::msgPermissionDenied(const MumbleProto::PermissionDenied &msg) {