mirror of
https://github.com/znc/znc.git
synced 2026-07-06 09:51:25 +02:00
Don't expand ~ in ISpoofFile
This way, we can write the original value back to the config. Also, this "fixes" a bug because webadmin didn't do this step. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
@@ -1650,10 +1650,6 @@ bool CZNC::DoRehash(CString& sError)
|
||||
m_sISpoofFormat = sValue;
|
||||
continue;
|
||||
} else if (sName.Equals("ISpoofFile")) {
|
||||
if (sValue.Left(2) == "~/") {
|
||||
sValue.LeftChomp(2);
|
||||
sValue = GetHomePath() + "/" + sValue;
|
||||
}
|
||||
m_sISpoofFile = sValue;
|
||||
continue;
|
||||
} else if (sName.Equals("MOTD")) {
|
||||
|
||||
Reference in New Issue
Block a user