summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 26e625cee..f631420fe 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -439,8 +439,9 @@ void User::InviteTo(const irc::string &channel, time_t invtimeout)
if (i->second != 0 && invtimeout > i->second)
{
i->second = invtimeout;
- return;
}
+
+ return;
}
}
invites.push_back(std::make_pair(channel, invtimeout));