23 Eylül 2015, 16:33 | #1 |
Üyelik tarihi: 01 Mart 2015
Mesajlar: 203 WEB Sitesi: www.code.com IRC Sunucusu: irc.code.com İlgi Alanı: Alınan Beğeni: 33 |
/Services Motd Komutu
Nickserv üzerinden "/services motd" komutu , umarım işinize yarar.
cd ircservices*-* Kod:
nano -w modules/nickserv/main.c Kod:
static void do_help(User *u); Kod:
static void do_motd(User *u); Aynı dosya icerisinde Kod:
{ "SIDENTIFY",do_identify, NULL, -1, Kod:
{ "MOTD", do_motd, NULL, -1, -1,-1 }, Aynı dosya icerisinde Kod:
/*************************************************************************/ static void do_identify(User *u) { char *pass = strtok_remaining(); NickInfo *ni = NULL; NickGroupInfo *ngi = NULL; 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); } } make & make install cekerek servislerinize res atin. daha sonra motd.txt hazırlayıp lib/ icine atin. Kodlar toXic e Aittir. * |
Alıntı
|
Etiketler |
komutu, motd, or services |
Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir) | |
|
|
Benzer Konular | ||||
Konu | Konuyu Başlatan | Forum | Cevaplar | Son Mesaj |
(Opermotd, rules, motd vb dosyaların mesaj limitini kaldırma) | Entrance | UnrealIRCd | 1 | 21 Kasım 2015 12:48 |
MOTD Komutu kullanıldı bilgisi ve sayaç! | Entrance | Unreal - Parça Kodlar | 0 | 14 Ağustos 2015 22:17 |
Hazır Sunucu Motd Listesi | Goemon | ConferenceRoom | 2 | 25 Şubat 2015 02:22 |
Motd Kodu | Goemon | ConferenceRoom | 0 | 15 Şubat 2015 17:02 |
CR Motd List Komutu ve Kodu | Goemon | ConferenceRoom | 0 | 13 Şubat 2015 19:53 |