diff options
| author | Adam <Adam@anope.org> | 2017-01-27 08:40:26 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2017-01-27 08:40:26 -0500 |
| commit | 9ad06f49bbb3824139b0c0ee0a74898a18c8f735 (patch) | |
| tree | 618a4f0e173166e6f966a7cce78f06c3c1c3299f /modules/nickserv/recover.cpp | |
| parent | 16ca76c2e7ab287e480185fbb03a0bb438351eda (diff) | |
Store CommandInfo in CommandSource instead of just command/permission
Diffstat (limited to 'modules/nickserv/recover.cpp')
| -rw-r--r-- | modules/nickserv/recover.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/nickserv/recover.cpp b/modules/nickserv/recover.cpp index 191e6e019..5c4f3ac1d 100644 --- a/modules/nickserv/recover.cpp +++ b/modules/nickserv/recover.cpp @@ -86,7 +86,7 @@ class NSRecoverRequestListener : public NickServ::IdentifyRequestListener u->SendMessage(*source.service, _("This nickname has been recovered by \002{0}\002. If you did not do this, then \002{0}\002 may have your password, and you should change it."), source.GetNick()); - Anope::string buf = source.command.upper() + " command used by " + source.GetNick(); + Anope::string buf = source.GetCommand().upper() + " command used by " + source.GetNick(); u->Kill(*source.service, buf); source.Reply(_("Ghost with your nick has been killed.")); @@ -172,7 +172,7 @@ class CommandNSRecover : public Command if (user && source.GetUser() == user) { - source.Reply(_("You can't %s yourself!"), source.command.lower().c_str()); + source.Reply(_("You can't {0} yourself!"), source.GetCommand().lower()); return; } |
