diff options
author | Walliski <kim.wallis@aalto.fi> | 2013-08-08 22:37:51 +0300 |
---|---|---|
committer | Walliski <kim.wallis@aalto.fi> | 2013-08-08 22:37:51 +0300 |
commit | 6d3e1b350c2fcff8e5b79af4470b3f9cefd5830c (patch) | |
tree | 127725cc0bb75decb07346bf46a3962422c78aa7 /backlog.cpp | |
parent | 034fb584c54e1f4244ae4867eb62cc19943a45f2 (diff) |
Removed some examples
Diffstat (limited to 'backlog.cpp')
-rw-r--r-- | backlog.cpp | 179 |
1 files changed, 0 insertions, 179 deletions
diff --git a/backlog.cpp b/backlog.cpp index cf00942..992c27d 100644 --- a/backlog.cpp +++ b/backlog.cpp @@ -54,185 +54,6 @@ public: return true; } - virtual void OnIRCConnected() { - PutModule("You got connected BoyOh."); - } - - virtual void OnIRCDisconnected() { - PutModule("You got disconnected BoyOh."); - } - - virtual EModRet OnIRCRegistration(CString& sPass, CString& sNick, CString& sIdent, CString& sRealName) { - sRealName += " - ZNC"; - return CONTINUE; - } - - 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(uMode) + " " + Nick.GetNick()); - } - - virtual void OnOp(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { - PutModule(((bNoChange) ? "[0] [" : "[1] [") + OpNick.GetNick() + "] opped [" + Nick.GetNick() + "] on [" + Channel.GetName() + "]"); - } - - virtual void OnDeop(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { - PutModule(((bNoChange) ? "[0] [" : "[1] [") + OpNick.GetNick() + "] deopped [" + Nick.GetNick() + "] on [" + Channel.GetName() + "]"); - } - - virtual void OnVoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { - PutModule(((bNoChange) ? "[0] [" : "[1] [") + OpNick.GetNick() + "] voiced [" + Nick.GetNick() + "] on [" + Channel.GetName() + "]"); - } - - virtual void OnDevoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { - PutModule(((bNoChange) ? "[0] [" : "[1] [") + OpNick.GetNick() + "] devoiced [" + Nick.GetNick() + "] on [" + Channel.GetName() + "]"); - } - - virtual void OnRawMode(const CNick& OpNick, CChan& Channel, const CString& sModes, const CString& sArgs) { - PutModule("* " + OpNick.GetNick() + " sets mode: " + sModes + " " + sArgs + " (" + Channel.GetName() + ")"); - } - - virtual EModRet OnRaw(CString& sLine) { - // PutModule("OnRaw() [" + sLine + "]"); - return CONTINUE; - } - - virtual EModRet OnUserRaw(CString& sLine) { - // PutModule("UserRaw() [" + sLine + "]"); - return CONTINUE; - } - - virtual void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage) { - PutModule("[" + OpNick.GetNick() + "] kicked [" + sKickedNick + "] from [" + Channel.GetName() + "] with the msg [" + sMessage + "]"); - } - - virtual void OnQuit(const CNick& Nick, const CString& sMessage, const vector<CChan*>& vChans) { - PutModule("* Quits: " + Nick.GetNick() + " (" + Nick.GetIdent() + "!" + Nick.GetHost() + ") (" + sMessage + ")"); - } - - virtual EModRet OnTimerAutoJoin(CChan& Channel) { - PutModule("Attempting to join " + Channel.GetName()); - return CONTINUE; - } - - virtual void OnJoin(const CNick& Nick, CChan& Channel) { - PutModule("* Joins: " + Nick.GetNick() + " (" + Nick.GetIdent() + "!" + Nick.GetHost() + ")"); - } - - virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) { - PutModule("* Parts: " + Nick.GetNick() + " (" + Nick.GetIdent() + "!" + Nick.GetHost() + ")"); - } - - virtual EModRet OnInvite(const CNick& Nick, const CString& sChan) { - if (sChan.Equals("#test")) { - PutModule(Nick.GetNick() + " invited us to " + sChan + ", ignoring invites to " + sChan); - return HALT; - } - - PutModule(Nick.GetNick() + " invited us to " + sChan); - return CONTINUE; - } - - virtual void OnNick(const CNick& OldNick, const CString& sNewNick, const vector<CChan*>& vChans) { - PutModule("* " + OldNick.GetNick() + " is now known as " + sNewNick); - } - - virtual EModRet OnUserCTCPReply(CString& sTarget, CString& sMessage) { - PutModule("[" + sTarget + "] userctcpreply [" + sMessage + "]"); - sMessage = "\037" + sMessage + "\037"; - - return CONTINUE; - } - - virtual EModRet OnCTCPReply(CNick& Nick, CString& sMessage) { - PutModule("[" + Nick.GetNick() + "] ctcpreply [" + sMessage + "]"); - - return CONTINUE; - } - - virtual EModRet OnUserCTCP(CString& sTarget, CString& sMessage) { - PutModule("[" + sTarget + "] userctcp [" + sMessage + "]"); - - return CONTINUE; - } - - virtual EModRet OnPrivCTCP(CNick& Nick, CString& sMessage) { - PutModule("[" + Nick.GetNick() + "] privctcp [" + sMessage + "]"); - sMessage = "\002" + sMessage + "\002"; - - return CONTINUE; - } - - virtual EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) { - PutModule("[" + Nick.GetNick() + "] chanctcp [" + sMessage + "] to [" + Channel.GetName() + "]"); - sMessage = "\00311,5 " + sMessage + " \003"; - - return CONTINUE; - } - - virtual EModRet OnUserNotice(CString& sTarget, CString& sMessage) { - PutModule("[" + sTarget + "] usernotice [" + sMessage + "]"); - sMessage = "\037" + sMessage + "\037"; - - return CONTINUE; - } - - virtual EModRet OnPrivNotice(CNick& Nick, CString& sMessage) { - PutModule("[" + Nick.GetNick() + "] privnotice [" + sMessage + "]"); - sMessage = "\002" + sMessage + "\002"; - - return CONTINUE; - } - - virtual EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) { - PutModule("[" + Nick.GetNick() + "] channotice [" + sMessage + "] to [" + Channel.GetName() + "]"); - sMessage = "\00311,5 " + sMessage + " \003"; - - return CONTINUE; - } - - virtual EModRet OnTopic(CNick& Nick, CChan& Channel, CString& sTopic) { - PutModule("* " + Nick.GetNick() + " changes topic on " + Channel.GetName() + " to '" + sTopic + "'"); - - return CONTINUE; - } - - virtual EModRet OnUserTopic(CString& sTarget, CString& sTopic) { - PutModule("* " + m_pClient->GetNick() + " changed topic on " + sTarget + " to '" + sTopic + "'"); - - return CONTINUE; - } - - virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage) { - PutModule("[" + sTarget + "] usermsg [" + sMessage + "]"); - sMessage = "Sample: \0034" + sMessage + "\003"; - - return CONTINUE; - } - - virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage) { - PutModule("[" + Nick.GetNick() + "] privmsg [" + sMessage + "]"); - sMessage = "\002" + sMessage + "\002"; - - return CONTINUE; - } - - virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) { - if (sMessage == "!ping") { - PutIRC("PRIVMSG " + Channel.GetName() + " :PONG?"); - } - - sMessage = "x " + sMessage + " x"; - - PutModule(sMessage); - - return CONTINUE; - } virtual void OnModCommand(const CString& sCommand) { if (sCommand.Equals("TIMERS")) { |