Permalink
Browse files

Fix the OnUserCTCP() module hook

This was broken when CClient was made network aware with ef2b2cf
  • Loading branch information...
1 parent af24f7b commit eb1abb50e8596080087c57a10c4ac1ce20b302c1 @kylef kylef committed Oct 16, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/Client.cpp
View
@@ -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");
}

0 comments on commit eb1abb5

Please sign in to comment.