diff options
author | Attila Molnar <attilamolnar@hush.com> | 2012-06-27 16:29:21 -0700 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2012-06-27 16:29:21 -0700 |
commit | f89e68d78684dab66f9c99aaf8bd8a37ec62bfce (patch) | |
tree | cdabc56abaf267f501308be387269bed655ac724 /src/commands | |
parent | b1dedaba2400b7ce7acfa98b9a63fd54ae674a41 (diff) | |
parent | d2e189102b643f38418f3caf065dbb91f2ce4266 (diff) |
Merge pull request #235 from attilamolnar/insp20+invitefix
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()); } |