From 32ce2bfe9c877f367e45a0e79b3fcc776be9c559 Mon Sep 17 00:00:00 2001 From: prozacx Date: Sat, 16 Sep 2006 17:58:13 +0000 Subject: [PATCH] Removed extra join when topic is set - thanks psycho git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@762 726aef4b-f618-498e-8847-2d620e286838 --- modules/partyline.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/partyline.cpp b/modules/partyline.cpp index d5cb67d8..9767ba86 100644 --- a/modules/partyline.cpp +++ b/modules/partyline.cpp @@ -101,7 +101,6 @@ public: m_pClient->PutClient(":" + m_pUser->GetIRCNick().GetNickMask() + " JOIN " + it->first); if (itb != m_msTopics.end()) { - m_pClient->PutClient(":" + m_pUser->GetIRCNick().GetNickMask() + " JOIN " + it->first); m_pClient->PutClient(":" + m_pUser->GetIRCServer() + " 332 " + m_pUser->GetIRCNick().GetNickMask() + " " + it->first + " :" + itb->second); } @@ -145,7 +144,7 @@ public: PutChan(ssNicks, ":" + m_pUser->GetIRCNick().GetNickMask() + " TOPIC " + sChannel + " :" + sTopic); m_msTopics[sChannel.AsLower()] = sTopic; } else { - m_pUser->PutUser(":irc.znc.com 482 " + m_pUser->GetIRCNick().GetNick() + " " + sChannel + " :You're not channel operator"); + m_pUser->PutUser(":irc.znc.com 482 " + m_pUser->GetIRCNick().GetNick() + " " + sChannel + " :You're not channel operator"); } } else { sTopic = m_msTopics[sChannel.AsLower()];