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

View File

@@ -13,6 +13,7 @@
#include "FileUtils.h"
#include "User.h"
#include "IRCNetwork.h"
#include "znc.h"
#include <sstream>
@@ -384,13 +385,13 @@ public:
void SendToUser(const CString & sFrom, const CString & sText)
{
//:*schat!znc@znc.in PRIVMSG Jim :
CString sSend = ":" + sFrom + " PRIVMSG " + m_pUser->GetCurNick() + " :" + sText;
CString sSend = ":" + sFrom + " PRIVMSG " + m_pNetwork->GetCurNick() + " :" + sText;
PutUser(sSend);
}
bool IsAttached()
{
return(m_pUser->IsUserAttached());
return(m_pNetwork->IsUserAttached());
}
private:
@@ -468,5 +469,5 @@ template<> void TModInfo<CSChat>(CModInfo& Info) {
Info.SetWikiPage("schat");
}
MODULEDEFS(CSChat, "Secure cross platform (:P) chat system")
NETWORKMODULEDEFS(CSChat, "Secure cross platform (:P) chat system")