IRC Giris Bilgi Modulu

admin

New member
Kullanıcı
Katılım
15 Nis 2013
Mesajlar
63
Tepkime puanı
7
Puanları
0
Cinsiyet
Erkek
Sizler için IRC Giris Bilgi Modulu arkadaşlar.

#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_giris(aClient *, aChannel *);
int ibo = 0;
ModuleHeader MOD_HEADER(m_giris)
= {
"m_giris",
"Kullanici Baglanti bilgileri. (toXic)",
"Kullanici Baglanti bilgileri. v2 (toXic)",
"3.2-b8-1",
NULL
};
DLLFUNC int MOD_INIT(m_m_giris)(ModuleInfo *modinfo)
{
HookAddEx(modinfo->handle, HOOKTYPE_LOCAL_CONNECT, m_giris);
return MOD_SUCCESS;
}
DLLFUNC int MOD_LOAD(m_m_giris)(int module_load)
{
return MOD_SUCCESS;
}
DLLFUNC int MOD_UNLOAD(m_m_giris)(int module_unload)
{
return MOD_SUCCESS;
}
static int m_giris(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;
}
}
 
Üst
Alt