diff options
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp index 8ba069f11..5a50cc136 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -528,6 +528,13 @@ InvitedList* userrec::GetInviteList() void userrec::InviteTo(const irc::string &channel) { + for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) + { + if (channel == *i) + { + return; + } + } invites.push_back(channel); } |
