mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
3
User.cpp
3
User.cpp
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user