Move OnWrite{User,Chan}Config() to CModule

That way, user modules can write stuff to the user section, too.

OnWriteConfig() is still a global module call. A later commit will have to make
OnConfigLine() a user module hook...


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1848 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-03-29 19:04:37 +00:00
parent be130f2034
commit 027404e05b
4 changed files with 24 additions and 30 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ bool CChan::WriteConfig(CFile& File) {
if (!GetDefaultModes().empty())
m_pUser->PrintLine(File, "\tModes", GetDefaultModes());
CZNC::Get().GetModules().OnWriteChanConfig(File, *this);
MODULECALL(OnWriteChanConfig(File, *this), m_pUser, NULL,);
File.Write("\t</Chan>\n");
return true;