summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authoraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-08 23:35:39 +0000
committeraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-08 23:35:39 +0000
commit18154f4d229cf8ebdcec0dac671ad6e2e0049fee (patch)
tree884342c65c18c913dfbbfd5d26c7b81495e792a8 /src/modules
parent31b785cb03d616a7989c57279d76f05f8d9aa9c3 (diff)
Support for /invite <user> <channel> <timeout> - if the user doesn't partake in <timeout> time, the invite expires
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8854 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_noinvite.cpp2
-rw-r--r--src/modules/m_silence_ext.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_noinvite.cpp b/src/modules/m_noinvite.cpp
index d29942bc8..cff191db0 100644
--- a/src/modules/m_noinvite.cpp
+++ b/src/modules/m_noinvite.cpp
@@ -58,7 +58,7 @@ class ModuleNoInvite : public Module
}
- virtual int OnUserPreInvite(User* user,User* dest,Channel* channel)
+ virtual int OnUserPreInvite(User* user,User* dest,Channel* channel, time_t timeout)
{
if (channel->IsModeSet('V'))
{
diff --git a/src/modules/m_silence_ext.cpp b/src/modules/m_silence_ext.cpp
index f37d67b13..886fa3fc5 100644
--- a/src/modules/m_silence_ext.cpp
+++ b/src/modules/m_silence_ext.cpp
@@ -334,7 +334,7 @@ class ModuleSilence : public Module
return PreText(user, dest, target_type, text, status, exempt_list, SILENCE_NOTICE);
}
- virtual int OnUserPreInvite(User* source,User* dest,Channel* channel)
+ virtual int OnUserPreInvite(User* source,User* dest,Channel* channel, time_t timeout)
{
return MatchPattern(dest, source, SILENCE_INVITE);
}