From: <ps...@us...> - 2008-07-22 08:39:08
|
Revision: 1142 http://znc.svn.sourceforge.net/znc/?rev=1142&view=rev Author: psychon Date: 2008-07-22 08:39:18 +0000 (Tue, 22 Jul 2008) Log Message: ----------- 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. Modified Paths: -------------- trunk/modules/awaynick.cpp Modified: trunk/modules/awaynick.cpp =================================================================== --- trunk/modules/awaynick.cpp 2008-07-21 13:58:24 UTC (rev 1141) +++ trunk/modules/awaynick.cpp 2008-07-22 08:39:18 UTC (rev 1142) @@ -60,9 +60,11 @@ 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; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |