diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-06-17 17:53:39 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-06-17 17:54:49 +0200 |
commit | d2e189102b643f38418f3caf065dbb91f2ce4266 (patch) | |
tree | 43968ec9501a525107e41736cbe39839aec08350 /src/commands | |
parent | f960a97cc6b509c756a20d892609825c67c2fc43 (diff) |
Fix pending invites not being removed when a channel was deleted or had its TS lowered
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/cmd_invite.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/cmd_invite.cpp b/src/commands/cmd_invite.cpp index 3baa9cb03..200cce4a3 100644 --- a/src/commands/cmd_invite.cpp +++ b/src/commands/cmd_invite.cpp @@ -132,10 +132,10 @@ CmdResult CommandInvite::Handle (const std::vector<std::string>& parameters, Use { // pinched from ircu - invite with not enough parameters shows channels // youve been invited to but haven't joined yet. - InvitedList* il = IS_LOCAL(user)->GetInviteList(); - for (InvitedList::iterator i = il->begin(); i != il->end(); i++) + InviteList& il = IS_LOCAL(user)->GetInviteList(); + for (InviteList::const_iterator i = il.begin(); i != il.end(); ++i) { - user->WriteNumeric(RPL_INVITELIST, "%s :%s",user->nick.c_str(),i->first.c_str()); + user->WriteNumeric(RPL_INVITELIST, "%s :%s",user->nick.c_str(), (*i)->chan->name.c_str()); } user->WriteNumeric(RPL_ENDOFINVITELIST, "%s :End of INVITE list",user->nick.c_str()); } |