1
0
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:
Adam
2012-03-13 19:26:11 -04:00
parent a26f4b9a9a
commit a06934777c
+1 -1
View File
@@ -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);
}
};