Added OnBroadcast()

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@527 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-09-24 04:29:29 +00:00
parent ef1c8de55a
commit 8e3c57a144
3 changed files with 13 additions and 0 deletions
+6
View File
@@ -46,6 +46,12 @@ public:
PutModule("You got disconnected BoyOh.");
}
virtual EModRet OnBroadcast(CString& sMessage) {
PutModule("------ [" + sMessage + "]");
sMessage = "======== [" + sMessage + "] ========";
return CONTINUE;
}
virtual void OnChanPermission(const CNick& OpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) {
PutModule(((bNoChange) ? "[0] [" : "[1] [") + OpNick.GetNick() + "] set mode [" + Channel.GetName() + ((bAdded) ? "] +" : "] -") + CString::ToString(uMode) + " " + Nick.GetNick());
}