diff options
-rw-r--r-- | include/modules.h | 2 | ||||
-rw-r--r-- | src/modules.cpp | 1 |
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 |