From 606fdaf166e67281bcbee75981669fde13604354 Mon Sep 17 00:00:00 2001 From: psychon Date: Tue, 20 Oct 2009 16:59:40 +0000 Subject: [PATCH] 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 --- modules/admin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/admin.cpp b/modules/admin.cpp index a12f5105..1644c63f 100644 --- a/modules/admin.cpp +++ b/modules/admin.cpp @@ -470,6 +470,7 @@ class CAdminMod : public CModule { return; } pNewUser->SetUserName(sNewUsername); + pNewUser->SetIRCConnectEnabled(false); if (!CZNC::Get().AddUser(pNewUser, sError)) { delete pNewUser;