Fix sigsev in setNickOffline

Thanks to Vilém Maršík for the original patch
This resolves Bug 2840

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 3a934bd343)
r14.0.x
Slávek Banko 7 years ago
parent 50675bd9f1
commit d6504c607f

@ -2326,9 +2326,8 @@ bool Server::setNickOffline(const TQString& nickname)
{
TQString lcNickname = nickname.lower();
NickInfoPtr nickInfo = getNickInfo(lcNickname);
bool wasOnline = nickInfo->getPrintedOnline();
if (nickInfo && wasOnline)
if (nickInfo && nickInfo->getPrintedOnline())
{
// Delete from query list, if present.
if (m_queryNicks.contains(lcNickname)) m_queryNicks.remove(lcNickname);

Loading…
Cancel
Save