From eb1abb50e8596080087c57a10c4ac1ce20b302c1 Mon Sep 17 00:00:00 2001 From: Kyle Fuller Date: Sun, 16 Oct 2011 23:26:07 +0000 Subject: [PATCH] Fix the OnUserCTCP() module hook This was broken when CClient was made network aware with ef2b2cf6013 --- src/Client.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Client.cpp b/src/Client.cpp index 763e6805..381f16e4 100644 --- a/src/Client.cpp +++ b/src/Client.cpp @@ -300,12 +300,10 @@ void CClient::ReadLine(const CString& sData) { } } } + } else { + NETWORKMODULECALL(OnUserCTCP(sTarget, sCTCP), m_pUser, m_pNetwork, this, return); } - } else { - NETWORKMODULECALL(OnUserCTCP(sTarget, sCTCP), m_pUser, m_pNetwork, this, return); - } - if (m_pNetwork) { PutIRC("PRIVMSG " + sTarget + " :\001" + sCTCP + "\001"); }