IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   Unreal IRCd (https://www.ircforumlari.net/unreal-ircd/)
-   -   Fullname yasaklama ve serbest bırakma (Yardım) (https://www.ircforumlari.net/unreal-ircd/24841-fullname-yasaklama-ve-serbest-birakma-yardim.html)

toXic 16 Nisan 2009 14:32

Cevap: Fullname yasaklama ve serbest bırakma (Yardım)
 
Alıntı:

janus Nickli Üyeden Alıntı (Mesaj 689361)
işte ben onlari kendime gore degistirdim ama o identlerede izin vermior :)) sorun oradaya zaten

ee modul fullname içinmiş sen ident eklemişsin kaçmıs gözden ;P

janus 16 Nisan 2009 15:27

Cevap: Fullname yasaklama ve serbest bırakma (Yardım)
 
Alıntı:

EceLMeriC Nickli Üyeden Alıntı (Mesaj 689365)
Kod:


#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"
#ifdef _WIN32
#include "version.h"
#endif
 
#define module    "m_identd"
#define aciklama  "Sunucu identd korumasi EceLMeriC"
#define unversion "3.2-b8-1"
#define monitor  "Koruma"
#define isebeb    "Bu identd ile Giris Yapamazsiniz."
#define channel  "#Monitor"
 
static Hook *Connectidentd;
static int connect_identd(aChannel *, aClient *);
 
ModuleHeader MOD_HEADER(m_identd)
= {
    module,
    aciklama,
    aciklama,
    unversion,
    NULL
};
 
DLLFUNC int MOD_INIT(m_identd)(ModuleInfo *modinfo)
{
 
    Connectidentd  = HookAddEx(modinfo->handle, HOOKTYPE_PRE_LOCAL_CONNECT, connect_identd);
    return MOD_SUCCESS;
}
 
DLLFUNC int MOD_LOAD(m_identd)(int module_load)
{
    return MOD_SUCCESS;
}
 
DLLFUNC int MOD_UNLOAD(m_identd)(int module_unload)
{
    return MOD_SUCCESS;
}
 
static char *identdlistesi[] = {
 
  "X",
  "XX",
  "XXX",
  "XXXX",
  "XXXXX",
  "XXXXXX",
  "XXXXXXX",
  NULL
};
 
static int identd_listesi(char *identd)
{
 
 char **ilist;
 
 for (ilist=identdlistesi; *ilist; *ilist++)
 {
 
 if (!strcmp(identd, *ilist))
    return 1;
 }
    return 0;
}
 
static int connect_identd(aChannel *chptr, aClient *sptr)
{
 
if (identd_listesi(sptr->user->username)) {
if ((chptr = find_channel(channel, NullChn)) != NullChn)
sendto_channel_butone(&me, &me, chptr, ":%s PRIVMSG %s :Web identd Korumasi: Nick -> \2%s\2 identd -> \2%s\2 IP -> \2%s\2", monitor, channel, sptr->name, sptr->user->username, sptr->user->realhost);
sendto_one(sptr, ":%s NOTICE %s :%s", monitor, sptr->name, isebeb);
return place_host_ban(sptr, BAN_ACT_ZLINE, "Yasak identd Girisi.", 60);
 }
return 0;
}

bu sekilde denermisin. Hem girmeye calisanlari #Monitor kanalindan izliyebilirsin.

Yok arkadasim bu direk serveri resetliyorr... :S

toXic 16 Nisan 2009 15:29

Cevap: Fullname yasaklama ve serbest bırakma (Yardım)
 
Unreal Versiyonun Kaç 3.5 veya dahamı yüksek?=

janus 16 Nisan 2009 15:35

Cevap: Fullname yasaklama ve serbest bırakma (Yardım)
 
unreal 3.2.6

ironic 16 Nisan 2009 15:36

Cevap: Fullname yasaklama ve serbest bırakma (Yardım)
 
Alıntı:

EceLMeriC Nickli Üyeden Alıntı (Mesaj 689365)
Kod:


#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"
#ifdef _WIN32
#include "version.h"
#endif
 
#define module    "m_identd"
#define aciklama  "Sunucu identd korumasi EceLMeriC"
#define unversion "3.2-b8-1"
#define monitor  "Koruma"
#define isebeb    "Bu identd ile Giris Yapamazsiniz."
#define channel  "#Monitor"
 
static Hook *Connectidentd;
static int connect_identd(aChannel *, aClient *);
 
ModuleHeader MOD_HEADER(m_identd)
= {
    module,
    aciklama,
    aciklama,
    unversion,
    NULL
};
 
DLLFUNC int MOD_INIT(m_identd)(ModuleInfo *modinfo)
{
 
    Connectidentd  = HookAddEx(modinfo->handle, HOOKTYPE_PRE_LOCAL_CONNECT, connect_identd);
    return MOD_SUCCESS;
}
 
DLLFUNC int MOD_LOAD(m_identd)(int module_load)
{
    return MOD_SUCCESS;
}
 
DLLFUNC int MOD_UNLOAD(m_identd)(int module_unload)
{
    return MOD_SUCCESS;
}
 
static char *identdlistesi[] = {
 
  "X",
  "XX",
  "XXX",
  "XXXX",
  "XXXXX",
  "XXXXXX",
  "XXXXXXX",
  NULL
};
 
static int identd_listesi(char *identd)
{
 
 char **ilist;
 
 for (ilist=identdlistesi; *ilist; *ilist++)
 {
 
 if (!strcmp(identd, *ilist))
    return 1;
 }
    return 0;
}
 
static int connect_identd(aChannel *chptr, aClient *sptr)
{
 
if (identd_listesi(sptr->user->username)) {
if ((chptr = find_channel(channel, NullChn)) != NullChn)
sendto_channel_butone(&me, &me, chptr, ":%s PRIVMSG %s :Web identd Korumasi: Nick -> \2%s\2 identd -> \2%s\2 IP -> \2%s\2", monitor, channel, sptr->name, sptr->user->username, sptr->user->realhost);
sendto_one(sptr, ":%s NOTICE %s :%s", monitor, sptr->name, isebeb);
return place_host_ban(sptr, BAN_ACT_ZLINE, "Yasak identd Girisi.", 60);
 }
return 0;
}

bu sekilde denermisin. Hem girmeye calisanlari #Monitor kanalindan izliyebilirsin.

Bravo dostum. Başka zamanda "emeğe saygı" diye geçinir durursunuz. Helal olsun. AYIP.

toXic 16 Nisan 2009 15:44

Cevap: Fullname yasaklama ve serbest bırakma (Yardım)
 
version uyusmuyor o Halde

janus 16 Nisan 2009 15:45

Cevap: Fullname yasaklama ve serbest bırakma (Yardım)
 
hmmm ee ne yapcaz bunun cozumu yokmu diyorsun yani

ironic 16 Nisan 2009 16:02

Cevap: Fullname yasaklama ve serbest bırakma (Yardım)
 
Kod:

#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"
#ifdef _WIN32
#include "version.h"
#endif
 
#define module    "m_identd"
#define aciklama  "Sunucu identd korumasi"
#define unversion "3.2-b8-1"
#define monitor  "Koruma"
#define isebeb    "Bu identd ile Giris Yapamazsiniz."
#define channel  "#Monitor"
 
static Hook *Connectidentd;
static int connect_identd(aClient *);
 
ModuleHeader MOD_HEADER(m_identd)
= {
    module,
    aciklama,
    aciklama,
    unversion,
    NULL
};
 
DLLFUNC int MOD_INIT(m_identd)(ModuleInfo *modinfo)
{
    Connectidentd  = HookAddEx(modinfo->handle, HOOKTYPE_PRE_LOCAL_CONNECT, connect_identd);
    return MOD_SUCCESS;
}
 
DLLFUNC int MOD_LOAD(m_identd)(int module_load)
{
    return MOD_SUCCESS;
}
 
DLLFUNC int MOD_UNLOAD(m_identd)(int module_unload)
{
    return MOD_SUCCESS;
}
 
static char *identdlistesi[] = {
  "X",
  "XX",
  "XXX",
  "XXXX",
  "XXXXX",
  "XXXXXX",
  "XXXXXXX",
  NULL
};
 
static int identd_listesi(char *identd)
{
 
 char **ilist;
 
 for (ilist=identdlistesi; *ilist; *ilist++)
 {
 
 if (!strcmp(identd, *ilist))
    return 1;
 }
    return 0;
}
 
static int connect_identd(aClient *sptr)
{
aChannel *chptr;
 
if (identd_listesi(sptr->user->username)) {
if ((chptr = find_channel(channel, NullChn)) != NullChn)
sendto_channel_butone(&me, &me, chptr, ":%s PRIVMSG %s :Web identd Korumasi: Nick -> \2%s\2 identd -> \2%s\2 IP -> \2%s\2", monitor, channel, sptr->name, sptr->user->username, sptr->user->realhost);
sendto_one(sptr, ":%s NOTICE %s :%s", monitor, sptr->name, isebeb);
return place_host_ban(sptr, BAN_ACT_ZLINE, "Yasak identd Girisi.", 60);
}
return 0;
}

şunla dene dostum.

EcelMeriC kardeş kodu kullanıyorsan sahibini belirt. Diğerlerinden farkın olsun.

janus 16 Nisan 2009 16:36

Cevap: Fullname yasaklama ve serbest bırakma (Yardım)
 
Yok dostum bu make de hata veriorr

Kod:

m_ident.c:93:2: warning: no newline at end of file
make cekerken bu hatayi veriorr sonrada rehash yaptigim anda server gumluor

ironic 16 Nisan 2009 16:56

Cevap: Fullname yasaklama ve serbest bırakma (Yardım)
 
Modülün en sonuna gel enterla (yeni bir boş satır eklemen lazım sonuna).


Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 11:45.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2025 IRCForumlari.Net Sparhawk