mirror of
https://github.com/anope/anope.git
synced 2026-07-08 14:23:14 +02:00
Fixed detecting when to set +r and fixed crash on shutdown introduced by the last commit
This commit is contained in:
+2
-2
@@ -473,8 +473,8 @@ void ModeManager::StackerAddInternal(BotInfo *bi, Base *Object, Mode *mode, bool
|
||||
else if (Type == ST_USER)
|
||||
s->bi = NULL;
|
||||
|
||||
static ModePipe mpipe;
|
||||
mpipe.Notify();
|
||||
static ModePipe *mpipe = new ModePipe();
|
||||
mpipe->Notify();
|
||||
}
|
||||
|
||||
/** Add a user mode to Anope
|
||||
|
||||
+3
-1
@@ -371,7 +371,9 @@ void User::Identify(NickAlias *na)
|
||||
|
||||
this->Login(na->nc);
|
||||
ircdproto->SendLogin(this);
|
||||
if (!Config->NoNicknameOwnership && na->nc == this->Account() && na->nc->HasFlag(NI_UNCONFIRMED) == false)
|
||||
|
||||
NickAlias *this_na = findnick(this->nick);
|
||||
if (!Config->NoNicknameOwnership && this_na && this_na->nc == na->nc && na->nc->HasFlag(NI_UNCONFIRMED) == false)
|
||||
this->SetMode(findbot(Config->NickServ), UMODE_REGISTERED);
|
||||
|
||||
FOREACH_MOD(I_OnNickIdentify, OnNickIdentify(this));
|
||||
|
||||
Reference in New Issue
Block a user