Konu: Oper.motd hk
Tekil Mesaj gösterimi
Alt 24 Kasım 2021, 22:05   #1
Çevrimdışı
OmerAti
✓
5
Nick kopyalandı!
Standart

Kod Yazarini Bilmiyorum

unrealircd-4.2.4.1\src\modules

klasorunun içinde m_oper.c dosyasini açip

Kod:
if (do_cmd(cptr, sptr, "JOIN", 3, chans) == FLUSH_BUFFER)
satirinin hemen üstüne

Kod:
#define OKU "../conf/oper.motd"
FILE *dosya;
char buf[BUFSIZE];
dosya = fopen(OKU, "r");
if (dosya != NULL) {
while (fgets(buf, sizeof(buf), dosya)) {
buf[strlen(buf)-1] = 0;
sendto_one(sptr, ":OPERMOTD PRIVMSG %s :%s",  sptr->name, buf);
}
}
ekle ve unrealircd-4.2.4.1 klasorune sshden make ve make install komutlarını uygula sunucuda rehash çek

dogru yaptiysan çalişmasi lazım unrealircd/conf klasorunde oper.motd dosyası olmasi lazım

kolay gelsin

 
Alıntı Yap