mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Rename <options:hostintopic> to <options:maskintopic>.
This option stores the user *mask* not the user host so the old name is incorrect.
This commit is contained in:
parent
6a9b215c04
commit
e9271fcb49
@ -609,9 +609,9 @@
|
|||||||
# falling back to IPv4 otherwise.
|
# falling back to IPv4 otherwise.
|
||||||
defaultbind="auto"
|
defaultbind="auto"
|
||||||
|
|
||||||
# hostintopic: If enabled, channels will show the host of the topic setter
|
# maskintopic: If enabled then channels will show the nick!user@host of the topic
|
||||||
# in the topic. If set to no, it will only show the nick of the topic setter.
|
# setter in the topic instead of just the nick of the topic setter.
|
||||||
hostintopic="yes"
|
maskintopic="yes"
|
||||||
|
|
||||||
# pingwarning: If a server does not respond to a ping within this period,
|
# pingwarning: If a server does not respond to a ping within this period,
|
||||||
# it will send a notice to opers with snomask +l informing that the server
|
# it will send a notice to opers with snomask +l informing that the server
|
||||||
|
@ -490,7 +490,7 @@ public:
|
|||||||
size_t SoftLimit;
|
size_t SoftLimit;
|
||||||
|
|
||||||
/** Whether to store the full nick!duser\@dhost as a topic setter instead of just their nick. */
|
/** Whether to store the full nick!duser\@dhost as a topic setter instead of just their nick. */
|
||||||
bool FullHostInTopic;
|
bool MaskInTopic;
|
||||||
|
|
||||||
/** Whether to disable stacking snotices when multiple identical messages are sent. */
|
/** Whether to disable stacking snotices when multiple identical messages are sent. */
|
||||||
bool NoSnoticeStack;
|
bool NoSnoticeStack;
|
||||||
|
@ -61,7 +61,7 @@ void Channel::SetTopic(User* u, const std::string& ntopic, time_t topicts, const
|
|||||||
|
|
||||||
// Always update setter and set time
|
// Always update setter and set time
|
||||||
if (!setter)
|
if (!setter)
|
||||||
setter = ServerInstance->Config->FullHostInTopic ? &u->GetMask() : &u->nick;
|
setter = ServerInstance->Config->MaskInTopic ? &u->GetMask() : &u->nick;
|
||||||
this->setby.assign(*setter, 0, ServerInstance->Config->Limits.GetMaxMask());
|
this->setby.assign(*setter, 0, ServerInstance->Config->Limits.GetMaxMask());
|
||||||
this->topicset = topicts;
|
this->topicset = topicts;
|
||||||
|
|
||||||
|
@ -362,7 +362,7 @@ void ServerConfig::Fill()
|
|||||||
// Read the <options> config.
|
// Read the <options> config.
|
||||||
const auto& options = ConfValue("options");
|
const auto& options = ConfValue("options");
|
||||||
DefaultModes = options->getString("defaultmodes", "not");
|
DefaultModes = options->getString("defaultmodes", "not");
|
||||||
FullHostInTopic = options->getBool("hostintopic");
|
MaskInTopic = options->getBool("maskintopic", options->getBool("hostintopic"));
|
||||||
NoSnoticeStack = options->getBool("nosnoticestack");
|
NoSnoticeStack = options->getBool("nosnoticestack");
|
||||||
SyntaxHints = options->getBool("syntaxhints");
|
SyntaxHints = options->getBool("syntaxhints");
|
||||||
XLineMessage = options->getString("xlinemessage", "You're banned!", 1);
|
XLineMessage = options->getString("xlinemessage", "You're banned!", 1);
|
||||||
|
@ -45,7 +45,7 @@ CmdResult CommandFTopic::Handle(User* user, Params& params)
|
|||||||
const std::string& newtopic = params.back();
|
const std::string& newtopic = params.back();
|
||||||
|
|
||||||
// If there is a setter in the message use that, otherwise use the message source
|
// If there is a setter in the message use that, otherwise use the message source
|
||||||
const std::string& setter = ((params.size() > 4) ? params[3] : (ServerInstance->Config->FullHostInTopic ? user->GetMask() : user->nick));
|
const std::string& setter = ((params.size() > 4) ? params[3] : (ServerInstance->Config->MaskInTopic ? user->GetMask() : user->nick));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If the topics were updated at the exact same second, accept
|
* If the topics were updated at the exact same second, accept
|
||||||
|
Loading…
x
Reference in New Issue
Block a user