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)

kup{a}pazl 24 Nisan 2010 16:30

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
Selam, bunda karakter uzunlugu hatası veriyor. Bu limiti yükseltebilirmiyiz ?

toXic 23 Mayıs 2010 13:55

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

DeLiGeNnC Nickli Üyeden Alıntı (Mesaj 1040395311)
Selam, bunda karakter uzunlugu hatası veriyor. Bu limiti yükseltebilirmiyiz ?

Kod:

/*
 *  IRC - Internet Relay Chat, src/modules/m_chghost.c
 *  (C) 1999-2001 Carsten Munk (Techie/Stskeeps) <
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
>
 *
 *  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", /* 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;
 
}

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 ((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;
  }

  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:

    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;
}


Su`Perisi 07 Kasım 2010 03:58

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
güüzel

----------

güzel

MdxL 08 Kasım 2010 00:52

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
bende bunu merk ediodum walla saoalsn:)

dEathLeSs 14 Ocak 2011 11:34

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
Çok güzel çalışıyor, ellerine sağlık :)

ecoll 22 Ocak 2011 20:24

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
Kurdum Güzel Çalışıyor Eline Sağlık. Ama ident Yapmaya Çalışınca

*** ChgIdent Error: Requested ident too long -- rejected.

toXic 25 Ocak 2011 16:01

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
Limiti aşmışsın karakter uzunluğu olarak host'u değiştim identi değişmedim.

fLayer 22 Nisan 2011 17:38

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
->> Nick: uNSuaL <<-
Adres ...=
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.

İsim ......= ..!...
Zaman .= 17:35:09
uNSuaL +iowghraAsOxNWqtp +kcfFvGqso modlarını kullanıyor
Ip Adrs..= bağlantı
Kayıt .....= Nick kayıtlı ve ident edilmiştir
Kanal ...= #operhelp @#log #help #opers #Oyun #Radyo #Sohbet
Server..= irc.takilsana.com takilsana.com IRC Server
Ircop ....= Takilsana Network
Helper .= Server Helper
Idle .......= 350 Saniyedir konuşmamış

hiç bir degisiklik ypamadım verdiginizi attım hata felanda almadım ama olmadı Renk vermiyor

toXic 22 Nisan 2011 18:38

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
Normal yaparsan tabi vermez.:)
Sen yazi yazarken nasil renk veriyorsun? ctrl +k kullanicaksin ve arada boşluk olmayacak.

fLayer 23 Nisan 2011 12:13

Cevap: OPERLER İçin Renkli HOST ve IDENT
 
pardon :S RenKlendirmeyi nerde yapacaqız bulamadım

----------

olayı çözdüm yanlız birşey sormak istiyorum Sabit renk yapamayızmı oper qiren kim olurSa olsun otomatik Renk vermesini saglıyamayızmı


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