diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-30 11:12:01 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-30 11:12:01 +0000 |
commit | e2b2b9b6476ba4f687367a0325cf0036adf0951f (patch) | |
tree | 8e129be93d9602365fb7baebefee9940b0a5640f /src/modules | |
parent | a32d186945f0cd39fc80d6025b66f7f7a3475b8a (diff) |
Added INVITE
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2040 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 73277c175..1a5e298ca 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1331,6 +1331,17 @@ class ModuleSpanningTree : public Module return 0; } + virtual void OnUserInvite(userrec* source,userrec* dest,chanrec* channel) + { + if (std::string(source->server) == Srv->GetServerName()) + { + std::deque<std::string> params; + params.push_back(dest->nick); + params.push_back(channel->name); + DoOneToMany(source->nick,"INVITE",params); + } + } + virtual void OnUserNotice(userrec* user, void* dest, int target_type, std::string text) { if (target_type == TYPE_USER) |