From cc3d99515d031b85e2015405f5603733039a43a9 Mon Sep 17 00:00:00 2001 From: psychon Date: Tue, 22 Jul 2008 08:39:18 +0000 Subject: [PATCH] awaynick: Disable KeepNick on load instead of failing to load This should make someone in #znc really happy. :P This is based on a patch from SilverLeo. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1142 726aef4b-f618-498e-8847-2d620e286838 --- modules/awaynick.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/awaynick.cpp b/modules/awaynick.cpp index 3573544f..16821f17 100644 --- a/modules/awaynick.cpp +++ b/modules/awaynick.cpp @@ -60,9 +60,11 @@ public: SetNV("nick", m_sFormat); if (m_pUser->GetKeepNick()) { - sMessage = "You have KeepNick enabled. " - "This won't work together with awaynick."; - return false; + sMessage = "KeepNick disabled"; + PutModule("You have KeepNick enabled. " + "This won't work together with awaynick."); + PutModule("Disabling KeepNick for you..."); + m_pUser->SetKeepNick(false); } return true;