summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2010-12-24 06:42:55 +0100
committerDukePyrolator <DukePyrolator@anope.org>2010-12-24 06:42:55 +0100
commit4235df2b28a26cb166a250d016f1fd9b417cb94b (patch)
tree71e7d99d4cf1c3f679593ff982baa37689f7b3e7 /include/modules.h
parenta0ad3c4fef7e35c68dee128950ef95c0c56849fe (diff)
parent1a3ba00c246803ee06a680060454fb6782e5dd7d (diff)
Merge branch '1.9' of ssh://anope.git.sourceforge.net/gitroot/anope/anope into 1.9
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h
index 0afd033a3..4f7bddf69 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -1026,6 +1026,14 @@ class CoreExport Module : public Extensible
* @param s Our uplink
*/
virtual void OnUplinkSync(Server *s) { }
+
+ /** Called when we receive a PRIVMSG for one of our clients
+ * @param u The user sending the PRIVMSG
+ * @param bi The target of the PRIVMSG
+ * @param message The message
+ * @return EVENT_STOP to halt processing
+ */
+ virtual EventReturn OnBotPrivmsg(User *u, BotInfo *bi, const Anope::string &message) { return EVENT_CONTINUE; }
};
/** Implementation-specific flags which may be set in ModuleManager::Attach()
@@ -1078,7 +1086,7 @@ enum Implementation
I_OnServerQuit, I_OnTopicUpdated,
I_OnEncrypt, I_OnEncryptCheckLen, I_OnDecrypt, I_OnCheckPassword,
I_OnChannelModeSet, I_OnChannelModeUnset, I_OnUserModeSet, I_OnUserModeUnset, I_OnChannelModeAdd, I_OnUserModeAdd,
- I_OnMLock, I_OnUnMLock, I_OnServerSync, I_OnUplinkSync,
+ I_OnMLock, I_OnUnMLock, I_OnServerSync, I_OnUplinkSync, I_OnBotPrivmsg,
I_END
};