Giriş

Orijinalini görmek için tıklayınız : Atılan Banları Kanala Yansıtma..


dEathLeSs
01 Ağustos 2017, 13:28
Merhaba arkadaşlar,

Burada ([Only Registered Users Can See Links]) daha önce paylaşılmış olan kodların UnrealIRCd-4'e düzenlenmiştir halidir..

# include <sys/times.h>
# endif
#endif


satırının altına..

#define KANAL "#Xline"
aChannel *chptr;

ekliyoruz.

char buf[512];
ircsnprintf(buf, sizeof(buf),
"Spamfilter added: '%s' [target: %s] [action: %s] [reason: %s] on %s GMT (from %s)",
reason, parv[3], banact_valtostring(banact_chartoval(*parv[4])),
parc >= 10 ? unreal_decodespace(parv[9]) : SPAMFILTER_BAN_REASON,
gmt, parv[5]);

satırının altına,

if ((chptr = find_channel(KANAL, NULL)))
sendto_channel_butserv(chptr, &me, ":Monitor PRIVMSG %s :Spamfilter: '%s' [Tipi: %s] [Ceza: %s] [Sebep: %s] [Ekleyen: %s]", chptr->chname,
reason, parv[3], banact_valtostring(banact_chartoval(*parv[4])), parc >= 10 ? unreal_decodespace(parv[9]) : SPAMFILTER_BAN_REASON, parv[5]);

ekliyoruz..

if (type & TKL_NICK)
{
if (*parv[3] != 'H')
ircsnprintf(buf, sizeof(buf), "Permanent %s added for %s on %s GMT (from %s: %s)",
txt, parv[4], gmt, parv[5], reason);
}
else
ircsnprintf(buf, sizeof(buf), "Permanent %s added for %s@%s on %s GMT (from %s: %s)",
txt, parv[3], parv[4], gmt, parv[5], reason);
}

satırının altına..

if ((chptr = find_channel(KANAL, NULL)))
sendto_channel_butserv(chptr, &me, ":Monitor PRIVMSG %s :Ban tipi (%s) - ( %s@%s) - (Ekleyen: %s) - (Sebep: %s)",
chptr->chname, txt, parv[3], parv[4], parv[5], reason);

ekliyoruz..

if (!(*parv[3] == 'H'))
{
sendto_snomask(SNO_TKL, "%s removed %s %s (set at %s - reason: %s)",
parv[5], txt, tk->hostmask, gmt, tk->reason);
ircd_log(LOG_TKL, "%s removed %s %s (set at %s - reason: %s)",
parv[5], txt, tk->hostmask, gmt, tk->reason);
}
}

satırının altına..

if ((chptr = find_channel(KANAL, NULL)))
sendto_channel_butserv(chptr, &me, ":Monitor PRIVMSG %s :Açılan ban tipi (%s) - (%s@%s) - (Silen: %s) - (Sebep: %s) ", chptr->chname,
txt, tk->usermask, tk->hostmask, parv[5], tk->reason);

ekliyoruz..
else if (type & TKL_SPAMF)
{
sendto_snomask(SNO_TKL, "%s removed Spamfilter '%s' (set at %s)",
parv[5], tk->reason, gmt);
ircd_log(LOG_TKL, "%s removed Spamfilter '%s' (set at %s)",
parv[5], tk->reason, gmt);

satırının altına,

if ((chptr = find_channel(KANAL, NULL)))
sendto_channel_butserv(chptr, &me, ":Monitor PRIVMSG %s :Spamfilter: '%s' [Silen: %s] ", chptr->chname,
tk->reason, parv[5]);

ekliyoruz..

Spamfilter: '*Hey*come watch me on my webcam*' [Tipi: cp] [Ceza: gline] [Sebep: You are spamming or you have a virus!] [Ekleyen: dEathLeSs!LaZ@TeknikAdmin.Soylenti.Org]

Açılan ban tipi (Unknown *:Line) - (cp@g) - (Silen: dEathLeSs!LaZ@TeknikAdmin.Soylenti.Org) - (Sebep: *Hey*come watch me on my webcam*)

Ban tipi (Z:Line) - ( *@176----) - (Ekleyen: dEathLeSs!LaZ@TeknikAdmin.Soylenti.Org) - (Sebep: no reason)

Açılan ban tipi (Z:Line) - (*@176.------) - (Silen: dEathLeSs!LaZ@TeknikAdmin.Soylenti.Org) - (Sebep: no reason)

Ban tipi (G:Line) - ( *@176.------) - (Ekleyen: dEathLeSs!LaZ@TeknikAdmin.Soylenti.Org) - (Sebep: no reason)

Açılan ban tipi (G:Line) - (*@--) - (Silen: dEathLeSs!LaZ@TeknikAdmin.Soylenti.Org) - (Sebep: no reason)

SSH dizinimizde make && make install ve ./unrealircd rehash komutlarını uygulamamız yetiyor.

NOT: Kodlar, Entrance arkadaşımdan alıntıdır.. Var ol dostum! :)