Rename a few “hostname” into “address”, regarding last commit
ref #3273
This commit is contained in:
@@ -84,7 +84,7 @@ class Database
|
|||||||
|
|
||||||
struct RemoteJid: Column<std::string> { static constexpr auto name = "remote"; };
|
struct RemoteJid: Column<std::string> { static constexpr auto name = "remote"; };
|
||||||
|
|
||||||
struct Address: Column<std::string> { static constexpr auto name = "hostname_"; };
|
struct Address: Column<std::string> { static constexpr auto name = "address_"; };
|
||||||
|
|
||||||
using MucLogLineTable = Table<Id, Uuid, Owner, IrcChanName, IrcServerName, Date, Body, Nick>;
|
using MucLogLineTable = Table<Id, Uuid, Owner, IrcChanName, IrcServerName, Date, Body, Nick>;
|
||||||
using MucLogLine = MucLogLineTable::RowType;
|
using MucLogLine = MucLogLineTable::RowType;
|
||||||
|
|||||||
@@ -228,12 +228,12 @@ void ConfigureIrcServerStep1(XmppComponent&, AdhocSession& session, XmlNode& com
|
|||||||
instructions.set_inner("Edit the form, to configure the settings of the IRC server " + server_domain);
|
instructions.set_inner("Edit the form, to configure the settings of the IRC server " + server_domain);
|
||||||
|
|
||||||
{
|
{
|
||||||
XmlSubNode hostname(x, "field");
|
XmlSubNode field(x, "field");
|
||||||
hostname["var"] = "hostname";
|
field["var"] = "hostname";
|
||||||
hostname["type"] = "text-single";
|
field["type"] = "text-single";
|
||||||
hostname["label"] = "Address";
|
field["label"] = "Address";
|
||||||
hostname["desc"] = "The hostname (or IP) to connect to.";
|
field["desc"] = "The address (hostname or IP) to connect to.";
|
||||||
XmlSubNode value(hostname, "value");
|
XmlSubNode value(field, "value");
|
||||||
if (options.col<Database::Address>().empty())
|
if (options.col<Database::Address>().empty())
|
||||||
value.set_inner(server_domain);
|
value.set_inner(server_domain);
|
||||||
else
|
else
|
||||||
@@ -389,7 +389,7 @@ void ConfigureIrcServerStep2(XmppComponent&, AdhocSession& session, XmlNode& com
|
|||||||
const XmlNode* value = field->get_child("value", "jabber:x:data");
|
const XmlNode* value = field->get_child("value", "jabber:x:data");
|
||||||
const std::vector<const XmlNode*> values = field->get_children("value", "jabber:x:data");
|
const std::vector<const XmlNode*> values = field->get_children("value", "jabber:x:data");
|
||||||
|
|
||||||
if (field->get_tag("var") == "hostname")
|
if (field->get_tag("var") == "address")
|
||||||
{
|
{
|
||||||
options.col<Database::Address>() = value->get_inner();
|
options.col<Database::Address>() = value->get_inner();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user