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