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