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
This commit is contained in:
psychon
2008-01-07 21:17:33 +00:00
parent 95fe0f2f9b
commit 170ff7f360
+11
View File
@@ -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();
}