IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   Unreal IRCd (https://www.ircforumlari.net/unreal-ircd/)
-   -   Modul İle Alakalı (https://www.ircforumlari.net/unreal-ircd/344789-modul-ile-alakali.html)

Korkut 19 Temmuz 2010 01:38

Modul İle Alakalı
 
Merhaba arkadaşlar Elimde /global yazınca özele DUYURU : mesaj şeklinde bi yazı gidiyor yanlız ben bunun komudunu deiştirmek istiyorum ve sadece tek bi nickin komutu kullanmasını istiyorum acaba nası yaparım bilgisi olan arkadaşlar yardımcı olabilirse sevinirim.

PHP- Kodu:

/* 
************************************************** ************************* 
************************************************** *************** 
** Global Noticer **
** Ozele Mesaj Atan Ufak Modul **
************************************************** **************** 
************************************************** *************************
*/
 
 
#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
 
// Configuration
#define MSG_GLOBAL "GLOBAL"
#define TOK_GLOBAL "GLOBAL"
#define DESCRIPTION "Chatsevdam System secure bots team"
#define SENDER "DUYURU"
#define STYPE "PRIVMSG" /* NOTICE OR PRIVMSG */
// End of configuration
 
DLLFUNC int m_global(aClient *cptraClient *sptrint parcchar *parv[]);
void do_global(aClient *, aClient *, char *);
 
ModuleHeader MOD_HEADER(global)
= {
"Global Noticer",
"v1.0 by Kaan",
DESCRIPTION,
"3.2-b8-1",
NULL 
};
 
DLLFUNC int MOD_INIT(m_global)(ModuleInfo *modinfo)
{
add_Command(MSG_GLOBALTOK_GLOBALm_global1);
MARK_AS_OFFICIAL_MODULE(modinfo);
return 
MOD_SUCCESS;
}
 
DLLFUNC int MOD_LOAD(m_global)(int module_load)
{
return 
MOD_SUCCESS;
}
 
DLLFUNC int MOD_UNLOAD(m_global)(int module_unload)
{
if (
del_Command(MSG_GLOBALTOK_GLOBALm_global) < 0)
{
sendto_realops("Failed to delete commands when unloading %s",
MOD_HEADER(m_global).name);
}
return 
MOD_SUCCESS;
}
 
void do_global(aClient *sptraClient *cptrchar *gmessage) {
aClient *acptr;
 
for (
acptr clientacptracptr acptr->next)
{
if (
IsRegistered(acptr) && !IsULine(acptr)) {
sendto_one(acptr":%s!GNoticer@%s %s %s :%s"SENDERme.nameSTYPEacptr->namegmessage);
}
}
}
 
DLLFUNC int m_global(aClient *cptraClient *sptrint parcchar *parv[]) {
aClient acptr;
char *gmessage
 
if (!
IsOper(sptr)) {
sendto_one(sptrerr_str(ERR_NOPRIVILEGES), me.nameparv[0]);
return 
0;
}
if (
parc 2)
{
sendto_one(sptrerr_str(ERR_NEEDMOREPARAMS), me.nameparv[0], "GLOBAL");
return 
0;
}
if (*
parv[1]) {
gmessage parv[1];
do_global(sptrcptrgmessage);
}
 



EkrreM 20 Temmuz 2010 09:28

Cevap: Modul İle Alakalı
 
#define MSG_GLOBAL "GLOBAL"
#define TOK_GLOBAL "GLOBAL"


degiştirirsen olur


Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 06:16.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2025 IRCForumlari.Net Sparhawk