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/)
-   Hazır_kodlar (https://www.ircforumlari.net/hazir_kodlar/)
-   -   OPERLER İçin Renkli HOST ve IDENT (https://www.ircforumlari.net/hazir_kodlar/216079-operler-icin-renkli-host-ve-ident.html)

GemLik 14 Haziran 2009 08:31

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
Alıntı:

Sadoo Nickli Üyeden Alıntı (Mesaj 737099)
Bu Olayı Tam Olarak Anlatırsanız Sevinirim :S [Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]

2 tane modul paylaşmış arkadaş bunlar

Unreal3.2 / src / modules deki m_chgident.c ve m_chghost.c dir bunlar unrealin orjinal modulleri olduğu için ilk olarak bunları siliyor ve arkadaşın verdiklerini atıyorsunuz daha sonra Unreal3.2 ana dizinde make çekip /rehash atmanız yeterli olacaktır.

SuperX 18 Haziran 2009 23:07

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
tşk [Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...] emegine saglık GemLik yardımın icinde saqol

Joop 12 Temmuz 2009 06:19

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
Alıntı:

GemLik Nickli Üyeden Alıntı (Mesaj 736839)
/chghost GemLik 0,4IRCForumlari.Net

gibi deneyin modulu yukledikden sonra :) sanırım çalışacaktır.

Dj Helper Gibi Görevlilerin identify oldukdan sonra
Oper Adminlerin Oper passlarından Sonra Oto Değişmesi Mümkünmü ? Sabit Bir Renkde Sabit Bir Hostda

Murebba 11 Mart 2010 12:04

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
onuda check.c den yaparsın :)

ircservices**** /modules/chanserv/check.c de

if (call_callback_4(module, cb_check_chan_user_modes,
source, user, c, modes) > 0)
return;
bu satırı bul altına ekle ..


if (!stricmp(c->name, "#help") && check_access(user, ci, CA_AUTOOP)) {
send_cmd(s_NickServ, "chghost %s 7Helpop.1siteadi.com", user->nick);
send_cmd(s_NickServ, "Chgident %s 4Help", user->nick);
}

kolay gelsin.. konunun ustunden cok gecmis ama arayan biri cıkar heralde ..

IcNaMeK 15 Mart 2010 11:04

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
Calısmadı

yanki 15 Mart 2010 11:08

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
Hata aliyormusunuz ?
rehash çektiniz mi sunucuya ?
Yada restart ?

toXic 15 Mart 2010 15:53

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
Çalışmadı değil, ÇA-LIŞ-TI-RA-MA-DIM. resimde cektim calismasa o resim öyle olmazdi, öyle değil mi?

JaqCaL 17 Nisan 2010 23:06

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
*** /ChgHost Error: A hostname may contain a-z, A-Z, 0-9, '-' & '.' - Please only use them bu sorunla karşılaştım.

CaNaTaN 18 Nisan 2010 00:19

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
Bu Arada $unuda ßeLirteyim Crdede YapılabiLen ßirşey ßu Ama Henüz Paylaşılmadı.

toXic 18 Nisan 2010 15:38

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
Alıntı:

JaqCaL Nickli Üyeden Alıntı (Mesaj 1040387032)
*** /ChgHost Error: A hostname may contain a-z, A-Z, 0-9, '-' & '.' - Please only use them bu sorunla karşılaştım.

Kodlari atarken hepsi calisiyordu moduller suanda su modullerden chgident konusunda süpheliyim fakat chghost'un kesin calismasi gerekiyor. ( Eğer değiştirmediysem ) tam hatırlamıyorum ama 4-5 ay önce bu konudaki modul'ü aldiğimda calisiyor durumda idi. Eğer aksi durum varsa özür dilerim hemen güncellerim. Suanda Kelebek.Gen.TR'de kullaniyorum hemen ftp'den alayim.


Kod:

/*
 *  IRC - Internet Relay Chat, src/modules/m_chghost.c
 *  (C) 1999-2001 Carsten Munk (Techie/Stskeeps) <[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]>
 *
 *  See file AUTHORS in IRC package for additional names of
 *  the programmers.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 1, or (at your option)
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
/**
 * 2003-01-06
 * - Added ability to log command to ircd.log
 * XeRXeS
 */
#include "macros.h"
#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
#define MSG_CHGHOST  "CHGHOST"
#define TOK_CHGHOST  "AL"
DLLFUNC int m_chghost(aClient *cptr, aClient *sptr, int parc, char *parv[]);
ModuleHeader MOD_HEADER(m_chghost)
  = {
 "chghost", /* Name of module */
 "$Id: m_chghost.c,v  stskeeps Exp $", /* Version */
 "Renkli Host Sistemi - toXic -", /* Short description of module */
 "3.2-b8-1",
    };
DLLFUNC int MOD_INIT(m_chghost)(ModuleInfo *modinfo)
{
 /*
  * We call our add_Command crap here
 */
 add_Command(MSG_CHGHOST, TOK_CHGHOST, m_chghost, MAXPARA);
 MARK_AS_OFFICIAL_MODULE(modinfo);
 return MOD_SUCCESS;
}
DLLFUNC int MOD_LOAD(m_chghost)(int module_load)
{
 return MOD_SUCCESS;
 
}
DLLFUNC int MOD_UNLOAD(m_chghost)(int module_unload)
{
 if (del_Command(MSG_CHGHOST, TOK_CHGHOST, m_chghost) < 0)
 {
  sendto_realops("Failed to delete commands when unloading %s",
    MOD_HEADER(m_chghost).name);
 }
 return MOD_SUCCESS;
 
}
/*
 * m_chghost - 12/07/1999 (two months after I made SETIDENT) - Stskeeps
 * :prefix CHGHOST <nick> <new hostname>
 * parv[0] - sender
 * parv[1] - nickname
 * parv[2] - hostname
 *
*/
DLLFUNC int m_chghost(aClient *cptr, aClient *sptr, int parc, char *parv[])
{
 aClient *acptr;
 if (MyClient(sptr) && !IsAnOper(sptr))
 {
  sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name,
  parv[0]);
  return 0;
 }
#ifdef DISABLE_USERMOD
 if (MyClient(sptr))
 {
  sendto_one(sptr, err_str(ERR_DISABLED), me.name, sptr->name, "CHGHOST",
  "This command is disabled on this server");
  return 0;
 }
#endif
/* if ((parc < 3) || !*parv[2])
 {
  sendto_one(sptr, err_str(ERR_NEEDMOREPARAMS), me.name, sptr->name, "CHGHOST");
  return 0;
 }
*/
/* if (strlen(parv[2]) > (HOSTLEN))
 {
  sendnotice(sptr, "*** ChgName Error: Requested hostname too long -- rejected.");
  return 0;
 }
*/
/*
 if (!valid_host(parv[2]))
 {
  sendnotice(sptr, "*** /ChgHost Error: A hostname may contain a-z, A-Z, 0-9, '-' & '.' - Please only use them");
  return 0;
 }
 if (parv[2][0] == ':')
 {
  sendnotice(sptr, "*** A hostname cannot start with ':'");
  return 0;
 }
 */
 if ((acptr = find_person(parv[1], NULL)))
 {
  DYN_LOCAL(char, did_parts, acptr->user->joined);
  if (MyClient(sptr) && (IsLocOp(sptr) && !MyClient(acptr)))
  {
  sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name,
    parv[0]);
  DYN_FREE(did_parts);
  return 0;
  }
/*
 
  if (!strcmp(GetHost(acptr), parv[2]))
  {
  sendnotice(sptr, "*** /ChgHost Error: requested host is same as current host.");
  DYN_FREE(did_parts);
  return 0;
  }
 */
  switch (UHOST_ALLOWED)
  {
  case UHALLOW_NEVER:
    if (MyClient(sptr))
    {
    sendto_one(sptr, err_str(ERR_DISABLED), me.name, sptr->name, "CHGHOST",
      "This command is disabled on this server");
    DYN_FREE(did_parts);
    return 0;
    }
    break;
  case UHALLOW_ALWAYS:
    break;
  case UHALLOW_NOCHANS:
/*
    if (IsPerson(acptr) && MyClient(sptr) && acptr->user->joined)
    {
    sendnotice(sptr, "*** /ChgHost can not be used while %s is on a channel", acptr->name);
    DYN_FREE(did_parts);
    return 0;
    }
 */
    break;
  case UHALLOW_REJOIN:
    rejoin_doparts(acptr, did_parts);
    /* join sent later when the host has been changed */
    break;
  }
   
  if (!IsULine(sptr))
  {
  sendto_snomask(SNO_EYES,
      "%s changed the virtual hostname of %s (%s@%s) to be %s",
      sptr->name, acptr->name, acptr->user->username,
      acptr->user->realhost, parv[2]);
  /* Logging added by XeRXeS */
          ircd_log(LOG_CHGCMDS,                                       
    "CHGHOST: %s changed the virtual hostname of %s (%s@%s) to be %s",
    sptr->name, acptr->name, acptr->user->username, acptr->user->realhost, parv[2]);
  }
 
                 
  acptr->umodes |= UMODE_HIDE;
  acptr->umodes |= UMODE_SETHOST;
  sendto_serv_butone_token(cptr, sptr->name,
      MSG_CHGHOST, TOK_CHGHOST, "%s %s", acptr->name, parv[2]);
  if (acptr->user->virthost)
  {
  MyFree(acptr->user->virthost);
  acptr->user->virthost = 0;
  }
  acptr->user->virthost = strdup(parv[2]);
  if (UHOST_ALLOWED == UHALLOW_REJOIN)
  rejoin_dojoinandmode(acptr, did_parts);
  DYN_FREE(did_parts);
  return 0;
 }
 else
 {
  sendto_one(sptr, err_str(ERR_NOSUCHNICK), me.name, sptr->name,
      parv[1]);
  return 0;
 }
 return 0;
}



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

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