X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fcoreconnection.cpp;h=4928a8bfbd6e2b4da95455ed9a44b4652ea0338e;hp=36503854663d60d1da9bb9d2780afb1211cc0952;hb=447501045b6fe14fdeff95823e2ea85416da7a77;hpb=f6cc3c4c662771d76355f876dd6e0317b890676b diff --git a/src/client/coreconnection.cpp b/src/client/coreconnection.cpp index 36503854..4928a8bf 100644 --- a/src/client/coreconnection.cpp +++ b/src/client/coreconnection.cpp @@ -211,8 +211,10 @@ bool CoreConnection::isLocalConnection() const return false; if (currentAccount().isInternal()) return true; - if (_peer->isLocal()) - return true; + if (_authHandler) + return _authHandler->isLocal(); + if (_peer) + return _peer->isLocal(); return false; }