1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 05:43:13 +02:00

Compare commits

...

7 Commits

Author SHA1 Message Date
Sadie Powell 236affa2a4 Release 2.0.9. 2020-10-22 12:08:50 +01:00
Sadie Powell f8d8104d82 Update the changelog. 2020-10-22 12:07:56 +01:00
Sadie Powell a3c7f716bd Fix the query used by IRC2SQL for updating server information. 2020-10-21 16:26:08 +01:00
Sadie Powell b2b53a1e01 Fix account identifiers conflicting with SQL row identifiers. 2020-10-21 12:20:26 +01:00
Sadie Powell 95f4e29edd Unset the account id before the account name on InspIRCd.
This avoids the id being shown on the logout event.
2020-10-12 17:47:41 +01:00
Sadie Powell cdf147f351 Fix not sending an account id to InspIRCd on SASL.
Also, send the account id first so it shows on the ACCOUNT message.
2020-10-12 17:30:05 +01:00
Sadie Powell 2cf507ed66 Bump for 2.0.9-git. 2020-10-07 13:15:31 +01:00
6 changed files with 22 additions and 6 deletions
+6
View File
@@ -1,3 +1,9 @@
Anope Version 2.0.9
-------------------
Fix a regression from 2.0.8 that prevented serialising to MySQL.
Send account identifiers to InspIRCd on SASL logins too
Fix a query bug in irc2sql.
Anope Version 2.0.8 Anope Version 2.0.8
------------------- -------------------
Add +K channel mode for ircd-hybrid Add +K channel mode for ircd-hybrid
+4
View File
@@ -1,3 +1,7 @@
Anope Version 2.0.9
-------------------
No significant changes.
Anope Version 2.0.8 Anope Version 2.0.8
------------------- -------------------
Fix ns_register:unconfirmedexpire not being used Fix ns_register:unconfirmedexpire not being used
+1 -1
View File
@@ -71,7 +71,7 @@ void IRC2SQL::OnNewServer(Server *server)
query = "INSERT DELAYED INTO `" + prefix + "server` (name, hops, comment, link_time, online, ulined) " query = "INSERT DELAYED INTO `" + prefix + "server` (name, hops, comment, link_time, online, ulined) "
"VALUES (@name@, @hops@, @comment@, now(), 'Y', @ulined@) " "VALUES (@name@, @hops@, @comment@, now(), 'Y', @ulined@) "
"ON DUPLICATE KEY UPDATE name=VALUES(name), hops=VALUES(hops), comment=VALUES(comment), " "ON DUPLICATE KEY UPDATE name=VALUES(name), hops=VALUES(hops), comment=VALUES(comment), "
"link_time=VALUES(link_time), online=VALUES(online), ulined=(ulined)"; "link_time=VALUES(link_time), online=VALUES(online), ulined=VALUES(ulined)";
query.SetValue("name", server->GetName()); query.SetValue("name", server->GetName());
query.SetValue("hops", server->GetHops()); query.SetValue("hops", server->GetHops());
query.SetValue("comment", server->GetDescription()); query.SetValue("comment", server->GetDescription());
+8 -2
View File
@@ -405,14 +405,14 @@ class InspIRCd3Proto : public IRCDProto
if (na->nc->HasExt("UNCONFIRMED")) if (na->nc->HasExt("UNCONFIRMED"))
return; return;
UplinkSocket::Message(Me) << "METADATA " << u->GetUID() << " accountname :" << na->nc->display;
UplinkSocket::Message(Me) << "METADATA " << u->GetUID() << " accountid :" << na->nc->GetId(); UplinkSocket::Message(Me) << "METADATA " << u->GetUID() << " accountid :" << na->nc->GetId();
UplinkSocket::Message(Me) << "METADATA " << u->GetUID() << " accountname :" << na->nc->display;
} }
void SendLogout(User *u) anope_override void SendLogout(User *u) anope_override
{ {
UplinkSocket::Message(Me) << "METADATA " << u->GetUID() << " accountname :";
UplinkSocket::Message(Me) << "METADATA " << u->GetUID() << " accountid :"; UplinkSocket::Message(Me) << "METADATA " << u->GetUID() << " accountid :";
UplinkSocket::Message(Me) << "METADATA " << u->GetUID() << " accountname :";
} }
void SendChannel(Channel *c) anope_override void SendChannel(Channel *c) anope_override
@@ -427,6 +427,12 @@ class InspIRCd3Proto : public IRCDProto
void SendSVSLogin(const Anope::string &uid, const Anope::string &acc, const Anope::string &vident, const Anope::string &vhost) anope_override void SendSVSLogin(const Anope::string &uid, const Anope::string &acc, const Anope::string &vident, const Anope::string &vhost) anope_override
{ {
// TODO: in 2.1 this function should take a NickAlias instead of strings.
NickCore *nc = NickCore::Find(acc);
if (!nc)
return;
UplinkSocket::Message(Me) << "METADATA " << uid << " accountid :" << nc->GetId();
UplinkSocket::Message(Me) << "METADATA " << uid << " accountname :" << acc; UplinkSocket::Message(Me) << "METADATA " << uid << " accountname :" << acc;
if (!vident.empty()) if (!vident.empty())
+2 -2
View File
@@ -74,7 +74,7 @@ NickCore::~NickCore()
void NickCore::Serialize(Serialize::Data &data) const void NickCore::Serialize(Serialize::Data &data) const
{ {
data["display"] << this->display; data["display"] << this->display;
data["id"] << this->id; data["uniqueid"] << this->id;
data["pass"] << this->pass; data["pass"] << this->pass;
data["email"] << this->email; data["email"] << this->email;
data["language"] << this->language; data["language"] << this->language;
@@ -94,7 +94,7 @@ Serializable* NickCore::Unserialize(Serializable *obj, Serialize::Data &data)
data["display"] >> sdisplay; data["display"] >> sdisplay;
uint64_t sid = 0; uint64_t sid = 0;
data["id"] >> sid; data["uniqueid"] >> sid;
if (obj) if (obj)
nc = anope_dynamic_static_cast<NickCore *>(obj); nc = anope_dynamic_static_cast<NickCore *>(obj);
+1 -1
View File
@@ -2,5 +2,5 @@
VERSION_MAJOR=2 VERSION_MAJOR=2
VERSION_MINOR=0 VERSION_MINOR=0
VERSION_PATCH=8 VERSION_PATCH=9
VERSION_EXTRA="" VERSION_EXTRA=""