Tekil Mesaj gösterimi
Alt 27 Ekim 2006, 10:04   #2
Çevrimdışı
Chelt
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (1)
IF Ticaret Yüzdesi:(%)
Yanıt: Bakarmısınız?




Bu Adreste Çok Sayıda TCL buldum. Senin istediğin TCL Altta Diğer Arşivlere Göz atmak istersen Adres [Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]

Bunu bi Denermisin

PHP Kod:   Kodu kopyalamak için üzerine çift tıklayın!
/* contrib/m_opme.c
* Copyright (C) 2002 Hybrid Development Team
*
*/
#include "stdinc.h"
#include "tools.h"
#include "handlers.h"
#include "channel.h"
#include "channel_mode.h"
#include "client.h"
#include "ircd.h"
#include "numeric.h"
#include "s_log.h"
#include "s_serv.h"
#include "send.h"
#include "whowas.h"
#include "irc_string.h"
#include "hash.h"
#include "msg.h"
#include "parse.h"
#include "modules.h"
 
static void mo_opme(struct Client *client_pstruct Client *source_pint parcchar *parv[]);
static 
int chan_is_opless(struct Channel *chptr);
struct Message opme_msgtab = {
"OPME"0020MFLG_SLOW0,
{
m_unregisteredm_not_operm_ignoremo_opmem_ignore}
};
#ifndef STATIC_MODULES
void
_modinit
(void)
{
mod_add_cmd(&opme_msgtab);
}
void
_moddeinit
(void)
{
mod_del_cmd(&opme_msgtab);
}
const 
char *_version "$Revision: 3.4 $";
#endif
static int
chan_is_opless
(struct Channel *chptr)
{
dlink_node *ptr;
DLINK_FOREACH(ptrchptr->members.head)
if (((
struct Membership *)ptr->data)->flags CHFL_CHANOP)
return(
0);
return(
1);
}
/*
** mo_opme
** parv[0] = sender prefix
** parv[1] = channel
*/
static void
mo_opme
(struct Client *client_pstruct Client *source_p,
int parcchar *parv[])
{
struct Channel *chptr;
struct Membership *member;
/* admins only */
if (!IsAdmin(source_p))
{
sendto_one(source_pform_str(ERR_NOPRIVILEGES),
me.namesource_p->name);
return;
}
/* XXX - we might not have CBURSTed this channel if we are a lazylink
* yet. */
if ((chptr hash_find_channel(parv[1])) == NULL)
{
sendto_one(source_pform_str(ERR_NOSUCHCHANNEL),
me.namesource_p->nameparv[1]);
return;
}
if ((
member find_channel_link(source_pchptr)) == NULL)
{
sendto_one(source_pform_str(ERR_NOTONCHANNEL),
me.namesource_p->nameparv[1]);
return;
}
if (
chan_is_opless(chptr) == 0)
{
sendto_one(source_p":%s NOTICE %s :%s Channel is not opless",
me.namesource_p->nameparv[1]);
return;
}
AddMemberFlag(memberCHFL_CHANOP);
if (
parv[1][0] == '&')
{
sendto_wallops_flags(UMODE_LOCOPS, &me,
"OPME called for [%s] by %s!%s@%s",
parv[1], source_p->namesource_p->username,
source_p->host);
}
else
{
sendto_wallops_flags(UMODE_WALLOP, &me,
"OPME called for [%s] by %s!%s@%s",
parv[1], source_p->namesource_p->username,
source_p->host);
sendto_server(NULLNOCAPSNOCAPS,
":%s WALLOPS :OPME called for [%s] by %s!%s@%s",
me.nameparv[1], source_p->namesource_p->username,
source_p->host);
}
ilog(L_NOTICE"OPME called for [%s] by %s!%s@%s",
parv[1], source_p->namesource_p->username,
source_p->host);
sendto_server(NULLCAP_TS6NOCAPS,
":%s PART %s"ID(source_p), parv[1]);
sendto_server(NULLNOCAPSCAP_TS6,
":%s PART %s"source_p->nameparv[1]);
sendto_server(NULLCAP_TS6NOCAPS,
":%s SJOIN %ld %s + :@%s",
me.id, (unsigned long)chptr->channelts,
parv[1], ID(source_p));
sendto_server(NULLNOCAPSCAP_TS6,
":%s SJOIN %ld %s + :@%s",
me.name, (unsigned long)chptr->channelts,
parv[1], source_p->name);
sendto_channel_local(ALL_MEMBERSchptr":%s MODE %s +o %s",
me.nameparv[1], source_p->name);



 
Alıntı ile Cevapla

IRCForumlari.NET Reklamlar
sohbet odaları reklamver bizimmekan