summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-02-09 13:31:47 -0500
committerAdam <Adam@anope.org>2011-02-09 13:31:47 -0500
commitf87c665b639d2577f71abf724552e49aeba7c3f4 (patch)
treeaed4d202ea94539c3e4764e2e95213b29a8186c4 /modules
parent36d3fd171085baecce62ac52c2818734ee7bd1f4 (diff)
Foward port ebe0ce6610e1 / b6ab031fc1822
Diffstat (limited to 'modules')
-rw-r--r--modules/core/os_news.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/core/os_news.cpp b/modules/core/os_news.cpp
index b81bb54f4..f822e8e4b 100644
--- a/modules/core/os_news.cpp
+++ b/modules/core/os_news.cpp
@@ -39,7 +39,7 @@ struct NewsMessages msgarray[] = {
_("Syntax: \002LOGONNEWS ADD \037text\037\002"),
_("Added new logon news item (#%d)."),
_("Syntax: \002LOGONNEWS DEL {\037num\037 | ALL}"),
- _("Logon news item #%d not found!"),
+ _("Logon news item #%s not found!"),
_("LOGONNEWS {ADD|DEL|LIST} [\037text\037|\037num\037]\002"),
_("No logon news items to delete!"),
_("All logon news items deleted.")}
@@ -51,7 +51,7 @@ struct NewsMessages msgarray[] = {
_("Syntax: \002OPERNEWS ADD \037text\037\002"),
_("Added new oper news item (#%d)."),
_("Syntax: \002OPERNEWS DEL {\037num\037 | ALL}"),
- _("Oper news item #%d not found!"),
+ _("Oper news item #%s not found!"),
_("Oper news item #%d deleted."),
_("No oper news items to delete!"),
_("All oper news items deleted.")}
@@ -63,7 +63,7 @@ struct NewsMessages msgarray[] = {
_("Syntax: \002RANDOMNEWS ADD \037text\037\002"),
_("Added new random news item (#%d)."),
_("Syntax: \002RANDOMNEWS DEL {\037num\037 | ALL}"),
- _("Random news item #%d not found!"),
+ _("Random news item #%s not found!"),
_("Random news item #%d deleted."),
_("No random news items to delete!"),
_("All random news items deleted.")}
@@ -213,7 +213,6 @@ class NewsBase : public Command
CommandReturn DoDel(CommandSource &source, const std::vector<Anope::string> &params, NewsType type, const char **msgs)
{
const Anope::string &text = params.size() > 1 ? params[1] : "";
- unsigned num;
if (text.empty())
this->OnSyntaxError(source, "DEL");
@@ -240,7 +239,7 @@ class NewsBase : public Command
}
catch (const ConvertException &) { }
- source.Reply(msgs[MSG_DEL_NOT_FOUND], num);
+ source.Reply(msgs[MSG_DEL_NOT_FOUND], text.c_str());
}
else
{