mirror of
https://github.com/anope/anope.git
synced 2026-06-29 14:56:37 +02:00
Fix typos, remove dead language defines.
os_set: Add missing debug text in help output.
This commit is contained in:
+8
-21
@@ -85,12 +85,9 @@ namespace Language
|
||||
#define CHAN_X_NOT_IN_USE _("Channel \002%s\002 doesn't exist.")
|
||||
#define NICK_IDENTIFY_REQUIRED _("Password authentication required for that command.")
|
||||
#define MAIL_X_INVALID _("\002%s\002 is not a valid e-mail address.")
|
||||
#define NO_REASON _("No reason")
|
||||
#define UNKNOWN _("<unknown>")
|
||||
#define NO_EXPIRE _("does not expire")
|
||||
#define LIST_INCORRECT_RANGE _("Incorrect range specified. The correct syntax is \002#\037from\037-\037to\037\002.")
|
||||
#define UNKNOWN_OPTION _("Unknown option \002%s\002.\n" \
|
||||
"Type %s%s HELP %s for more information.")
|
||||
#define NICK_IS_REGISTERED _("This nick is owned by someone else. Please choose another.\n" \
|
||||
"(If this is your nick, type \002%s%s IDENTIFY \037password\037\002.)")
|
||||
#define NICK_IS_SECURE _("This nickname is registered and protected. If it is your\n" \
|
||||
@@ -99,24 +96,15 @@ namespace Language
|
||||
#define FORCENICKCHANGE_NOW _("This nickname has been registered; you may not use it.")
|
||||
#define NICK_CANNOT_BE_REGISTERED _("Nickname \002%s\002 may not be registered.")
|
||||
#define NICK_ALREADY_REGISTERED _("Nickname \002%s\002 is already registered!")
|
||||
#define NICK_SET_SYNTAX _("SET \037option\037 \037parameters\037")
|
||||
#define NICK_SET_DISABLED _("Sorry, nickname option setting is temporarily disabled.")
|
||||
#define NICK_SET_UNKNOWN_OPTION _("Unknown SET option \002%s%s\002.")
|
||||
#define NICK_SET_DISPLAY_CHANGED _("The new display is now \002%s\002.")
|
||||
#define NICK_LIST_SYNTAX _("LIST \037pattern\037")
|
||||
#define NICK_RECOVERED _("User claiming your nick has been killed.\n" \
|
||||
"\002%s%s RELEASE %s\002 to get it back before %s timeout.")
|
||||
#define NICK_REQUESTED _("This nick has already been requested, please check your e-mail address for the pass code")
|
||||
#define NICK_CONFIRM_INVALID _("Invalid passcode has been entered, please check the e-mail again, and retry")
|
||||
#define NICK_CONFIRM_INVALID _("Invalid passcode has been entered, please check the e-mail again, and retry.")
|
||||
#define CHAN_NOT_ALLOWED_TO_JOIN _("You are not permitted to be on this channel.")
|
||||
#define CHAN_X_INVALID _("Channel %s is not a valid channel.")
|
||||
#define CHAN_REACHED_CHANNEL_LIMIT _("Sorry, you have already reached your limit of \002%d\002 channels.")
|
||||
#define CHAN_EXCEEDED_CHANNEL_LIMIT _("Sorry, you have already exceeded your limit of \002%d\002 channels.")
|
||||
#define CHAN_SYMBOL_REQUIRED _("Please use the symbol of \002#\002 when attempting to register")
|
||||
#define CHAN_SET_DISABLED _("Sorry, channel option setting is temporarily disabled.")
|
||||
#define CHAN_SYMBOL_REQUIRED _("Please use the symbol of \002#\002 when attempting to register.")
|
||||
#define CHAN_SETTING_CHANGED _("%s for %s set to %s.")
|
||||
#define CHAN_SETTING_UNSET _("%s for %s unset.")
|
||||
#define CHAN_SET_MLOCK_DEPRECATED _("MLOCK is deprecated. Use \002%s%s HELP MODE\002 instead.")
|
||||
#define CHAN_ACCESS_LEVEL_RANGE _("Access level must be between %d and %d inclusive.")
|
||||
#define CHAN_INFO_HEADER _("Information for channel \002%s\002:")
|
||||
#define CHAN_EXCEPTED _("\002%s\002 matches an except on %s and cannot be banned until the except have been removed.")
|
||||
@@ -126,17 +114,16 @@ namespace Language
|
||||
"Type \002%s%s READ %d\002 to read it.")
|
||||
#define MEMO_HAVE_NO_MEMOS _("You have no memos.")
|
||||
#define MEMO_X_HAS_NO_MEMOS _("%s has no memos.")
|
||||
#define MEMO_SEND_SYNTAX _("SEND {\037nick\037 | \037channel\037} \037memo-text\037")
|
||||
#define MEMO_SEND_DISABLED _("Sorry, memo sending is temporarily disabled.")
|
||||
#define MEMO_HAVE_NO_NEW_MEMOS _("You have no new memos.")
|
||||
#define MEMO_X_HAS_NO_NEW_MEMOS _("%s has no new memos.")
|
||||
#define BOT_DOES_NOT_EXIST _("Bot \002%s\002 does not exist.")
|
||||
#define BOT_NOT_ASSIGNED _("You must assign a bot to the channel before using this command.")
|
||||
#define BOT_NOT_ON_CHANNEL _("Bot is not on channel \002%s\002.")
|
||||
#define HOST_SET_ERROR _("A vhost must be in the format of a valid hostmask.")
|
||||
#define HOST_SET_IDENT_ERROR _("A vhost ident must be in the format of a valid ident")
|
||||
#define HOST_SET_TOOLONG _("Error! The vhost is too long, please use a host shorter than %d characters.")
|
||||
#define HOST_SET_IDENTTOOLONG _("Error! The Ident is too long, please use an ident shorter than %d characters.")
|
||||
#define HOST_NOT_ASSIGNED _("Please contact an Operator to get a vhost assigned to this nick.")
|
||||
#define HOST_NO_VIDENT _("Your IRCD does not support vIdent's, if this is incorrect, please report this as a possible bug")
|
||||
#define HOST_SET_ERROR _("A vHost must be in the format of a valid hostname.")
|
||||
#define HOST_SET_IDENT_ERROR _("A vHost ident must be in the format of a valid ident.")
|
||||
#define HOST_SET_TOOLONG _("Error! The vHost is too long, please use a hostname shorter than %d characters.")
|
||||
#define HOST_SET_IDENTTOOLONG _("Error! The vHost ident is too long, please use an ident shorter than %d characters.")
|
||||
#define HOST_NOT_ASSIGNED _("Please contact an Operator to get a vHost assigned to this nick.")
|
||||
#define HOST_NO_VIDENT _("Your IRCd does not support vIdent's, if this is incorrect, please report this as a possible bug")
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ class CommandBSAssign : public Command
|
||||
{
|
||||
this->SendSyntax(source);
|
||||
source.Reply(" ");
|
||||
source.Reply(_("Assigns a bot pointed out by nick to the channel chan. You\n"
|
||||
source.Reply(_("Assigns a bot pointed out by nick to a channel. You\n"
|
||||
"can then configure the bot for the channel so it fits\n"
|
||||
"your needs."));
|
||||
return true;
|
||||
@@ -139,7 +139,7 @@ class CommandBSUnassign : public Command
|
||||
source.Reply(_("Unassigns a bot from a channel. When you use this command,\n"
|
||||
"the bot won't join the channel anymore. However, bot\n"
|
||||
"configuration for the channel is kept, so you will always\n"
|
||||
"be able to reassign a bot later without have to reconfigure\n"
|
||||
"be able to reassign a bot later without having to reconfigure\n"
|
||||
"it entirely."));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -348,9 +348,11 @@ class CommandBSBot : public Command
|
||||
"\002BOT ADD\002 adds a bot with the given nickname, username,\n"
|
||||
"hostname and realname. Since no integrity checks are done\n"
|
||||
"for these settings, be really careful.\n"
|
||||
"\002BOT CHANGE\002 allows to change nickname, username, hostname\n"
|
||||
"or realname of a bot without actually delete it (and all\n"
|
||||
"the data associated with it).\n"
|
||||
" \n"
|
||||
"\002BOT CHANGE\002 allows to change the nickname, username, hostname\n"
|
||||
"or realname of a bot without actually having to delete it (and\n"
|
||||
"all the data associated with it).\n"
|
||||
" \n"
|
||||
"\002BOT DEL\002 removes the given bot from the bot list.\n"
|
||||
" \n"
|
||||
"\002Note\002: you cannot create a bot that has a nick that is\n"
|
||||
|
||||
@@ -270,6 +270,7 @@ class CommandBSKickAMSG : public CommandBSKickBase
|
||||
source.Reply(_("Sets the AMSG kicker on or off. When enabled, the bot will\n"
|
||||
"kick users who send the same message to multiple channels\n"
|
||||
"where BotServ bots are.\n"
|
||||
" \n"
|
||||
"\037ttb\037 is the number of times a user can be kicked\n"
|
||||
"before they get banned. Don't give ttb to disable\n"
|
||||
"the ban system once activated."));
|
||||
@@ -306,8 +307,9 @@ class CommandBSKickBadwords : public CommandBSKickBase
|
||||
"You can define bad words for your channel using the\n"
|
||||
"\002BADWORDS\002 command. Type \002%s%s HELP BADWORDS\002 for\n"
|
||||
"more information.\n"
|
||||
"ttb is the number of times a user can be kicked\n"
|
||||
"before it get banned. Don't give ttb to disable\n"
|
||||
" \n"
|
||||
"\037ttb\037 is the number of times a user can be kicked\n"
|
||||
"before it gets banned. Don't give ttb to disable\n"
|
||||
"the ban system once activated."), Config->StrictPrivmsg.c_str(), source.service->nick.c_str());
|
||||
return true;
|
||||
}
|
||||
@@ -337,8 +339,9 @@ class CommandBSKickBolds : public CommandBSKickBase
|
||||
{
|
||||
source.Reply(_("Sets the bolds kicker on or off. When enabled, this\n"
|
||||
"option tells the bot to kick users who use bolds.\n"
|
||||
"ttb is the number of times a user can be kicked\n"
|
||||
"before it get banned. Don't give ttb to disable\n"
|
||||
" \n"
|
||||
"\037ttb\037 is the number of times a user can be kicked\n"
|
||||
"before it gets banned. Don't give ttb to disable\n"
|
||||
"the ban system once activated."));
|
||||
return true;
|
||||
}
|
||||
@@ -430,8 +433,9 @@ class CommandBSKickCaps : public CommandBSKickBase
|
||||
"and they constitute at least \002percent\002%% of the total\n"
|
||||
"text line (if not given, it defaults to 10 characters\n"
|
||||
"and 25%%).\n"
|
||||
"ttb is the number of times a user can be kicked\n"
|
||||
"before it get banned. Don't give ttb to disable\n"
|
||||
" \n"
|
||||
"\037ttb\037 is the number of times a user can be kicked\n"
|
||||
"before it gets banned. Don't give ttb to disable\n"
|
||||
"the ban system once activated."));
|
||||
return true;
|
||||
}
|
||||
@@ -461,8 +465,9 @@ class CommandBSKickColors : public CommandBSKickBase
|
||||
{
|
||||
source.Reply(_("Sets the colors kicker on or off. When enabled, this\n"
|
||||
"option tells the bot to kick users who use colors.\n"
|
||||
"ttb is the number of times a user can be kicked\n"
|
||||
"before it get banned. Don't give ttb to disable\n"
|
||||
" \n"
|
||||
"\037ttb\037 is the number of times a user can be kicked\n"
|
||||
"before it gets banned. Don't give ttb to disable\n"
|
||||
"the ban system once activated."));
|
||||
return true;
|
||||
}
|
||||
@@ -557,8 +562,8 @@ class CommandBSKickFlood : public CommandBSKickBase
|
||||
"the channel using at least \002ln\002 lines in \002secs\002 seconds\n"
|
||||
"(if not given, it defaults to 6 lines in 10 seconds).\n"
|
||||
" \n"
|
||||
"ttb is the number of times a user can be kicked\n"
|
||||
"before it get banned. Don't give ttb to disable\n"
|
||||
"\037ttb\037 is the number of times a user can be kicked\n"
|
||||
"before it gets banned. Don't give ttb to disable\n"
|
||||
"the ban system once activated."));
|
||||
return true;
|
||||
}
|
||||
@@ -588,8 +593,9 @@ class CommandBSKickItalics : public CommandBSKickBase
|
||||
{
|
||||
source.Reply(_("Sets the italics kicker on or off. When enabled, this\n"
|
||||
"option tells the bot to kick users who use italics.\n"
|
||||
"ttb is the number of times a user can be kicked\n"
|
||||
"before it get banned. Don't give ttb to disable\n"
|
||||
" \n"
|
||||
"\037ttb\037 is the number of times a user can be kicked\n"
|
||||
"before it gets banned. Don't give ttb to disable\n"
|
||||
"the ban system once activated."));
|
||||
return true;
|
||||
}
|
||||
@@ -673,8 +679,9 @@ class CommandBSKickRepeat : public CommandBSKickBase
|
||||
"option tells the bot to kick users who are repeating\n"
|
||||
"themselves \002num\002 times (if num is not given, it\n"
|
||||
"defaults to 3).\n"
|
||||
"ttb is the number of times a user can be kicked\n"
|
||||
"before it get banned. Don't give ttb to disable\n"
|
||||
" \n"
|
||||
"\037ttb\037 is the number of times a user can be kicked\n"
|
||||
"before it gets banned. Don't give ttb to disable\n"
|
||||
"the ban system once activated."));
|
||||
return true;
|
||||
}
|
||||
@@ -704,8 +711,9 @@ class CommandBSKickReverses : public CommandBSKickBase
|
||||
{
|
||||
source.Reply(_("Sets the reverses kicker on or off. When enabled, this\n"
|
||||
"option tells the bot to kick users who use reverses.\n"
|
||||
"ttb is the number of times a user can be kicked\n"
|
||||
"before it get banned. Don't give ttb to disable\n"
|
||||
" \n"
|
||||
"\037ttb\037 is the number of times a user can be kicked\n"
|
||||
"before it gets banned. Don't give ttb to disable\n"
|
||||
"the ban system once activated."));
|
||||
return true;
|
||||
}
|
||||
@@ -735,8 +743,9 @@ class CommandBSKickUnderlines : public CommandBSKickBase
|
||||
{
|
||||
source.Reply(_("Sets the underlines kicker on or off. When enabled, this\n"
|
||||
"option tells the bot to kick users who use underlines.\n"
|
||||
"ttb is the number of times a user can be kicked\n"
|
||||
"before it get banned. Don't give ttb to disable\n"
|
||||
" \n"
|
||||
"\037ttb\037 is the number of times a user can be kicked\n"
|
||||
"before it gets banned. Don't give ttb to disable\n"
|
||||
"the ban system once activated."));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -550,7 +550,7 @@ class CommandCSAccess : public Command
|
||||
"highest level entry in the access list."));
|
||||
if (!Config->GetModule("chanserv")->Get<bool>("disallow_channel_access"))
|
||||
source.Reply(_("The given mask may also be a channel, which will use the\n"
|
||||
"access list from the other channel up to the given \037level\037"));
|
||||
"access list from the other channel up to the given \037level\037."));
|
||||
source.Reply(" ");
|
||||
source.Reply(_("The \002ACCESS DEL\002 command removes the given nick from the\n"
|
||||
"access list. If a list of entry numbers is given, those\n"
|
||||
|
||||
@@ -812,9 +812,9 @@ class CommandCSModes : public Command
|
||||
if (!m.second.empty())
|
||||
{
|
||||
if (m.first)
|
||||
return Anope::printf(_("Gives you or the specific nick %s status on a channel"), m.second.c_str());
|
||||
return Anope::printf(_("Gives you or the specified nick %s status on a channel"), m.second.c_str());
|
||||
else
|
||||
return Anope::printf(_("Removes %s status from you or the specific on a channel"), m.second.c_str());
|
||||
return Anope::printf(_("Removes %s status from you or the specified nick on a channel"), m.second.c_str());
|
||||
}
|
||||
else
|
||||
return "";
|
||||
|
||||
@@ -98,7 +98,8 @@ class CommandCSRegister : public Command
|
||||
BotInfo *bi;
|
||||
Anope::string cmd;
|
||||
if (Command::FindCommandFromService("chanserv/access", bi, cmd))
|
||||
source.Reply(_("See the \002%s002 command (\002%s%s HELP ACCESS\002) for\n"
|
||||
source.Reply(_(" \n"
|
||||
"See the \002%s\002 command (\002%s%s HELP ACCESS\002) for\n"
|
||||
"information on giving a subset of these privileges to\n"
|
||||
"other channel users.\n"), cmd.c_str(), Config->StrictPrivmsg.c_str(), bi->nick.c_str());
|
||||
source.Reply(_(" \n"
|
||||
|
||||
@@ -128,7 +128,7 @@ class CommandCSSuspend : public Command
|
||||
"May be cancelled by using the \002UNSUSPEND\002\n"
|
||||
"command to preserve all previous channel data/settings.\n"
|
||||
"If an expiry is given the channel will be unsuspended after\n"
|
||||
"that period of time, else the default expiry from the"
|
||||
"that period of time, else the default expiry from the\n"
|
||||
"configuration is used.\n"
|
||||
" \n"
|
||||
"Reason may be required on certain networks."));
|
||||
|
||||
@@ -128,7 +128,7 @@ class CommandMSList : public Command
|
||||
std::vector<Anope::string> replies;
|
||||
list.Process(replies);
|
||||
|
||||
source.Reply(_("Memos for %s."), ci ? ci->name.c_str() : source.GetNick().c_str());
|
||||
source.Reply(_("Memos for %s:"), ci ? ci->name.c_str() : source.GetNick().c_str());
|
||||
for (unsigned i = 0; i < replies.size(); ++i)
|
||||
source.Reply(replies[i]);
|
||||
}
|
||||
|
||||
@@ -244,6 +244,7 @@ class CommandMSSet : public Command
|
||||
}
|
||||
else if (subcommand.equals_ci("NOTIFY"))
|
||||
source.Reply(_("Syntax: \002NOTIFY {ON | LOGON | NEW | MAIL | NOMAIL | OFF}\002\n"
|
||||
" \n"
|
||||
"Changes when you will be notified about new memos:\n"
|
||||
" \n"
|
||||
" ON You will be notified of memos when you log on,\n"
|
||||
@@ -276,8 +277,9 @@ class CommandMSSet : public Command
|
||||
"adding \002HARD\002 has the opposite effect, allowing the user to\n"
|
||||
"change the limit (even if a previous limit was set with\n"
|
||||
"\002HARD\002).\n"
|
||||
" \n"
|
||||
"This use of the \002SET LIMIT\002 command is limited to \002Services\002\n"
|
||||
"\002Admins\002. Other users may only enter a limit for themselves\n"
|
||||
"\002Operators\002. Other users may only enter a limit for themselves\n"
|
||||
"or a channel on which they have such privileges, may not\n"
|
||||
"remove their limit, may not set a limit above %d, and may\n"
|
||||
"not set a hard limit."), max_memos);
|
||||
|
||||
@@ -209,7 +209,7 @@ class CommandNSSetHide : public Command
|
||||
"being displayed when someone does a %s \002INFO\002 on your\n"
|
||||
"nick. You can hide your E-mail address (\002EMAIL\002), last seen\n"
|
||||
"user@host mask (\002USERMASK\002), your services access status\n"
|
||||
"(\002STATUS\002) and last quit message (\002QUIT\002).\n"
|
||||
"(\002STATUS\002) and last quit message (\002QUIT\002).\n"
|
||||
"The second parameter specifies whether the information should\n"
|
||||
"be displayed (\002OFF\002) or hidden (\002ON\002)."), source.service->nick.c_str());
|
||||
return true;
|
||||
@@ -238,7 +238,7 @@ class CommandNSSASetHide : public CommandNSSetHide
|
||||
"being displayed when someone does a %s \002INFO\002 on the\n"
|
||||
"nick. You can hide the E-mail address (\002EMAIL\002), last seen\n"
|
||||
"user@host mask (\002USERMASK\002), the services access status\n"
|
||||
"(\002STATUS\002) and last quit message (\002QUIT\002).\n"
|
||||
"(\002STATUS\002) and last quit message (\002QUIT\002).\n"
|
||||
"The second parameter specifies whether the information should\n"
|
||||
"be displayed (\002OFF\002) or hidden (\002ON\002)."), source.service->nick.c_str());
|
||||
return true;
|
||||
|
||||
@@ -68,7 +68,7 @@ class NSRecoverRequest : public IdentifyRequest
|
||||
}
|
||||
|
||||
u->SendMessage(source.service, _("This nickname has been recovered by %s. If you did not do\n"
|
||||
"this then %s may have your password, and you should change it.\n"),
|
||||
"this then %s may have your password, and you should change it."),
|
||||
source.GetNick().c_str(), source.GetNick().c_str());
|
||||
|
||||
Anope::string buf = source.command.upper() + " command used by " + source.GetNick();
|
||||
|
||||
@@ -702,14 +702,14 @@ class CommandNSSetKill : public Command
|
||||
this->SendSyntax(source);
|
||||
source.Reply(" ");
|
||||
source.Reply(_("Turns the automatic protection option for your nick\n"
|
||||
"on or off. With protection on, if another user\n"
|
||||
"on or off. With protection on, if another user\n"
|
||||
"tries to take your nick, they will be given one minute to\n"
|
||||
"change to another nick, after which %s will forcibly change\n"
|
||||
"their nick.\n"
|
||||
" \n"
|
||||
"If you select \002QUICK\002, the user will be given only 20 seconds\n"
|
||||
"to change nicks instead of the usual 60. If you select\n"
|
||||
"\002IMMED\002, user's nick will be changed immediately \037without\037 being\n"
|
||||
"to change nicks instead of the usual 60. If you select\n"
|
||||
"\002IMMED\002, the user's nick will be changed immediately \037without\037 being\n"
|
||||
"warned first or given a chance to change their nick; please\n"
|
||||
"do not use this option unless necessary. Also, your\n"
|
||||
"network's administrators may have disabled this option."), source.service->nick.c_str());
|
||||
|
||||
@@ -17,7 +17,7 @@ class CommandNSStatus : public Command
|
||||
CommandNSStatus(Module *creator) : Command(creator, "nickserv/status", 0, 16)
|
||||
{
|
||||
this->SetDesc(_("Returns the owner status of the given nickname"));
|
||||
this->SetSyntax(_("\037nickname\037"));
|
||||
this->SetSyntax(_("[\037nickname\037]"));
|
||||
this->AllowUnregistered(true);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,9 @@ class CommandNSStatus : public Command
|
||||
" 0 - no such user online \002or\002 nickname not registered\n"
|
||||
" 1 - user not recognized as nickname's owner\n"
|
||||
" 2 - user recognized as owner via access list only\n"
|
||||
" 3 - user recognized as owner via password identification"));
|
||||
" 3 - user recognized as owner via password identification\n"
|
||||
" \n"
|
||||
"If no nickname is given, your status will be returned."));
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -94,7 +94,7 @@ class CommandOSChanKill : public Command
|
||||
this->SendSyntax(source);
|
||||
source.Reply(" ");
|
||||
source.Reply(_("Puts an AKILL for every nick on the specified channel. It\n"
|
||||
"uses the entire and complete real ident@host for every nick,\n"
|
||||
"uses the entire real ident@host for every nick, and\n"
|
||||
"then enforces the AKILL."));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ class DefConTimeout : public Timer
|
||||
if (!DConfig.offmessage.empty())
|
||||
GlobalService->SendGlobal(NULL, "", DConfig.offmessage);
|
||||
else
|
||||
GlobalService->SendGlobal(NULL, "", Anope::printf(Language::Translate(_("The Defcon Level is now at Level: \002%d\002")), DConfig.defaultlevel));
|
||||
GlobalService->SendGlobal(NULL, "", Anope::printf(Language::Translate(_("The Defcon level is now at: \002%d\002")), DConfig.defaultlevel));
|
||||
|
||||
if (!DConfig.message.empty())
|
||||
GlobalService->SendGlobal(NULL, "", DConfig.message);
|
||||
@@ -155,13 +155,13 @@ class CommandOSDefcon : public Command
|
||||
if (DConfig.Check(DEFCON_NO_MLOCK_CHANGE))
|
||||
source.Reply(_("* No mode lock changes"));
|
||||
if (DConfig.Check(DEFCON_FORCE_CHAN_MODES) && !DConfig.chanmodes.empty())
|
||||
source.Reply(_("* Force Chan Modes (%s) to be set on all channels"), DConfig.chanmodes.c_str());
|
||||
source.Reply(_("* Force channel modes (%s) to be set on all channels"), DConfig.chanmodes.c_str());
|
||||
if (DConfig.Check(DEFCON_REDUCE_SESSION))
|
||||
source.Reply(_("* Use the reduced session limit of %d"), DConfig.sessionlimit);
|
||||
if (DConfig.Check(DEFCON_NO_NEW_CLIENTS))
|
||||
source.Reply(_("* Kill any NEW clients connecting"));
|
||||
source.Reply(_("* Kill any new clients connecting"));
|
||||
if (DConfig.Check(DEFCON_OPER_ONLY))
|
||||
source.Reply(_("* Ignore any non-opers with message"));
|
||||
source.Reply(_("* Ignore non-opers with a message"));
|
||||
if (DConfig.Check(DEFCON_SILENT_OPER_ONLY))
|
||||
source.Reply(_("* Silently ignore non-opers"));
|
||||
if (DConfig.Check(DEFCON_AKILL_NEW_CLIENTS))
|
||||
|
||||
@@ -256,7 +256,7 @@ class OSInfo : public Module
|
||||
for (unsigned i = 0; i < (*oi)->size(); ++i)
|
||||
{
|
||||
OperInfo *o = (*oi)->at(i);
|
||||
info[_("Oper Info")] = Anope::printf(_("(By %s on %s) %s"), o->adder.c_str(), Anope::strftime(o->created, source.GetAccount(), true).c_str(), o->info.c_str());
|
||||
info[_("Oper Info")] = Anope::printf(_("(by %s on %s) %s"), o->adder.c_str(), Anope::strftime(o->created, source.GetAccount(), true).c_str(), o->info.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -101,6 +101,7 @@ class CommandOSChanList : public Command
|
||||
source.Reply(" ");
|
||||
source.Reply(_("Lists all channels currently in use on the IRC network, whether they\n"
|
||||
"are registered or not.\n"
|
||||
" \n"
|
||||
"If \002pattern\002 is given, lists only channels that match it. If a nickname\n"
|
||||
"is given, lists only the channels the user using it is on. If SECRET is\n"
|
||||
"specified, lists only channels matching \002pattern\002 that have the +s or\n"
|
||||
|
||||
@@ -125,7 +125,7 @@ class CommandOSMode : public Command
|
||||
source.Reply(_("Allows Services Operators to change modes for any channel.\n"
|
||||
"Parameters are the same as for the standard /MODE command.\n"
|
||||
"Alternatively, CLEAR may be given to clear all modes on the channel.\n"
|
||||
"If CLEAR ALL is given then all modes, including user status, is removed.\n"));
|
||||
"If CLEAR ALL is given then all modes, including user status, is removed."));
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -29,7 +29,7 @@ class CommandOSModInfo : public Command
|
||||
Module *m = ModuleManager::FindModule(file);
|
||||
if (m)
|
||||
{
|
||||
source.Reply(_("Module: \002%s\002 Version: \002%s\002 Author: \002%s\002 loaded: \002%s\002"), m->name.c_str(), !m->version.empty() ? m->version.c_str() : "?", !m->author.empty() ? m->author.c_str() : "Unknown", Anope::strftime(m->created).c_str());
|
||||
source.Reply(_("Module: \002%s\002 Version: \002%s\002 Author: \002%s\002 Loaded: \002%s\002"), m->name.c_str(), !m->version.empty() ? m->version.c_str() : "?", !m->author.empty() ? m->author.c_str() : "Unknown", Anope::strftime(m->created).c_str());
|
||||
if (Anope::Debug)
|
||||
source.Reply(_(" Loaded at: %p"), m->handle);
|
||||
|
||||
|
||||
@@ -165,8 +165,7 @@ class CommandOSModUnLoad : public Command
|
||||
{
|
||||
this->SendSyntax(source);
|
||||
source.Reply(" ");
|
||||
source.Reply(_("This command unloads the module named \037modname\037 from the modules\n"
|
||||
"directory."));
|
||||
source.Reply(_("This command unloads the module named \037modname\037."));
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -266,7 +266,7 @@ class CommandOSLogonNews : public NewsBase
|
||||
source.Reply(" ");
|
||||
source.Reply(_("Edits or displays the list of logon news messages. When a\n"
|
||||
"user connects to the network, these messages will be sent\n"
|
||||
"to them. (However, no more than \002%d\002 messages will be\n"
|
||||
"to them. However, no more than \002%d\002 messages will be\n"
|
||||
"sent in order to avoid flooding the user. If there are\n"
|
||||
"more news messages, only the most recent will be sent."),
|
||||
Config->GetModule(this->owner)->Get<unsigned>("newscount", "3"));
|
||||
@@ -293,7 +293,7 @@ class CommandOSOperNews : public NewsBase
|
||||
source.Reply(" ");
|
||||
source.Reply(_("Edits or displays the list of oper news messages. When a\n"
|
||||
"user opers up (with the /OPER command), these messages will\n"
|
||||
"be sent to them. (However, no more than \002%d\002 messages will\n"
|
||||
"be sent to them. However, no more than \002%d\002 messages will\n"
|
||||
"be sent in order to avoid flooding the user. If there are\n"
|
||||
"more news messages, only the most recent will be sent."),
|
||||
Config->GetModule(this->owner)->Get<unsigned>("newscount", "3"));
|
||||
@@ -320,7 +320,7 @@ class CommandOSRandomNews : public NewsBase
|
||||
source.Reply(" ");
|
||||
source.Reply(_("Edits or displays the list of random news messages. When a\n"
|
||||
"user connects to the network, one (and only one) of the\n"
|
||||
"random news will be randomly chosen and sent to them.\n"));
|
||||
"random news will be randomly chosen and sent to them."));
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -44,7 +44,7 @@ class CommandOSReload : public Command
|
||||
source.Reply(_("Causes Services to reload the configuration file. Note that\n"
|
||||
"some directives still need the restart of the Services to\n"
|
||||
"take effect (such as Services' nicknames, activation of the\n"
|
||||
"session limitation, etc.)"));
|
||||
"session limitation, etc.)."));
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -583,7 +583,7 @@ class CommandOSException : public Command
|
||||
"all clients attempting to connect from that host will be\n"
|
||||
"killed. Before the user is killed, they are notified, of a\n"
|
||||
"source of help regarding session limiting. The content of\n"
|
||||
"this notice is a config setting.\n"));
|
||||
"this notice is a config setting."));
|
||||
source.Reply(" ");
|
||||
source.Reply(_("\002EXCEPTION ADD\002 adds the given host mask to the exception list.\n"
|
||||
"Note that \002nick!user@host\002 and \002user@host\002 masks are invalid!\n"
|
||||
|
||||
@@ -178,12 +178,12 @@ class CommandOSSet : public Command
|
||||
return this->DoList(source);
|
||||
else if (option.equals_ci("READONLY"))
|
||||
return this->DoSetReadOnly(source, params);
|
||||
else if (option.equals_ci("SUPERADMIN"))
|
||||
return this->DoSetSuperAdmin(source, params);
|
||||
else if (option.equals_ci("DEBUG"))
|
||||
return this->DoSetDebug(source, params);
|
||||
else if (option.equals_ci("NOEXPIRE"))
|
||||
return this->DoSetNoExpire(source, params);
|
||||
else if (option.equals_ci("SUPERADMIN"))
|
||||
return this->DoSetSuperAdmin(source, params);
|
||||
else
|
||||
this->OnSyntaxError(source, "");
|
||||
|
||||
@@ -205,8 +205,9 @@ class CommandOSSet : public Command
|
||||
" LIST List the options"));
|
||||
}
|
||||
else if (subcommand.equals_ci("LIST"))
|
||||
source.Reply(_("Syntax: \002LIST\n"
|
||||
"Display the various %s settings"), source.service->nick.c_str());
|
||||
source.Reply(_("Syntax: \002LIST\002\n"
|
||||
" \n"
|
||||
"Display the various %s settings."), source.service->nick.c_str());
|
||||
else if (subcommand.equals_ci("READONLY"))
|
||||
source.Reply(_("Syntax: \002READONLY {ON | OFF}\002\n"
|
||||
" \n"
|
||||
@@ -220,18 +221,29 @@ class CommandOSSet : public Command
|
||||
"or restarted.\n"
|
||||
" \n"
|
||||
"This option is equivalent to the command-line option\n"
|
||||
"\002-readonly\002."));
|
||||
"\002--readonly\002."));
|
||||
else if (subcommand.equals_ci("DEBUG"))
|
||||
source.Reply(_("Syntax: \002DEBUG {ON | OFF}\002\n"
|
||||
" \n"
|
||||
"Sets debug mode on or off.\n"
|
||||
" \n"
|
||||
"This option is equivalent to the command-line option\n"
|
||||
"\002--debug\002."));
|
||||
else if (subcommand.equals_ci("NOEXPIRE"))
|
||||
source.Reply(_("Syntax: \002NOEXPIRE {ON | OFF}\002\n"
|
||||
" \n"
|
||||
"Sets no expire mode on or off. In no expire mode, nicks,\n"
|
||||
"channels, akills and exceptions won't expire until the\n"
|
||||
"option is unset.\n"
|
||||
" \n"
|
||||
"This option is equivalent to the command-line option\n"
|
||||
"\002-noexpire\002."));
|
||||
"\002--noexpire\002."));
|
||||
else if (subcommand.equals_ci("SUPERADMIN"))
|
||||
source.Reply(_("Syntax: \002SUPERADMIN {ON | OFF}\002\n"
|
||||
" \n"
|
||||
"Setting this will grant you extra privileges such as the\n"
|
||||
"ability to be \"founder\" on all channel's etc...\n"
|
||||
" \n"
|
||||
"This option is \002not\002 persistent, and should only be used when\n"
|
||||
"needed, and set back to OFF when no longer needed."));
|
||||
else
|
||||
|
||||
@@ -241,8 +241,7 @@ class CommandOSStats : public Command
|
||||
" \n"
|
||||
"The \002HASH\002 option displays information about the hash maps.\n"
|
||||
" \n"
|
||||
"The \002ALL\002 displays the user and uptime statistics, and\n"
|
||||
"everything you'd see with the \002UPLINK\002 option."));
|
||||
"The \002ALL\002 option displays all of the above statistics."));
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -156,10 +156,10 @@ class BotServCore : public Module
|
||||
source.Reply(_("\002%s\002 allows you to have a bot on your own channel.\n"
|
||||
"It has been created for users that can't host or\n"
|
||||
"configure a bot, or for use on networks that don't\n"
|
||||
"allow user bots. Available commands are listed \n"
|
||||
"allow user bots. Available commands are listed\n"
|
||||
"below; to use them, type \002%s%s \037command\037\002. For\n"
|
||||
"more information on a specific command, type\n"
|
||||
"\002%s%s %s \037command\037\002.\n "),
|
||||
"\002%s%s %s \037command\037\002.\n"),
|
||||
BotServ->nick.c_str(), Config->StrictPrivmsg.c_str(), BotServ->nick.c_str(),
|
||||
Config->StrictPrivmsg.c_str(), BotServ->nick.c_str(), source.command.c_str());
|
||||
}
|
||||
|
||||
@@ -238,7 +238,7 @@ class ChanServCore : public Module, public ChanServService
|
||||
"who is allowed channel operator privileges. Available\n"
|
||||
"commands are listed below; to use them, type\n"
|
||||
"\002%s%s \037command\037\002. For more information on a\n"
|
||||
"specific command, type \002%s%s HELP \037command\037\002.\n "),
|
||||
"specific command, type \002%s%s HELP \037command\037\002.\n"),
|
||||
ChanServ->nick.c_str(), ChanServ->nick.c_str(), Config->StrictPrivmsg.c_str(), ChanServ->nick.c_str(), Config->StrictPrivmsg.c_str(), ChanServ->nick.c_str(), ChanServ->nick.c_str(), source.command.c_str());
|
||||
return EVENT_CONTINUE;
|
||||
}
|
||||
|
||||
@@ -429,13 +429,13 @@ class NickServCore : public Module, public NickServService
|
||||
"commands allow for registration and maintenance of\n"
|
||||
"nicknames; to use them, type \002%s%s \037command\037\002.\n"
|
||||
"For more information on a specific command, type\n"
|
||||
"\002%s%s %s \037command\037\002.\n "), NickServ->nick.c_str(), Config->StrictPrivmsg.c_str(), NickServ->nick.c_str(), Config->StrictPrivmsg.c_str(), NickServ->nick.c_str(), source.command.c_str());
|
||||
"\002%s%s %s \037command\037\002.\n"), NickServ->nick.c_str(), Config->StrictPrivmsg.c_str(), NickServ->nick.c_str(), Config->StrictPrivmsg.c_str(), NickServ->nick.c_str(), source.command.c_str());
|
||||
else
|
||||
source.Reply(_("\002%s\002 allows you to register an account.\n"
|
||||
"The following commands allow for registration and maintenance of\n"
|
||||
"accounts; to use them, type \002%s%s \037command\037\002.\n"
|
||||
"For more information on a specific command, type\n"
|
||||
"\002%s%s %s \037command\037\002.\n "), NickServ->nick.c_str(), Config->StrictPrivmsg.c_str(), NickServ->nick.c_str(), Config->StrictPrivmsg.c_str(), NickServ->nick.c_str(), source.command.c_str());
|
||||
"\002%s%s %s \037command\037\002.\n"), NickServ->nick.c_str(), Config->StrictPrivmsg.c_str(), NickServ->nick.c_str(), Config->StrictPrivmsg.c_str(), NickServ->nick.c_str(), source.command.c_str());
|
||||
return EVENT_CONTINUE;
|
||||
}
|
||||
|
||||
@@ -451,7 +451,7 @@ class NickServCore : public Module, public NickServService
|
||||
time_t nickserv_expire = Config->GetModule(this)->Get<time_t>("expire");
|
||||
if (nickserv_expire >= 86400)
|
||||
source.Reply(_(" \n"
|
||||
"Accounts that are not used anymore are subject to \n"
|
||||
"Accounts that are not used anymore are subject to\n"
|
||||
"the automatic expiration, i.e. they will be deleted\n"
|
||||
"after %d days if not used."), nickserv_expire / 86400);
|
||||
source.Reply(_(" \n"
|
||||
|
||||
@@ -6,7 +6,7 @@ class CommandCSSetChanstats : public Command
|
||||
public:
|
||||
CommandCSSetChanstats(Module *creator) : Command(creator, "chanserv/set/chanstats", 2, 2)
|
||||
{
|
||||
this->SetDesc(_("Turn chanstat statistics on or off"));
|
||||
this->SetDesc(_("Turn chanstats statistics on or off"));
|
||||
this->SetSyntax(_("\037channel\037 {ON | OFF}"));
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ class CommandNSSetChanstats : public Command
|
||||
public:
|
||||
CommandNSSetChanstats(Module *creator, const Anope::string &sname = "nickserv/set/chanstats", size_t min = 1 ) : Command(creator, sname, min, min + 1)
|
||||
{
|
||||
this->SetDesc(_("Turn chanstat statistic on or off"));
|
||||
this->SetDesc(_("Turn chanstats statistics on or off"));
|
||||
this->SetSyntax(_("{ON | OFF}"));
|
||||
}
|
||||
void Run(CommandSource &source, const Anope::string &user, const Anope::string ¶m)
|
||||
@@ -81,13 +81,13 @@ class CommandNSSetChanstats : public Command
|
||||
{
|
||||
Log(na->nc == source.GetAccount() ? LOG_COMMAND : LOG_ADMIN, source, this) << "to enable chanstats for " << na->nc->display;
|
||||
na->nc->Extend<bool>("NS_STATS");
|
||||
source.Reply(_("Chanstat statistics are now enabled for your nick."));
|
||||
source.Reply(_("Chanstats statistics are now enabled for your nick."));
|
||||
}
|
||||
else if (param.equals_ci("OFF"))
|
||||
{
|
||||
Log(na->nc == source.GetAccount() ? LOG_COMMAND : LOG_ADMIN, source, this) << "to disable chanstats for " << na->nc->display;
|
||||
na->nc->Shrink<bool>("NS_STATS");
|
||||
source.Reply(_("Chanstat statistics are now disabled for your nick."));
|
||||
source.Reply(_("Chanstats statistics are now disabled for your nick."));
|
||||
}
|
||||
else
|
||||
this->OnSyntaxError(source, "CHANSTATS");
|
||||
|
||||
Reference in New Issue
Block a user