Muhtemelen scriptinizden kaynaklanan bir sorun.
Yukardan mesaj'ciyi değiştirebilirsiniz.
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_giris(aClient *, aChannel *);
int ibo = 0;
#define iboname "BILGI"
ModuleHeader MOD_HEADER(m_giris)
= {
"m_giris",
"Kullanici Baglanti bilgileri. (toXic)",
"Kullanici Baglanti bilgileri. v4 (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) {
/*
time_t irc_time;
struct tm tdate;
irc_time = time(NULL);
tdate = *localtime(&irc_time);
int gun;
gun = tdate.tm_mday;
FILE *Dosya;
char buf[BUFSIZE];
char format[] = "Logs/%d.txt";
char filename[sizeof format+100];
sprintf(filename,format,gun);
Dosya = fopen(filename, "a");
fprintf (Dosya, "Tarih: %02d-%02d-%02d Saat: %02d:%02d Nick: %s IP: %s IDENT: %s\n",
tdate.tm_mday, tdate.tm_mon + 1,
tdate.tm_year - 100, tdate.tm_hour, tdate.tm_min, sptr->name, sptr->user->realhost,
sptr->user->username);
fclose (Dosya);
return 0;
*/
sendto_one(sptr, ":%s PRIVMSG %s :2Merhaba \2%s\2", iboname, sptr->name, sptr->name);
ibo++;
sendto_one(sptr, ":%s PRIVMSG %s :4Sunucuya giren \2%d\2 . Kisisiniz.", iboname, sptr->name, ibo);
sendto_one(sptr, ":%s PRIVMSG %s :2Baglanti bilgileriniz Assagidaki gibidir.", iboname, sptr->name);
sendto_one(sptr, ":%s PRIVMSG %s :\2", iboname, sptr->name);
sendto_one(sptr, ":%s PRIVMSG %s :4Nickiniz \2%s\2", iboname, sptr->name, sptr->name);
sendto_one(sptr, ":%s PRIVMSG %s :2IP Adresiniz, \2%s\2", iboname, sptr->name, sptr->user->realhost);
sendto_one(sptr, ":%s PRIVMSG %s :4IDENTINIZ \2 %s\2", iboname, sptr->name, sptr->user->username);
sendto_one(sptr, ":%s PRIVMSG %s :2Baglanti bilgilerinz, Tarih ve saat ile birlikte LOG Alinmistir.", iboname, sptr->name);
sendto_one(sptr, ":%s PRIVMSG %s :\2", iboname, sptr->name);
sendto_one(sptr, ":%s PRIVMSG %s :4\2EXTRA", iboname, sptr->name);
sendto_one(sptr, ":%s PRIVMSG %s :\2", iboname, sptr->name);
sendto_one(sptr, ":%s PRIVMSG %s :2 ~ Sıralamaya Göre Popüler Oda'larımızdaki Kullanıcı Sayısı ~ ", iboname, sptr->name);
sendto_one(sptr, ":%s PRIVMSG %s :~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", iboname, sptr->name, me.name);
aChannel *chanptr;
if (chanptr = find_channel("#Sohbet", (aChannel *)NULL)) {
sendto_one(sptr, ":%s PRIVMSG %s :4\2#Sohbet\2 kanali su anda \2%d\2 kisi. ", iboname, sptr->name, chanptr->users);
}
if (chanptr = find_channel("#Radyo", (aChannel *)NULL)) {
sendto_one(sptr, ":%s PRIVMSG %s :5\2#Radyo\2 kanali su anda \2%d\2 kisi.", iboname, sptr->name, chanptr->users);
}
if (chanptr = find_channel("#Oyun", (aChannel *)NULL)) {
sendto_one(sptr, ":%s PRIVMSG %s :7\2#Oyun\2 kanali su anda \2%d\2 kisi.", iboname, sptr->name, chanptr->users);
}
if (chanptr = find_channel("#Geyik", (aChannel *)NULL)) {
sendto_one(sptr, ":%s PRIVMSG %s :3\2#Geyik\2 kanali su anda \2%d\2 kisi.", iboname, sptr->name, chanptr->users);
}
}