Tekil Mesaj gösterimi
Alt 05 Şubat 2011, 18:46   #13
Çevrimiçi
toXic
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Cevap: IRC Giris Bilgi Modulu.




m_giris tanimi zaten daha önceden varmiş.

Kod:   Kodu kopyalamak için üzerine çift tıklayın!
#include "config.h" #include "struct.h" #include "common.h" #include "sys.h" #include "numeric.h" #include "msg.h" #include "channel.h" #include <time.h> #include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef _WIN32 #include <io.h> #endif #include <fcntl.h> #include "h.h" #ifdef _WIN32 #include "version.h" #endif static int m_baglanti(aClient *, aChannel *); int ibo = 0; ModuleHeader MOD_HEADER(m_baglanti) = { "m_baglanti", "Kullanici Baglanti bilgileri. (toXic)", "Kullanici Baglanti bilgileri. v2 (toXic)", "3.2-b8-1", NULL }; DLLFUNC int MOD_INIT(m_m_baglanti)(ModuleInfo *modinfo) { HookAddEx(modinfo->handle, HOOKTYPE_LOCAL_CONNECT, m_baglanti); return MOD_SUCCESS; } DLLFUNC int MOD_LOAD(m_m_baglanti)(int module_load) { return MOD_SUCCESS; } DLLFUNC int MOD_UNLOAD(m_m_baglanti)(int module_unload) { return MOD_SUCCESS; } static int m_baglanti(aClient *sptr, aChannel *chptr) { sendto_one(sptr, ":INFO PRIVMSG %s Merhaba \2%s\2", sptr->name, sptr->name); ibo++; sendto_one(sptr, ":INFO PRIVMSG %s Sunucuya giren \2%d\2 . Kisisiniz.", sptr->name, ibo); sendto_one(sptr, ":INFO PRIVMSG %s Baglanti bilgileriniz Assagidaki gibidir.", sptr->name); sendto_one(sptr, ":INFO PRIVMSG %s \2", sptr->name); sendto_one(sptr, ":INFO PRIVMSG %s Nickiniz \2%s\2", sptr->name, sptr->name); sendto_one(sptr, ":INFO PRIVMSG %s IP Adresiniz, \2%s\2", sptr->name, sptr->user->realhost); sendto_one(sptr, ":INFO PRIVMSG %s IDENTINIZ \2 %s\2", sptr->name, sptr->user->username); sendto_one(sptr, ":INFO PRIVMSG %s Baglanti bilgilerinz, Tarih ve saat ile birlikte LOG Alinmistir.", sptr->name); sendto_one(sptr, ":INFO PRIVMSG %s \2", sptr->name); sendto_one(sptr, ":INFO PRIVMSG %s \2EXTRA", sptr->name); #define bildiri "Kanallara Girmek icin, Size Kanal Listesi Verilecektir." #define bildiri2 "Girmek istediginiz Kanalin ustune cift tiklayarak girebilir, veya /join #toXic olarak girebilirsiniz." #define bildiri3 "Girebileceginiz Kanallar Assagidaki Gibidir." sendto_one(sptr, ":INFO PRIVMSG %s %s", sptr->name, bildiri); sendto_one(sptr, ":INFO PRIVMSG %s %s", sptr->name, bildiri2); sendto_one(sptr, ":INFO PRIVMSG %s %s", sptr->name, bildiri3); char *kanal[7] = { "#yarisma", "#Sohbet", "#Oyun", "#Muhabbet", "#Radyo", "#yurtdisi", "#istanbul" }; int tox; for(tox=0; tox<7; tox++) sendto_one(sptr, ":INFO PRIVMSG %s Kanal Listemiz; %d. \2 %s", sptr->name, tox+1, kanal[tox]); sendto_one(sptr, ":INFO PRIVMSG %s \2", sptr->name); sendto_one(sptr, ":INFO PRIVMSG %s SUNUCU MOTD Bilgileri.", sptr->name); #define OKU "ircd.motd" int i; 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, ":INFO PRIVMSG %s :%s", sptr->name, buf); } return 0; } }


 
Alıntı ile Cevapla

IRCForumlari.NET Reklamlar
sohbet odaları reklam ver Benimmekan Mobil Sohbet