Import most of znc-extra

This imports all modules from znc-extra except modtcl under modules/extra.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1606 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-08-20 19:54:27 +00:00
parent a593f584c0
commit fc4c3b974b
15 changed files with 1597 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
/*
* Copyright (C) 2004-2009 See the AUTHORS file for details.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "znc.h"
class CNotifyConnectMod : public CGlobalModule {
public:
GLOBALMODCONSTRUCTOR(CNotifyConnectMod) {}
virtual void OnClientLogin()
{
SendAdmins(m_pUser->GetUserName() + " attached");
}
virtual void OnClientDisconnect()
{
SendAdmins(m_pUser->GetUserName() + " detached");
}
private:
void SendAdmins(const CString &msg)
{
CZNC::Get().Broadcast(msg, true, NULL, GetClient());
}
};
GLOBALMODULEDEFS(CNotifyConnectMod, "");