summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-07-20 21:28:18 +0200
committerlouiz’ <louiz@louiz.org>2017-07-20 21:28:18 +0200
commit24f2511d7ba105d65c9684dd5606a57c5af95445 (patch)
tree9744d49e3c79687119de1bfde98da137a9d6d3d9 /src/irc
parentffb402f0adb9f808c7b8bc9616e71f7b3f8931ac (diff)
downloadbiboumi-24f2511d7ba105d65c9684dd5606a57c5af95445.tar.gz
biboumi-24f2511d7ba105d65c9684dd5606a57c5af95445.tar.bz2
biboumi-24f2511d7ba105d65c9684dd5606a57c5af95445.tar.xz
biboumi-24f2511d7ba105d65c9684dd5606a57c5af95445.zip
In fixed mode, fix the iid type of the component JID
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/iid.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/iid.cpp b/src/irc/iid.cpp
index a63a1c3..131c18c 100644
--- a/src/irc/iid.cpp
+++ b/src/irc/iid.cpp
@@ -35,7 +35,8 @@ Iid::Iid(const std::string& iid, const Bridge *bridge)
void Iid::set_type(const std::set<char>& chantypes)
{
- if (this->local.empty() && this->server.empty())
+ if (this->local.empty() && (
+ !Config::get("fixed_irc_server", "").empty() || this->server.empty()))
this->type = Iid::Type::None;
if (this->local.empty())
return;