mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Remove <options:ircumsgprefix> entirely
This commit is contained in:
parent
e4b17fd39b
commit
489ba0ad54
@ -567,11 +567,6 @@
|
||||
# triggers anti-takeover mechanisms of some obsolete bots.
|
||||
cyclehostsfromuser="no"
|
||||
|
||||
# ircumsgprefix: Use undernet-style message prefixing for NOTICE and
|
||||
# PRIVMSG. If enabled, it will add users' prefix to the line, if not,
|
||||
# it will just message the user normally.
|
||||
ircumsgprefix="no"
|
||||
|
||||
# announcets: If set to yes, when the timestamp on a channel changes, all users
|
||||
# in the channel will be sent a NOTICE about it.
|
||||
announcets="yes"
|
||||
|
@ -431,11 +431,6 @@ class CoreExport ServerConfig
|
||||
*/
|
||||
bool CycleHostsFromUser;
|
||||
|
||||
/** If set to true, prefixed channel NOTICEs and PRIVMSGs will have the prefix
|
||||
* added to the outgoing text for undernet style msg prefixing.
|
||||
*/
|
||||
bool UndernetMsgPrefix;
|
||||
|
||||
/** If set to true, the full nick!user\@host will be shown in the TOPIC command
|
||||
* for who set the topic last. If false, only the nick is shown.
|
||||
*/
|
||||
|
@ -55,7 +55,7 @@ ServerConfig::ServerConfig()
|
||||
, Limits(EmptyTag)
|
||||
, NoSnoticeStack(false)
|
||||
{
|
||||
RawLog = HideBans = HideSplits = UndernetMsgPrefix = false;
|
||||
RawLog = HideBans = HideSplits = false;
|
||||
WildcardIPv6 = true;
|
||||
dns_timeout = 5;
|
||||
MaxTargets = 20;
|
||||
@ -413,7 +413,6 @@ void ServerConfig::Fill()
|
||||
GenericOper = security->getBool("genericoper");
|
||||
SyntaxHints = options->getBool("syntaxhints");
|
||||
CycleHostsFromUser = options->getBool("cyclehostsfromuser");
|
||||
UndernetMsgPrefix = options->getBool("ircumsgprefix");
|
||||
FullHostInTopic = options->getBool("hostintopic");
|
||||
MaxTargets = security->getInt("maxtargets", 20, 1, 31);
|
||||
DefaultModes = options->getString("defaultmodes", "not");
|
||||
|
@ -169,14 +169,7 @@ CmdResult MessageCommandBase::HandleMessage(const std::vector<std::string>& para
|
||||
|
||||
if (status)
|
||||
{
|
||||
if (ServerInstance->Config->UndernetMsgPrefix)
|
||||
{
|
||||
chan->WriteAllExcept(user, false, status, except_list, "%s %c%s :%c %s", MessageTypeString[mt], status, chan->name.c_str(), status, text);
|
||||
}
|
||||
else
|
||||
{
|
||||
chan->WriteAllExcept(user, false, status, except_list, "%s %c%s :%s", MessageTypeString[mt], status, chan->name.c_str(), text);
|
||||
}
|
||||
chan->WriteAllExcept(user, false, status, except_list, "%s %c%s :%s", MessageTypeString[mt], status, chan->name.c_str(), text);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user