mirror of
https://github.com/anope/anope.git
synced 2026-07-07 21:43:13 +02:00
Allow userless command sources
This commit is contained in:
@@ -264,7 +264,10 @@ class NSIdentifyLDAP : public Module
|
||||
if (c == NULL || source == NULL || !this->ldap)
|
||||
return EVENT_CONTINUE;
|
||||
|
||||
User *u = source->u;
|
||||
User *u = source->GetUser();
|
||||
if (!u)
|
||||
return EVENT_CONTINUE;
|
||||
|
||||
if (u->HasExt("m_ldap_authentication_authenticated"))
|
||||
{
|
||||
u->Shrink("m_ldap_authentication_authenticated");
|
||||
|
||||
Reference in New Issue
Block a user