summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-07 18:17:23 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-07 18:17:23 +0000
commit54c49b40f74d5658a6a7b060c7bd306cd085de1a (patch)
tree2b6d04ddc8b4ca3264d09c1d4a20985fb5a38784 /src/users.cpp
parent6d64862fb556c43568efdf6b4f65de3fbd33c576 (diff)
Don't add duplicate invites
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10122 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 455bb74ec..26e625cee 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -439,6 +439,7 @@ void User::InviteTo(const irc::string &channel, time_t invtimeout)
if (i->second != 0 && invtimeout > i->second)
{
i->second = invtimeout;
+ return;
}
}
}