mirror of
https://github.com/znc/znc.git
synced 2026-07-06 01:41:12 +02:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user