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/)
-   Services Hazır Kodlar (https://www.ircforumlari.net/services-hazir-kodlar/)
-   -   IRCservices /Services motd komutu (https://www.ircforumlari.net/services-hazir-kodlar/393894-ircservices-services-motd-komutu.html)

resoLve 17 Mayıs 2011 15:07

IRCservices /Services motd komutu
 
Nickserv üzerinden "/services motd" komutu , umarım işinize yarar.

cd ircservices*-*

Kod:

nano -w modules/nickserv/main.c
girip

Kod:

static void do_help(User *u);
altına

Kod:

static void do_motd(User *u);
ekleyin.

Aynı dosya icerisinde

Kod:

{ "SIDENTIFY",do_identify, NULL,  -1,
ustune

Kod:

{ "MOTD", do_motd, NULL, -1, -1,-1 },
ekleyin

Aynı dosya icerisinde

Kod:


/*************************************************************************/
static void do_identify(User *u)
{
    char *pass = strtok_remaining();
    NickInfo *ni = NULL;
    NickGroupInfo *ngi = NULL;

satirinin üstüne

Kod:


/**************************************************************/
static void do_motd(User *u)
{
#define motdoku "motd.txt"
FILE *x;
char buf[BUFSIZE];
x = fopen(motdoku, "r");
if (x) {
while (fgets(buf, sizeof(buf), x)) {
buf[strlen(buf)-1] = 0;
send_cmd(s_NickServ, "NOTICE %s %s", u->nick, buf);
}
fclose(x);
} else {
send_cmd(s_NickServ, "NOTICE %s Motd Henuz girilmemis..", u->nick);
}
}

ekleyin

make & make install cekerek servislerinize res atin.

daha sonra motd.txt hazırlayıp lib/ icine atin.

Kodlar toXic e Aittir. * Emegine saglık ibo ;araba

Delioper 04 Mart 2014 12:45

Cevap: IRCservices /Services motd komutu
 
tşk ederim


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

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