From 605e1f2a0353393cf1f45f5d2f38f15bdf392f3d Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 1 Mar 2014 21:12:27 -0500 Subject: [PATCH] Make chanserv/invite show who invited you --- modules/commands/cs_invite.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/commands/cs_invite.cpp b/modules/commands/cs_invite.cpp index f12670f77..1f39eaf7b 100644 --- a/modules/commands/cs_invite.cpp +++ b/modules/commands/cs_invite.cpp @@ -73,13 +73,14 @@ class CommandCSInvite : public Command if (u2 != u) { source.Reply(_("\002%s\002 has been invited to \002%s\002."), u2->nick.c_str(), c->name.c_str()); + u2->SendMessage(ci->WhoSends(), _("You have been invited to \002%s\002 by \002%s\002."), c->name.c_str(), source.GetNick().c_str()); Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci) << "for " << u2->nick; } else { + u2->SendMessage(ci->WhoSends(), _("You have been invited to \002%s\002."), c->name.c_str()); Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci); } - u2->SendMessage(ci->WhoSends(), _("You have been invited to \002%s\002."), c->name.c_str()); } }