znc.conf: Only write StatusPrefix in the user section if needed

Thanks to SilverLeo for the patch.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@930 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-01-20 16:17:46 +00:00
parent 9b91f295bc
commit e150bdda33

View File

@@ -536,7 +536,8 @@ bool CUser::WriteConfig(CFile& File) {
PrintLine(File, "RealName", GetRealName());
PrintLine(File, "VHost", GetVHost());
PrintLine(File, "QuitMsg", GetQuitMsg());
PrintLine(File, "StatusPrefix", GetStatusPrefix());
if (CZNC::Get().GetStatusPrefix() != GetStatusPrefix())
PrintLine(File, "StatusPrefix", GetStatusPrefix());
PrintLine(File, "ChanModes", GetDefaultChanModes());
PrintLine(File, "Buffer", CString(GetBufferCount()));
PrintLine(File, "KeepNick", CString((GetKeepNick()) ? "true" : "false"));