Kod: Kodu kopyalamak için üzerine çift tıklayın!
/* IRC port: 6667-7000 */
/* Web identd: jawa */
/* Ban tipi: BAN_ACT_ZLINE */
/* Ban suresi: (1800) 30 dakika */
#include "config.h"
#include "struct.h"
#include "common.h"
#include "sys.h"
#include "numeric.h"
#include "msg.h"
#include "channel.h"
#include <time.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#include <io.h>
#endif
#include <fcntl.h>
#include "h.h"
#include "proto.h"
#ifdef STRIPBADWORDS
#include "badwords.h"
#endif
#ifdef _WIN32
#include "version.h"
#endif
DLLFUNC int m_webidentd(aClient *sptr);
ModuleHeader MOD_HEADER(m_webidentd)
= {
"m_webidentd",
"Web identd korumasi porta gore (By EceLMeriC)",
"Web identd korumasi porta gore (By EceLMeriC)",
"3.2-b8-1",
NULL
};
DLLFUNC int MOD_INIT(m_webidentd)(ModuleInfo *modinfo)
{
HookAddEx(modinfo->handle, HOOKTYPE_PRE_LOCAL_CONNECT, m_webidentd);
return MOD_SUCCESS;
}
DLLFUNC int MOD_LOAD(m_webidentd)(int module_load)
{
return MOD_SUCCESS;
}
DLLFUNC int MOD_UNLOAD(m_webidentd)(int module_unload)
{
return MOD_SUCCESS;
}
DLLFUNC int m_webidentd(aClient *sptr)
{
if (sptr->listener->port != 6667)
if (sptr->listener->port != 7000)
return 0;
if (!stricmp(sptr->user->username,"jawa")) {
sendto_one(sptr, ":%s NOTICE %s :*** Kullanmis oldugunuz identd sadece web girislerine mahsustur.", me.name, sptr->name);
return place_host_ban(sptr, BAN_ACT_ZLINE, "Girisiniz Engellenmistir.", 1800);
}
} modulu sunucuna kurup bu sekilde denermisin.
|