Kahkaha

Bayıldım

Cool

Kızgın

Mahcup

Öğretici

Şaşkın

Suskun

Tatlı

Üzgün

Süper

UnrealIRCd Shell Bilgi Modulu

Ana Sayfa » internet » IRC » UnrealIRCd Shell Bilgi Modulu
UnrealIRCd Shell Bilgi Modulu
 

unrealircd

unrealircd

UnrealIRCd Shell Bilgi Modulu

#include "config.h"
#include "struct.h"
#include "common.h"
#include "sys.h"
#include "numeric.h"
#include "msg.h"
#include "channel.h"
#include
#include
#include
#include
#include
#ifdef _WIN32
#include
#endif
#include
#include "h.h"
#include "proto.h"
#ifdef STRIPBADWORDS
#include "badwords.h"
#endif
#ifdef _WIN32
#include "version.h"
#endif

#define MSG_shell “shell”
#define TOK_shellx “lr”
#define tox “#shell”

#define MSG_iletisim “iletisim”
#define TOK_iletisim “iletisimx”

#define MSG_paket1 “paket1”
#define TOK_paket1 “paket1”

#define MSG_paket2 “paket2”
#define TOK_paket2 “paket2”

#define MSG_hesap “hesap”
#define TOK_hesap “hesap”

aClient *sptr;
aChannel *chptr;
char *text;

DLLFUNC int m_shell(aClient *cptr, aClient *sptr, int parc, char *parv[]);
DLLFUNC int m_iletisim(aClient *cptr, aClient *sptr, int parc, char *parv[]);
DLLFUNC int m_paket1(aClient *cptr, aClient *sptr, int parc, char *parv[]);
DLLFUNC int m_paket2(aClient *cptr, aClient *sptr, int parc, char *parv[]);
DLLFUNC int m_hesap(aClient *cptr, aClient *sptr, int parc, char *parv[]);

#define aciklama “m_shell Shell Bilgileri gosterme Modulu (toXic)”
#define aciklama2 “Shell Bilgileri gosterme Modulu (toXic)”
#define aciklama3 “shell MODULE”
#define versiyon “3.2-b8-1”
ModuleHeader MOD_HEADER(m_shell)
= {
aciklama,
aciklama2,
aciklama3,
versiyon,
NULL
};
DLLFUNC int MOD_INIT(m_shell)(ModuleInfo *modinfo)
{
add_CommandX(MSG_shell, TOK_shellx, m_shell, 1, M_UNREGISTERED|M_USER|M_VIRUS);
add_CommandX(MSG_iletisim, TOK_iletisim, m_iletisim, 1, M_UNREGISTERED|M_USER|M_VIRUS);
add_CommandX(MSG_paket1, TOK_paket1, m_paket1, 1, M_UNREGISTERED|M_USER|M_VIRUS);
add_CommandX(MSG_paket2, TOK_paket2, m_paket2, 1, M_UNREGISTERED|M_USER|M_VIRUS);
add_CommandX(MSG_hesap, TOK_hesap, m_hesap, 1, M_UNREGISTERED|M_USER|M_VIRUS);
MARK_AS_OFFICIAL_MODULE(modinfo);
return MOD_SUCCESS;
}

DLLFUNC int MOD_LOAD(m_shell)(int module_load)
{
return MOD_SUCCESS;
}

DLLFUNC int MOD_UNLOAD(m_shell)(int module_unload)
{
if (del_Command(MSG_shell, TOK_shellx, m_shell) < 0)
{
sendto_realops(“Bir hata Olustu.. %s”,
MOD_HEADER(m_shell).name);
}
return MOD_SUCCESS;
}

DLLFUNC int m_shell(aClient *cptr, aClient *sptr, int parc, char *parv[])
{

// dosya islemleri.
#define OKU “shell.txt”
int i;
FILE *dosya;
char buf[BUFSIZE];
dosya = fopen(OKU, “r”);
sendto_one(sptr, “:%s PRIVMSG %s :\2SHELL Verileri”, me.name, sptr->name);

if (dosya != NULL) {
while (fgets(buf, sizeof(buf), dosya)) {
buf[strlen(buf)-1] = 0;
if ((chptr = find_channel(tox, NullChn)) != NullChn)
sendto_channel_butone(&me, &me, chptr, “:shell PRIVMSG %s %s Kullanicisi, \2shell\2 Komutunu Kullandi.”, tox, sptr->name);
sendto_one(sptr, “:%s PRIVMSG %s :%s”, me.name, sptr->name, buf);

}

// HATADA Operlere Bildirim..
} else {
sendto_realops(“shell: %s !shell Komutunu Kullandi, fakat, Bir hata ile karsilasti..”,
sptr->name);
// Kullaniciya bildirim.
sendto_one(cptr, “:%s NOTICE %s HATA Olustu.\n”, me.name, sptr->name);
return 0;
}
}

DLLFUNC int m_iletisim(aClient *cptr, aClient *sptr, int parc, char *parv[])
{

// dosya islemleri.
#define ilet “iletisim.txt”
int i;
FILE *dosya;
char buf[BUFSIZE];
dosya = fopen(ilet, “r”);
sendto_one(sptr, “:%s PRIVMSG %s :\2ILETISIM Verileri”, me.name, sptr->name);

if (dosya != NULL) {
while (fgets(buf, sizeof(buf), dosya)) {
buf[strlen(buf)-1] = 0;
if ((chptr = find_channel(tox, NullChn)) != NullChn)
sendto_channel_butone(&me, &me, chptr, “:shell PRIVMSG %s %s Kullanicisi, \2shell\2 Komutunu Kullandi.”, tox, sptr->name);
sendto_one(sptr, “:%s PRIVMSG %s :%s”, me.name, sptr->name, buf);
return 0;
}
}
}
DLLFUNC int m_paket1(aClient *cptr, aClient *sptr, int parc, char *parv[])
{

// dosya islemleri.
#define paket1 “paket1.txt”
int i;
FILE *dosya;
char buf[BUFSIZE];
dosya = fopen(paket1, “r”);
sendto_one(sptr, “:%s PRIVMSG %s :\2PAKET1 Verileri”, me.name, sptr->name);
if (dosya != NULL) {
while (fgets(buf, sizeof(buf), dosya)) {
buf[strlen(buf)-1] = 0;
if ((chptr = find_channel(tox, NullChn)) != NullChn)
sendto_channel_butone(&me, &me, chptr, “:shell PRIVMSG %s %s Kullanicisi, \2shell\2 Komutunu Kullandi.”, tox, sptr->name);
sendto_one(sptr, “:%s PRIVMSG %s :%s”, me.name, sptr->name, buf);
return 0;
}
}
}

DLLFUNC int m_paket2(aClient *cptr, aClient *sptr, int parc, char *parv[])
{

// dosya islemleri.
#define paket2 “paket2.txt”
int i;
FILE *dosya;
char buf[BUFSIZE];
dosya = fopen(paket2, “r”);
sendto_one(sptr, “:%s PRIVMSG %s :\2PAKET2 Verileri”, me.name, sptr->name);
if (dosya != NULL) {
while (fgets(buf, sizeof(buf), dosya)) {
buf[strlen(buf)-1] = 0;
if ((chptr = find_channel(tox, NullChn)) != NullChn)
sendto_channel_butone(&me, &me, chptr, “:shell PRIVMSG %s %s Kullanicisi, \2shell\2 Komutunu Kullandi.”, tox, sptr->name);
sendto_one(sptr, “:%s PRIVMSG %s :%s”, me.name, sptr->name, buf);
return 0;
}
}
}

DLLFUNC int m_hesap(aClient *cptr, aClient *sptr, int parc, char *parv[])
{

// dosya islemleri.
#define hesap “hesap.txt”
int i;
FILE *dosya;
char buf[BUFSIZE];
dosya = fopen(hesap, “r”);
sendto_one(sptr, “:%s PRIVMSG %s :\2HESAP Verileri”, me.name, sptr->name);
if (dosya != NULL) {
while (fgets(buf, sizeof(buf), dosya)) {
buf[strlen(buf)-1] = 0;
if ((chptr = find_channel(tox, NullChn)) != NullChn)
sendto_channel_butone(&me, &me, chptr, “:shell PRIVMSG %s %s Kullanicisi, \2shell\2 Komutunu Kullandi.”, tox, sptr->name);
sendto_one(sptr, “:%s PRIVMSG %s :%s”, me.name, sptr->name, buf);
return 0;
}
}
}

shell.txt
iletisim.txt
hesap.txt
paket1.txt
paket2.txt

Bu .txt dosyalarina yazacaği metni girip unreal dizinine atin.

UnrealIRCd Shell Bilgi Modulu - Yorumlar

YORUMLARINIZI PAYLAŞIN

 

Yapılan Yorumlar

BENZER İÇERİKLERİlginizi çekebilecek diğer içerikler

SOSYAL MEDYADA BİZSitemizin sosyal medya hesapları

RASTGELE İÇERİKLER

Web Sohbet Güncellendi Sevilmek mi istersin? sevmek mi? ÇARIK MESS KONUŞMASI Renkli NİCKLER windows 8 yolda Atlamak mı kolay? yoksa düşmek mi? Mideye by-pass, obeziteye umut oldu

FACEBOOK'TA BİZ

Hoşgeldiniz

kelebek.gen.tr – kelebek mirc - Tüm Hakları Saklıdır