From 170ff7f3606cfa1111dde9b31fe451567b4d965f Mon Sep 17 00:00:00 2001 From: psychon Date: Mon, 7 Jan 2008 21:17:33 +0000 Subject: [PATCH] Let awaynick print a message / not load if KeepNick is enabled git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@912 726aef4b-f618-498e-8847-2d620e286838 --- modules/awaynick.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/awaynick.cpp b/modules/awaynick.cpp index 976f4d55..9dc16a3d 100644 --- a/modules/awaynick.cpp +++ b/modules/awaynick.cpp @@ -63,6 +63,12 @@ public: SetNV("nick", m_sFormat); + if (m_pUser->GetKeepNick()) { + sMessage = "You have KeepNick enabled. " + "This won't work together with awaynick."; + return false; + } + return true; } @@ -99,6 +105,11 @@ public: } virtual void OnUserAttached() { + if (m_pUser->GetKeepNick()) { + PutModule("WARNING: You have KeepNick enabled. " + "This won't work with awaynick."); + } + StartBackNickTimer(); }