Skip to content

Commit

Permalink
Don't expand ~ in ISpoofFile
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
psychon committed Feb 20, 2011
1 parent 080bf67 commit cd78225
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions znc.cpp
Expand Up @@ -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")) {
Expand Down

0 comments on commit cd78225

Please sign in to comment.