Add OnTopic() module call

Thanks to SilverLeo, again.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1011 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-04-01 09:03:17 +00:00
parent 3be33dd6c8
commit 0a5d3013d2
4 changed files with 13 additions and 0 deletions
+3
View File
@@ -655,6 +655,9 @@ void CIRCSock::ReadLine(const CString& sData) {
if (pChan) {
CString sTopic = sLine.Token(3, true);
sTopic.LeftChomp();
MODULECALL(OnTopic(Nick, *pChan, sTopic), m_pUser, NULL, return)
pChan->SetTopicOwner(Nick.GetNick());
pChan->SetTopicDate((unsigned long) time(NULL));
pChan->SetTopic(sTopic);