Permalink
Browse files

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>
  • Loading branch information...
psychon committed Feb 20, 2011
1 parent 080bf67 commit cd7822548266ab9d88781599e041866a92234b29
Showing with 0 additions and 4 deletions.
  1. +0 −4 znc.cpp
View
@@ -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")) {

0 comments on commit cd78225

Please sign in to comment.