summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-30 11:11:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-30 11:11:53 +0000
commita32d186945f0cd39fc80d6025b66f7f7a3475b8a (patch)
tree610ef548c5eee36b2e9966694c7984573f349e8d
parentee2f9cee7bd50e7a6234eecbc49b464f36ea9c60 (diff)
Added OnUserInvite()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2039 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/modules.h2
-rw-r--r--src/modules.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h
index 5d2ff3412..6c556e841 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -386,6 +386,8 @@ class Module : public classbase
*/
virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel);
+ virtual void OnUserInvite(userrec* source,userrec* dest,chanrec* channel);
+
/** Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done.
* Returning any nonzero value from this function stops the process immediately, causing no
* output to be sent to the user by the core. If you do this you must produce your own numerics,
diff --git a/src/modules.cpp b/src/modules.cpp
index eb353334e..551a6ca98 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -363,6 +363,7 @@ int Module::OnRawSocketRead(int fd, char* buffer, unsigned int count, int &read
void Module::OnUserMessage(userrec* user, void* dest, int target_type, std::string text) { };
void Module::OnUserNotice(userrec* user, void* dest, int target_type, std::string text) { };
void Module::OnRemoteKill(userrec* source, userrec* dest, std::string reason) { };
+void Module::OnUserInvite(userrec* source,userrec* dest,chanrec* channel) { };
// server is a wrapper class that provides methods to all of the C-style
// exports in the core