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
This commit is contained in:
psychon
2008-07-22 08:39:18 +00:00
parent 1f6abb6468
commit cc3d99515d
+5 -3
View File
@@ -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;