summaryrefslogtreecommitdiff
path: root/modules/commands/os_forbid.cpp
diff options
context:
space:
mode:
authorAdam <adam@sigterm.info>2013-02-02 10:51:08 -0800
committerAdam <adam@sigterm.info>2013-02-02 10:51:08 -0800
commit8902c1f03881b7053a2b6b526e23d89054824d2c (patch)
tree46b48dadef226a981f39eca567b0cb57ca8f6321 /modules/commands/os_forbid.cpp
parentdccb0ee3138359559d3a984d4708b53154aa7082 (diff)
parent6c43bcc3e0a474319b4b5ecf53d01eb9c84cce79 (diff)
Merge pull request #8 from Robby-/1.9
Some more typo and help text fixes, missing privileges, settings corrections, and cs_enforce changes
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;
}
}