24 this->
SetDesc(
_(
"Send a memo to a nick or channel"));
25 this->
SetSyntax(
_(
"{\037nick\037 | \037channel\037} \037memo-text\037"));
44 source.Reply(
_(
"Memo sent to \002%s\002."), nick.
c_str());
46 source.Reply(
_(
"\002%s\002 is not a registered unforbidden nick or channel."), nick.
c_str());
48 source.Reply(
_(
"Please wait %d seconds before using the %s command again."),
Config->GetModule(
"memoserv")->Get<time_t>(
"senddelay"), source.command.c_str());
50 source.Reply(
_(
"Sorry, %s currently has too many memos and cannot receive more."), nick.
c_str());
57 source.Reply(
_(
"Sends the named \037nick\037 or \037channel\037 a memo containing\n"
58 "\037memo-text\037. When sending to a nickname, the recipient will\n"
59 "receive a notice that he/she has a new memo. The target\n"
60 "nickname/channel must be registered."));
void Execute(CommandSource &source, const std::vector< Anope::string > ¶ms) anope_override
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
CommandMSSend(Module *creator)
void SetDesc(const Anope::string &d)
#define MEMO_SEND_DISABLED
static ServiceReference< MemoServService > memoserv("MemoServService","MemoServ")
MSSend(const Anope::string &modname, const Anope::string &creator)
CommandMSSend commandmssend
void SetSyntax(const Anope::string &s)
void SendSyntax(CommandSource &)
const char * c_str() const