lookjapan.COM - IRC ve mIRC dünyasının forumu!

lookjapan.COM - IRC ve mIRC dünyasının forumu! (http://www.lookjapan.com/index.php)
-   Unreal - 4 Parça Kodlar (http://www.lookjapan.com/forumdisplay.php?f=336)
-   -   Atılan Banları Kanala Yansıtma.. (http://www.lookjapan.com/showthread.php?t=5270)

dEathLeSs 01 Ağustos 2017 13:28

Atılan Banları Kanala Yansıtma..
 
Merhaba arkadaşlar,

[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...] daha önce paylaşılmış olan kodların UnrealIRCd-4'e düzenlenmiştir halidir..

Kod:

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

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

Kod:

#define KANAL "#Xline"
aChannel *chptr;

ekliyoruz.

Kod:

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,

Kod:

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..

Kod:

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..

Kod:

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..

Kod:

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..

Kod:

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..
Kod:

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,

Kod:

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..

Kod:

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]
Kod:

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

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

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

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

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, @[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...] arkadaşımdan alıntıdır.. Var ol dostum! :)


All times are GMT +3. The time now is 11:46.

Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.