mirror of
https://github.com/znc/znc.git
synced 2026-05-09 06:44:40 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user