ForumTEK.Net - IRC Forumu

ForumTEK.Net - IRC Forumu (http://www.forumtek.net/index.php)
-   Unreal - Parça Kodlar (http://www.forumtek.net/forumdisplay.php?f=62)
-   -   SAJOIN komutunu belirtilen rumuzlara açmak. (http://www.forumtek.net/showthread.php?t=825)

Entrance 15 Şubat 2015 19:21

SAJOIN komutunu belirtilen rumuzlara açmak.
 
Merhaba UnrealIRCd kullanıcıları,

• SAJOIN komutunu başlıktada belirttiğim gibi, sadece rumuzu listede olan kişi veya kişilere kullandırtmaya yarayan küçük bir eklenti.

° Klasör: Unreal3.2*/src/modules/
° Dosya: <m_sajoin.c>

BULUN
:

Kod:

/* m_sajoin() - Lamego - Wed Jul 21 20:04:48 1999
  Copied off PTlink IRCd (C) PTlink coders team.
  Coded for Sadmin by Stskeeps
  also Modified by NiQuiL (niquil@ProGRaMMeR.net)
    parv[0] - sender
    parv[1] - nick to make join
    parv[2] - channel(s) to join
*/

ALTINA:

Kod:

static char *nlist[]  = {
  "NICK", 
  "NICK2", 
  "NICK3", 
  "NICK4", 
  NULL
};

static int n_listesi(char *ent)
{

 char **nicklist;
 for (nicklist=nlist; *nicklist; *nicklist++)
{
 if (strstr(ent, *nicklist))
    return 1;
}
    return 0;
}

EKLEYIN, daha sonra:

BULUN:

Kod:

if (!IsSAdmin(sptr) && !IsULine(sptr))
    {
    sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]);
    return 0;
    }

DEGISTIRIN:

Kod:

if (!n_listesi(sptr->name) && !IsULine(sptr))
    {
sendto_one(sptr, ":%s NOTICE %s :SAJOIN komutunu sadece özel nickler kullanabilir.", me.name, sptr->name);
    sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]);
    return 0;
    }


* SSH,
üzerinden ilgili dizinde make ve ./unreal rehash komutlarını uygulayın.

İyi forumlar..^^

Goemon 16 Şubat 2015 13:01

Cevap: SAJOIN komutunu belirtilen rumuzlara açmak.
 
Eline sağlık @[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]


All times are GMT +3. The time now is 10:45.

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