From 54c49b40f74d5658a6a7b060c7bd306cd085de1a Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 7 Aug 2008 18:17:23 +0000 Subject: Don't add duplicate invites git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10122 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 1 + 1 file changed, 1 insertion(+) 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; } } } -- cgit v1.2.3