In fixed mode, fix the iid type of the component JID

This commit is contained in:
louiz’
2017-07-20 21:28:18 +02:00
parent ffb402f0ad
commit 24f2511d7b
2 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -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;