1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 11:26:37 +02:00

Automatically destruct messages when modules are unloaded

This commit is contained in:
Adam
2010-10-04 16:38:25 -04:00
parent cf98cd3e06
commit ab5ebc2245
11 changed files with 142 additions and 312 deletions
+4 -7
View File
@@ -304,10 +304,7 @@ int m_whois(const Anope::string &source, const Anope::string &who)
return MOD_CONT;
}
/* *INDENT-OFF* */
void moduleAddMsgs()
{
Anope::AddMessage("STATS", m_stats);
Anope::AddMessage("TIME", m_time);
Anope::AddMessage("VERSION", m_version);
}
Message message_stats("STATS", m_stats);
Message message_time("TIME", m_time);
Message message_verssion("VERSION", m_version);