Add OnUserTopic module call

Patch by SilverLeo


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1086 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-06-06 14:27:57 +00:00
parent d701809ac1
commit 442ef47c56
4 changed files with 29 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
*/
#include "Chan.h"
#include "User.h"
#include "Modules.h"
class CSampleTimer : public CTimer {
@@ -171,6 +172,12 @@ public:
return CONTINUE;
}
virtual EModRet OnUserTopic(CString& sTarget, CString& sTopic) {
PutModule("* " + m_pUser->GetCurNick() + " changed topic on " + sTarget + " to '" + sTopic + "'");
return CONTINUE;
}
virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage) {
PutModule("[" + sTarget + "] usermsg [" + sMessage + "]");
sMessage = "Sample: \0034" + sMessage + "\003";