1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 11:33:14 +02:00

Added a new database format and sqlite support. Also moved db-convert to a module.

This commit is contained in:
Adam
2011-09-25 04:19:15 -04:00
parent 43201ead95
commit 1f2399de36
75 changed files with 4143 additions and 5880 deletions
+3 -4
View File
@@ -268,8 +268,7 @@ class InspIRCdProto : public IRCDProto
Anope::string svidbuf = stringify(u->timestamp);
u->Account()->Shrink("authenticationtoken");
u->Account()->Extend("authenticationtoken", new ExtensibleItemRegular<Anope::string>(svidbuf));
u->Account()->Extend("authenticationtoken", new ExtensibleString(svidbuf));
}
};
@@ -321,8 +320,8 @@ class InspircdIRCdMessage : public IRCdMessage
user->SetCloakedHost(params[3]);
NickAlias *na = findnick(user->nick);
Anope::string svidbuf;
if (na && na->nc->GetExtRegular("authenticationtoken", svidbuf) && svidbuf == params[0])
Anope::string *svidbuf = na ? na->nc->GetExt<Anope::string *>("authenticationtoken") : NULL;
if (na && svidbuf && *svidbuf == params[0])
{
user->Login(na->nc);
if (na->nc->HasFlag(NI_UNCONFIRMED))