summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-05-23 01:17:36 +0200
committerlouiz’ <louiz@louiz.org>2018-05-23 01:17:36 +0200
commit68d86a9daa0a3b407ec1c98715e927e5b7e79eb9 (patch)
tree4545ffad8346200979753e1266e6ef0827ceca32
parentad1c63b129a928894e7255dc1eb5349d994fa1d1 (diff)
parentd3eda68761d6b5f4394c41248ae95915d6e90ae2 (diff)
downloadbiboumi-68d86a9daa0a3b407ec1c98715e927e5b7e79eb9.tar.gz
biboumi-68d86a9daa0a3b407ec1c98715e927e5b7e79eb9.tar.bz2
biboumi-68d86a9daa0a3b407ec1c98715e927e5b7e79eb9.tar.xz
biboumi-68d86a9daa0a3b407ec1c98715e927e5b7e79eb9.zip
Merge branch 'v8'
-rw-r--r--CHANGELOG.rst6
-rw-r--r--packaging/biboumi.spec.cmake5
-rw-r--r--src/irc/irc_client.cpp3
-rw-r--r--src/xmpp/biboumi_adhoc_commands.cpp3
4 files changed, 13 insertions, 4 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 4cba737..d6b214a 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -3,6 +3,12 @@ Version 9.0
- SIGHUP is now caught and reloads the configuration like SIGUSR1 and 2.
+Version 8.2 - 2018-05-23
+========================
+
+- The users are not able to bypass the fixed mode by just configuring a
+ different Address for the IRC server anymore.
+
Version 8.1 - 2018-05-14
========================
diff --git a/packaging/biboumi.spec.cmake b/packaging/biboumi.spec.cmake
index fbc464e..8d1848a 100644
--- a/packaging/biboumi.spec.cmake
+++ b/packaging/biboumi.spec.cmake
@@ -66,10 +66,11 @@ make check %{?_smp_mflags}
%changelog
* ${RPM_DATE} Le Coz Florent <louiz@louiz.org> - ${RPM_VERSION}-1
- Build latest git revision
-
-* ${RPM_DATE} Le Coz Florent <louiz@louiz.org> - ${RPM_VERSION}-1
- Build against botan2
+* Wed May 25 2018 Le Coz Florent <louiz@louiz.org> - 8.2-1
+ Update to version 8.1
+
* Wed May 14 2018 Le Coz Florent <louiz@louiz.org> - 8.1-1
Update to version 8.1
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index d0b2153..d7fa2cd 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -195,7 +195,8 @@ void IrcClient::start()
# ifdef BOTAN_FOUND
this->credential_manager.set_trusted_fingerprint(options.col<Database::TrustedFingerprint>());
# endif
- if (!options.col<Database::Address>().empty())
+ if (Config::get("fixed_irc_server", "").empty() &&
+ !options.col<Database::Address>().empty())
address = options.col<Database::Address>();
#endif
this->bridge.send_xmpp_message(this->hostname, "", "Connecting to " +
diff --git a/src/xmpp/biboumi_adhoc_commands.cpp b/src/xmpp/biboumi_adhoc_commands.cpp
index 5a0aba8..1b5fdcb 100644
--- a/src/xmpp/biboumi_adhoc_commands.cpp
+++ b/src/xmpp/biboumi_adhoc_commands.cpp
@@ -232,6 +232,7 @@ void ConfigureIrcServerStep1(XmppComponent&, AdhocSession& session, XmlNode& com
XmlSubNode instructions(x, "instructions");
instructions.set_inner("Edit the form, to configure the settings of the IRC server " + server_domain);
+ if (Config::get("fixed_irc_server", "").empty())
{
XmlSubNode field(x, "field");
field["var"] = "address";
@@ -411,7 +412,7 @@ void ConfigureIrcServerStep2(XmppComponent&, AdhocSession& session, XmlNode& com
const XmlNode* value = field->get_child("value", "jabber:x:data");
const std::vector<const XmlNode*> values = field->get_children("value", "jabber:x:data");
- if (field->get_tag("var") == "address" && value)
+ if (field->get_tag("var") == "address" && value && Config::get("fixed_irc_server", "").empty())
options.col<Database::Address>() = value->get_inner();
if (field->get_tag("var") == "ports")