Serhat abinin bir modulu var bunun için,
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"
#include "proto.h"
#ifdef STRIPBADWORDS
#include "badwords.h"
#endif
#ifdef _WIN32
#include "version.h"
#endif
ModuleHeader MOD_HEADER(m_actionusermsg)
= {
"m_actionusermsg", // modul ismi.
"Renk Korumasi", // aciklamasi.
"by EceLMeriC", // kodliyan.
"3.2-b8-1",
NULL
};
#define Eco "#Opers" // Kullananlari yansitmis oldugumuz kanalimiz.
char *m_actionusermsg(aClient *cptr, aClient *sptr, aChannel *chptr, char *text, int notice);
DLLFUNC int MOD_INIT(m_actionusermsg)(ModuleInfo *modinfo)
{ // Engel HOOKTYPE_USERMSG kullanici ozeli icin, HOOKTYPE_CHANMSG kanal geneli icindir.
HookAddPCharEx(modinfo->handle, HOOKTYPE_USERMSG, m_actionusermsg);
return MOD_SUCCESS;
}
DLLFUNC int MOD_LOAD(m_actionusermsg)(int module_load)
{
return MOD_SUCCESS;
}
DLLFUNC int MOD_UNLOAD(m_actionusermsg)(int module_unload)
{
return MOD_SUCCESS;
}
char *m_actionusermsg(aClient *cptr, aClient *sptr, aChannel *chptr, char *text, int notice)
{
if (IsULine(sptr) || IsServer(sptr) || IsAnOper(sptr))
return text;
if (*text == '\003') { // Ctrl +K engeli.
if ((chptr = find_channel(Eco, NullChn)) != NullChn)
sendto_channel_butone(&me, &me, chptr, ":Action!
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
PRIVMSG %s :Nick: %s Mesaj: %s", Eco, sptr->name, text);
sendto_one(sptr, ":Action NOTICE %s :Özelde Renkli Yazi Kullanimi Yasaktir.", sptr->name);
}
else {
return text;
}
Bunda, Renkli yazıları #opers Kanalına verir.
Yada su sekilde;
[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]
Yasaklayabilirsiniz.