Make all the modules support networks

This commit is contained in:
Kyle Fuller
2011-08-24 14:01:34 +01:00
parent ee7a2083c8
commit 0b1627c529
33 changed files with 199 additions and 183 deletions
+3 -2
View File
@@ -13,6 +13,7 @@
#include "Client.h"
#include "User.h"
#include "IRCNetwork.h"
#include "FileUtils.h"
#include <sys/stat.h>
@@ -438,7 +439,7 @@ private:
void AddMessage(time_t iTime, const CNick & Nick, CString & sMessage)
{
if (m_pUser && Nick.GetNick() == m_pUser->GetIRCNick().GetNick())
if (Nick.GetNick() == m_pNetwork->GetIRCNick().GetNick())
return; // ignore messages from self
AddMessage(CString(iTime) + ":" + Nick.GetNickMask() + ":" + sMessage);
}
@@ -474,5 +475,5 @@ void CAwayJob::RunJob()
}
}
MODULEDEFS(CAway, "You don't need this module, ZNC works ok without it")
NETWORKMODULEDEFS(CAway, "You don't need this module, ZNC works ok without it")