1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 18:14:47 +02:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Sadie Powell 258daf6c26 Release 2.1.3. 2024-03-04 10:42:12 +00:00
Sadie Powell 57e8b4305e Update the changelogs. 2024-03-04 10:41:31 +00:00
Sadie Powell db4f845fe7 Add NickAlias::GetVhostMask for getting the vident@vhost. 2024-03-04 10:36:10 +00:00
14 changed files with 37 additions and 74 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
Anope Version 2.1.3-git
-----------------------
Anope Version 2.1.3
-------------------
Added alternate command suggestions when a user runs an invalid command.
Added support for the IRCv3 +draft/channel-context tag.
Added support for the IRCv3 +draft/reply tag.
Allow using more than one fingerprint in an oper block.
+3 -2
View File
@@ -1,5 +1,6 @@
Anope Version 2.1.3-git
-----------------------
Anope Version 2.1.3
-------------------
Added options:didyoumeandifference.
Added support for multiple SSL fingerprints in oper:certfp.
Added the chanserv/cert oper privilege for modifying other user's certificate lists.
Changed networkinfo:chanlen to default to 32 if not set.
+5
View File
@@ -85,6 +85,11 @@ public:
*/
const Anope::string &GetVhostHost() const;
/** Retrieve the vhost mask
* @param the mask
*/
Anope::string GetVhostMask() const;
/** Retrieve the vhost creator
* @return the creator
*/
+2 -18
View File
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Anope\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-29 21:53+0000\n"
"PO-Revision-Date: 2024-02-29 21:53+0000\n"
"POT-Creation-Date: 2024-03-04 10:34+0000\n"
"PO-Revision-Date: 2024-03-04 10:34+0000\n"
"Last-Translator: Sadie Powell <sadie@witchery.services>\n"
"Language-Team: English\n"
"Language: en_US\n"
@@ -1939,10 +1939,6 @@ msgstr "All user modes on %s have been synced."
msgid "All vhosts in the group %s have been set to %s."
msgstr "All vhosts in the group %s have been set to %s."
#, c-format
msgid "All vhosts in the group %s have been set to %s@%s."
msgstr "All vhosts in the group %s have been set to %s@%s."
msgid "Allowed to (de)halfop themself"
msgstr "Allowed to (de)halfop themself"
@@ -8076,18 +8072,10 @@ msgstr "VHost"
msgid "VHost for %s set to %s."
msgstr "VHost for %s set to %s."
#, c-format
msgid "VHost for %s set to %s@%s."
msgstr "VHost for %s set to %s@%s."
#, c-format
msgid "VHost for group %s set to %s."
msgstr "VHost for group %s set to %s."
#, c-format
msgid "VHost for group %s set to %s@%s."
msgstr "VHost for group %s set to %s@%s."
msgid "VIEW host"
msgstr "VIEW host"
@@ -8609,10 +8597,6 @@ msgstr "Your vHost has been requested."
msgid "Your vhost of %s is now activated."
msgstr "Your vhost of %s is now activated."
#, c-format
msgid "Your vhost of %s@%s is now activated."
msgstr "Your vhost of %s@%s is now activated."
msgid "Your vhost was removed and the normal cloaking restored."
msgstr "Your vhost was removed and the normal cloaking restored."
+4 -8
View File
@@ -59,10 +59,8 @@ public:
if (HostServ)
{
if (!na->GetVhostIdent().empty())
u->SendMessage(HostServ, _("Your vhost of \002%s\002@\002%s\002 is now activated."), na->GetVhostIdent().c_str(), na->GetVhostHost().c_str());
else
u->SendMessage(HostServ, _("Your vhost of \002%s\002 is now activated."), na->GetVhostHost().c_str());
u->SendMessage(HostServ, _("Your vhost of \002%s\002 is now activated."),
na->GetVhostMask().c_str());
}
}
}
@@ -107,10 +105,8 @@ public:
if (HostServ)
{
if (!na->GetVhostIdent().empty())
u->SendMessage(HostServ, _("Your vhost of \002%s\002@\002%s\002 is now activated."), na->GetVhostIdent().c_str(), na->GetVhostHost().c_str());
else
u->SendMessage(HostServ, _("Your vhost of \002%s\002 is now activated."), na->GetVhostHost().c_str());
u->SendMessage(HostServ, _("Your vhost of \002%s\002 is now activated."),
na->GetVhostMask().c_str());
}
}
}
+2 -4
View File
@@ -54,10 +54,8 @@ public:
if (na && source.GetAccount() == na->nc && na->HasVhost())
{
this->Sync(na);
if (!na->GetVhostIdent().empty())
source.Reply(_("All vhosts in the group \002%s\002 have been set to \002%s\002@\002%s\002."), source.nc->display.c_str(), na->GetVhostIdent().c_str(), na->GetVhostHost().c_str());
else
source.Reply(_("All vhosts in the group \002%s\002 have been set to \002%s\002."), source.nc->display.c_str(), na->GetVhostHost().c_str());
source.Reply(_("All vhosts in the group \002%s\002 have been set to \002%s\002."),
source.nc->display.c_str(), na->GetVhostMask().c_str());
}
else
source.Reply(HOST_NOT_ASSIGNED);
+2 -8
View File
@@ -72,10 +72,7 @@ public:
ListFormatter::ListEntry entry;
entry["Number"] = stringify(display_counter);
entry["Nick"] = na->nick;
if (!na->GetVhostIdent().empty())
entry["Vhost"] = na->GetVhostIdent() + "@" + na->GetVhostHost();
else
entry["Vhost"] = na->GetVhostHost();
entry["Vhost"] = na->GetVhostMask();
entry["Creator"] = na->GetVhostCreator();
entry["Created"] = Anope::strftime(na->GetVhostCreated(), NULL, true);
list.AddEntry(entry);
@@ -93,10 +90,7 @@ public:
ListFormatter::ListEntry entry;
entry["Number"] = stringify(display_counter);
entry["Nick"] = na->nick;
if (!na->GetVhostIdent().empty())
entry["Vhost"] = na->GetVhostIdent() + "@" + na->GetVhostHost();
else
entry["Vhost"] = na->GetVhostHost();
entry["Vhost"] = na->GetVhostMask();
entry["Creator"] = na->GetVhostCreator();
entry["Created"] = Anope::strftime(na->GetVhostCreated(), NULL, true);
list.AddEntry(entry);
+2 -5
View File
@@ -32,11 +32,8 @@ public:
na = NickAlias::Find(u->Account()->display);
if (na && u->Account() == na->nc && na->HasVhost())
{
if (!na->GetVhostIdent().empty())
source.Reply(_("Your vhost of \002%s\002@\002%s\002 is now activated."), na->GetVhostIdent().c_str(), na->GetVhostHost().c_str());
else
source.Reply(_("Your vhost of \002%s\002 is now activated."), na->GetVhostHost().c_str());
Log(LOG_COMMAND, source, this) << "to enable their vhost of " << (!na->GetVhostIdent().empty() ? na->GetVhostIdent() + "@" : "") << na->GetVhostHost();
source.Reply(_("Your vhost of \002%s\002 is now activated."), na->GetVhostMask().c_str());
Log(LOG_COMMAND, source, this) << "to enable their vhost of " << na->GetVhostMask();
IRCD->SendVhost(u, na->GetVhostIdent(), na->GetVhostHost());
u->vhost = na->GetVhostHost();
if (IRCD->CanSetVIdent && !na->GetVhostIdent().empty())
+2 -8
View File
@@ -87,10 +87,7 @@ public:
na->SetVhost(user, host, source.GetNick());
FOREACH_MOD(OnSetVhost, (na));
if (!user.empty())
source.Reply(_("VHost for \002%s\002 set to \002%s\002@\002%s\002."), nick.c_str(), user.c_str(), host.c_str());
else
source.Reply(_("VHost for \002%s\002 set to \002%s\002."), nick.c_str(), host.c_str());
source.Reply(_("VHost for \002%s\002 set to \002%s\002."), nick.c_str(), na->GetVhostMask().c_str());
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand) override
@@ -194,10 +191,7 @@ public:
na->SetVhost(user, host, source.GetNick());
this->Sync(na);
FOREACH_MOD(OnSetVhost, (na));
if (!user.empty())
source.Reply(_("VHost for group \002%s\002 set to \002%s\002@\002%s\002."), nick.c_str(), user.c_str(), host.c_str());
else
source.Reply(_("VHost for group \002%s\002 set to \002%s\002."), nick.c_str(), host.c_str());
source.Reply(_("VHost for group \002%s\002 set to \002%s\002."), nick.c_str(), na->GetVhostMask().c_str());
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand) override
+1 -6
View File
@@ -102,12 +102,7 @@ public:
if (show_hidden)
{
if (na->HasVhost())
{
if (IRCD->CanSetVIdent && !na->GetVhostIdent().empty())
info[_("VHost")] = na->GetVhostIdent() + "@" + na->GetVhostHost();
else
info[_("VHost")] = na->GetVhostHost();
}
info[_("VHost")] = na->GetVhostMask();
}
FOREACH_MOD(OnNickInfo, (source, na, info, show_hidden));
+1 -6
View File
@@ -22,12 +22,7 @@ bool WebCPanel::HostServ::Request::OnRequest(HTTPProvider *server, const Anope::
}
if (na->HasVhost())
{
if (!na->GetVhostIdent().empty())
replacements["VHOST"] = na->GetVhostIdent() + "@" + na->GetVhostHost();
else
replacements["VHOST"] = na->GetVhostHost();
}
replacements["VHOST"] = na->GetVhostMask();
if (ServiceReference<Command>("Command", "hostserv/request"))
replacements["CAN_REQUEST"] = "YES";
TemplateFileServer page("hostserv/request.html");
+1 -6
View File
@@ -81,12 +81,7 @@ bool WebCPanel::NickServ::Info::OnRequest(HTTPProvider *server, const Anope::str
replacements["EMAIL"] = na->nc->email;
replacements["TIME_REGISTERED"] = Anope::strftime(na->time_registered, na->nc);
if (na->HasVhost())
{
if (!na->GetVhostIdent().empty())
replacements["VHOST"] = na->GetVhostIdent() + "@" + na->GetVhostHost();
else
replacements["VHOST"] = na->GetVhostHost();
}
replacements["VHOST"] = na->GetVhostMask();
Anope::string *greet = na->nc->GetExt<Anope::string>("greet");
if (greet)
replacements["GREET"] = *greet;
+8
View File
@@ -109,6 +109,14 @@ const Anope::string &NickAlias::GetVhostHost() const
return this->vhost_host;
}
Anope::string NickAlias::GetVhostMask() const
{
if (this->GetVhostIdent().empty())
return this->GetVhostIdent();
return this->GetVhostIdent() + "@" + this->GetVhostHost();
}
const Anope::string &NickAlias::GetVhostCreator() const
{
return this->vhost_creator;
+1 -1
View File
@@ -3,4 +3,4 @@
VERSION_MAJOR=2
VERSION_MINOR=1
VERSION_PATCH=3
VERSION_EXTRA="-git"
VERSION_EXTRA=""