admin: Disable ConnectEnabled() for cloned users

If you know clone a user through admin's clone command, that user won't connect
to irc. When the new user first logs in he will be told to use '/msg *status
connect'.

Thanks to BLG and KiNgMaR for the idea and the 'patch'.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1653 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-10-20 16:59:40 +00:00
parent 3f493072b3
commit 606fdaf166

View File

@@ -470,6 +470,7 @@ class CAdminMod : public CModule {
return;
}
pNewUser->SetUserName(sNewUsername);
pNewUser->SetIRCConnectEnabled(false);
if (!CZNC::Get().AddUser(pNewUser, sError)) {
delete pNewUser;