mirror of
https://github.com/anope/anope.git
synced 2026-07-09 20:03:13 +02:00
Actually check if the nicks arent registered, oops
This commit is contained in:
@@ -353,7 +353,7 @@ class NickServCore : public Module
|
||||
|
||||
void OnUserConnect(dynamic_reference<User> &u, bool &exempt) anope_override
|
||||
{
|
||||
if (!Config->NoNicknameOwnership && !Config->NSUnregisteredNotice.empty() && u)
|
||||
if (!Config->NoNicknameOwnership && !Config->NSUnregisteredNotice.empty() && u && findnick(u->nick) == NULL)
|
||||
u->SendMessage(NickServ, Config->NSUnregisteredNotice);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user