mirror of
https://github.com/anope/anope.git
synced 2026-06-26 05:06:37 +02:00
Fixed bug #1187 - Fixed releasing enforcer clients on TS6 IRCds
This commit is contained in:
+8
-5
@@ -112,7 +112,13 @@ void NickAlias::Release()
|
||||
if (ircd->svshold)
|
||||
ircdproto->SendSVSHoldDel(this->nick);
|
||||
else
|
||||
ircdproto->SendQuit(this->nick, "");
|
||||
{
|
||||
User *u = finduser(this->nick);
|
||||
if (u && u->server == Me)
|
||||
{
|
||||
delete u;
|
||||
}
|
||||
}
|
||||
|
||||
this->UnsetFlag(NS_HELD);
|
||||
}
|
||||
@@ -133,10 +139,7 @@ void NickAlias::OnCancel(User *)
|
||||
ircdproto->SendSVSHold(this->nick);
|
||||
else
|
||||
{
|
||||
Anope::string uid = ircd->ts6 ? ts6_uid_retrieve() : "";
|
||||
|
||||
ircdproto->SendClientIntroduction(this->nick, Config->NSEnforcerUser, Config->NSEnforcerHost, "Services Enforcer", "+", uid);
|
||||
new NickServRelease(this->nick, uid, Config->NSReleaseTimeout);
|
||||
new NickServRelease(this, Config->NSReleaseTimeout);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user