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>
pull/1/head
Slávek Banko 7 years ago
parent 6d39de7024
commit 3a934bd343

@ -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