mirror of
https://github.com/anope/anope.git
synced 2026-07-05 22:13:13 +02:00
Fix double lookups on accounts when authenticating.
This commit is contained in:
@@ -50,15 +50,11 @@ private:
|
||||
{
|
||||
}
|
||||
|
||||
void OnSuccess() override
|
||||
void OnSuccess(NickAlias *na) override
|
||||
{
|
||||
if (!rpcinterface || !client)
|
||||
return;
|
||||
|
||||
auto *na = NickAlias::Find(GetAccount());
|
||||
if (!na)
|
||||
return; // Should never happen.
|
||||
|
||||
NickCore *nc = na->nc;
|
||||
if (nc->HasExt("NS_SUSPENDED"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user