summaryrefslogtreecommitdiff
path: root/modules/commands/os_forbid.cpp
diff options
context:
space:
mode:
authorRobby- <robby@chat.be>2013-02-02 07:30:53 +0100
committerRobby- <robby@chat.be>2013-02-02 07:30:53 +0100
commit15b37c1e38b20a3f6244af179dfdb395ee929800 (patch)
tree5ce51a5ecb759c472d3f44a322e9fb61a2bbd7ab /modules/commands/os_forbid.cpp
parentdccb0ee3138359559d3a984d4708b53154aa7082 (diff)
Some more typo and help text fixes, proper formatting of control codes, missing privileges, and settings corrections.
Diffstat (limited to 'modules/commands/os_forbid.cpp')
-rw-r--r--modules/commands/os_forbid.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/modules/commands/os_forbid.cpp b/modules/commands/os_forbid.cpp
index 4b807ab1a..a50b8d802 100644
--- a/modules/commands/os_forbid.cpp
+++ b/modules/commands/os_forbid.cpp
@@ -154,7 +154,7 @@ class CommandOSForbid : public Command
this->fs->AddForbid(d);
Log(LOG_ADMIN, source, this) << "to add a forbid on " << entry << " of type " << subcommand;
- source.Reply(_("Added a forbid on %s to expire on %s"), entry.c_str(), d->expires ? Anope::strftime(d->expires).c_str() : "never");
+ source.Reply(_("Added a forbid on %s to expire on %s."), entry.c_str(), d->expires ? Anope::strftime(d->expires).c_str() : "never");
}
else if (command.equals_ci("DEL") && params.size() > 2 && ftype != FT_NONE)
{
@@ -228,10 +228,14 @@ class CommandOSForbid : public Command
source.Reply(" ");
source.Reply(_("Forbid allows you to forbid usage of certain nicknames, channels,\n"
"and email addresses. Wildcards are accepted for all entries."));
+
if (!Config->RegexEngine.empty())
- source.Reply(" \n"
- "Regex matches are also supported using the %s engine.\n"
- "Enclose your pattern in // if this desired.", Config->RegexEngine.c_str());
+ {
+ source.Reply(" ");
+ source.Reply(_("Regex matches are also supported using the %s engine.\n"
+ "Enclose your pattern in // if this is desired."), Config->RegexEngine.c_str());
+ }
+
return true;
}
};
@@ -319,9 +323,9 @@ class OSForbid : public Module
if (d != NULL)
{
if (source.IsOper())
- source.Reply(_("Nick \2%s\2 is forbidden by %s: %s"), params[0].c_str(), d->creator.c_str(), d->reason.c_str());
+ source.Reply(_("Nick \002%s\002 is forbidden by %s: %s"), params[0].c_str(), d->creator.c_str(), d->reason.c_str());
else
- source.Reply(_("Nick \2%s\2 is forbidden."), params[0].c_str());
+ source.Reply(_("Nick \002%s\002 is forbidden."), params[0].c_str());
return EVENT_STOP;
}
}
@@ -331,9 +335,9 @@ class OSForbid : public Module
if (d != NULL)
{
if (source.IsOper())
- source.Reply(_("Channel \2%s\2 is forbidden by %s: %s"), params[0].c_str(), d->creator.c_str(), d->reason.c_str());
+ source.Reply(_("Channel \002%s\002 is forbidden by %s: %s"), params[0].c_str(), d->creator.c_str(), d->reason.c_str());
else
- source.Reply(_("Channel \2%s\2 is forbidden."), params[0].c_str());
+ source.Reply(_("Channel \002%s\002 is forbidden."), params[0].c_str());
return EVENT_STOP;
}
}