Example #1
0
void CAwayNickTimer::RunJob() {
	CIRCNetwork* pNetwork = m_Module.GetNetwork();

	if (!pNetwork->IsUserAttached() && pNetwork->IsIRCConnected()) {
		m_Module.PutIRC("NICK " + m_Module.GetAwayNick());
	}
}
Example #2
0
	virtual void RunJob() {
		CIRCNetwork* pNetwork = m_Module.GetNetwork();

		if (pNetwork->IsUserAttached() && pNetwork->IsIRCConnected()) {
			CString sConfNick = pNetwork->GetNick();
			m_Module.PutIRC("NICK " + sConfNick);
		}
	}