diff options
author | Adam <Adam@anope.org> | 2013-05-17 22:53:55 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-05-17 22:53:55 -0400 |
commit | cc4a14b0badfe3d617ec2dd230d7921f8650a069 (patch) | |
tree | 73ded53114ee7b100c548bdb448a6cc36b392da8 /modules/commands/ms_read.cpp | |
parent | 934b5843744e586ce9a3c7725a19c7ddffe14ee8 (diff) |
Removed some hard coded command names in help output
Diffstat (limited to 'modules/commands/ms_read.cpp')
-rw-r--r-- | modules/commands/ms_read.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/modules/commands/ms_read.cpp b/modules/commands/ms_read.cpp index 7e1e89236..b25b4fc4b 100644 --- a/modules/commands/ms_read.cpp +++ b/modules/commands/ms_read.cpp @@ -72,11 +72,20 @@ class MemoListCallback : public NumberList Memo *m = mi->GetMemo(index); if (!m) return; - + if (ci) - source.Reply(_("Memo %d from %s (%s). To delete, type: \002%s%s DEL %s %d\002"), index + 1, m->sender.c_str(), Anope::strftime(m->time).c_str(), Config->StrictPrivmsg.c_str(), MemoServ->nick.c_str(), ci->name.c_str(), index + 1); + source.Reply(_("Memo %d from %s (%s)."), index + 1, m->sender.c_str(), Anope::strftime(m->time).c_str()); else - source.Reply(_("Memo %d from %s (%s). To delete, type: \002%s%s DEL %d\002"), index + 1, m->sender.c_str(), Anope::strftime(m->time).c_str(), Config->StrictPrivmsg.c_str(), MemoServ->nick.c_str(), index + 1); + source.Reply(_("Memo %d from %s (%s)."), index + 1, m->sender.c_str(), Anope::strftime(m->time).c_str()); + + BotInfo *bi; + Anope::string cmd; + if (Command::FindCommandFromService("memoserv/del", bi, cmd)) + if (ci) + source.Reply(_("To delete, type: \002%s%s %s %s %d\002"), Config->StrictPrivmsg.c_str(), bi->nick.c_str(), cmd.c_str(), ci->name.c_str(), index + 1); + else + source.Reply(_("To delete, type: \002%s%s %s %d\002"), Config->StrictPrivmsg.c_str(), bi->nick.c_str(), cmd.c_str(), index + 1); + source.Reply("%s", m->text.c_str()); m->unread = false; |