X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fclient%2Fcoreconnection.cpp;h=4928a8bfbd6e2b4da95455ed9a44b4652ea0338e;hb=1b7bda6032edddeb3d6895916e1c968acef19979;hp=36503854663d60d1da9bb9d2780afb1211cc0952;hpb=ce26c3770b254362c7bd1e094ba8f8bf22133653;p=quassel.git 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; }