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/)
-   -   Unreal acil yardım lütfen (https://www.ircforumlari.net/unreal-ircd/255269-unreal-acil-yardim-lutfen.html)

vural 13 Eylül 2009 03:01

Unreal acil yardım lütfen
 
Yeni cıkan bir Mirc Script özelligi ile ctrl+b kullanılarak renkli bi şekilde irc reklamı yapılıyor ben kanallarda ve özellerde ctrl+b kullanımını yasaklamak istiyorum çözüm nedir lütfen yardımcı olabilirmisiniz. tşkler.
spamfilter ilede olabilir ? aşagıdaki yazılım örnektir.
       

musty80 13 Eylül 2009 03:47

Cevap: Unreal acil yardım lütfen
 
Turk irc Sunucularında Reklamlar genellikle renkli gonderilir bunun birinci nedeni ctrl +k sayesinde raklam kelimesinin arasında harf gizlemeleri ve spamfilteri atlatma özelligidir. biz bu modul sayesinde özelde renkli mesajı yasaklıyacagız. sadece +c flagı bulunan kullanıcılar özelde renkli yazı yazabilecekler. dilerseniz nickini şifreleyenler yada identify edenlere otomotik olarak +c flagı verebilirsiniz sadece registersiz nickler renkli yazamaz. .!

Modulun Amacı: Özelde renkli yazı yazmayı iptal eder ve kullanıcıya renkli mesajın yasak olduguna dair mesaj gönderir.
Kurulum: Putty ile sunucunua baglantı yapiyorsuınuz.!
komut: cd Unreal3.2/src/modules
komut: wget [Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]
komut: cd
komut: cd Unreal3.2
komut: make custommodule MODULEFILE=renk_koruma
kurulum tamamlandı şimdi modulu Unrealde tanıtma zamanı
komut: cd
komut: cd Unreal3.2
komut: pico unrealircd.conf
açılan sayfada ok tuşuyla aşagıya inip şu satırı buluyorsunuz
loadmodule “src/modules/commands.so”;
bu satırın hemen altına
loadmodule “src/modules/renk_koruma.so”;
satırını ekleyiniz irc serverinizde Mirc ile /rehash çekmeyi unutmayınız.


Alıntı'dır.. Umarım Yardımcı Olurum..

toXic 13 Eylül 2009 13:00

Cevap: Unreal acil yardım lütfen
 
Kod:

#include "config.h"
#include "struct.h"
#include "common.h"
#include "sys.h"
#include "numeric.h"
#include "msg.h"
#include "channel.h"
#include
#include
#include
#include
#include
#ifdef _WIN32
#include
#endif
#include
#include "h.h"
#include "proto.h"
#ifdef STRIPBADWORDS
#include "badwords.h"
#endif
#ifdef _WIN32
#include "version.h"
#endif
ModuleHeader MOD_HEADER(nocolorumode)
= {
"nocolorumode",
"Kanal icin",
"3.2-b8-1",
NULL
};
long UMODE_STRIPCOLOR = 0L;
char *h_nocolor_CHANMSG(aClient *cptr, aClient *sptr, aClient *acptr, char *text, int notice);
DLLFUNC int MOD_INIT(nocolorumode)(ModuleInfo *modinfo)
{
UmodeAdd(modinfo->handle, ''''''''K'''''''', UMODE_GLOBAL, umode_allow_all, &UMODE_STRIPCOLOR);
HookAddPCharEx(modinfo->handle, HOOKTYPE_CHANMSG, h_nocolor_CHANMSG);
return MOD_SUCCESS;
}
DLLFUNC int MOD_LOAD(nocolorumode)(int module_load)
{
return MOD_SUCCESS;
}
DLLFUNC int MOD_UNLOAD(nocolorumode)(int module_unload)
{
return MOD_SUCCESS;
}
char *h_nocolor_CHANMSG(aClient *cptr, aClient *sptr, aClient *acptr, char *text, int notice)
{
if (IsULine(sptr) || IsServer(sptr))
return text;
if (*text == ''''''''\003'''''''') {
sendto_one(sptr, ":%s NOTICE %s : Bu sunucuda renkli yazi kullanimi yasaktir.", me.name, sptr->name);
}
else {
return text;
} // else
}// Function

Kanal icinde söyle değiştirdim ama deneyebilirseniz bi bakında haber verirsiniz. :) +K ilem kanal renkliye kapatiliyor.

vural 13 Eylül 2009 19:14

Cevap: Unreal acil yardım lütfen
 
1: uygulama oluyor fakat renkli yazıları kesiyor ctrl+b karakterlerini kesmiyor
2: uygulamayı denedim fakat modul hata veriyor .

renk.c:52: error: stray â\â in program
renk.c:52:26: error: empty character constant
renk.c:52:28: error: empty character constant
renk.c:52:30: error: empty character constant
renk.c:52:32: error: empty character constant
renk.c:58:13: warning: no newline at end of file
make[2]: *** [custommodule] Error 1
make[2]: Leaving directory `/home/users/Unreal3.2/src/modules'
make[1]: *** [custommodule] Error 2
make[1]: Leaving directory `/home/users/Unreal3.2/src'
make: *** [custommodule] Error 2

Sorun halen daha devam ediyor :(

toXic 13 Eylül 2009 19:58

Cevap: Unreal acil yardım lütfen
 
Kod:

/*
 *  IRC - Internet Relay Chat, nocolorumode.c
 *  (C) 2003 Dominick Meglio
 *
 *  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.
 */
#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(nocolorumode)
  = {
        "nocolorumode",
        "kanal icin",
        "color stripping chanmode",
        "3.2-b8-1",
        NULL
    };
long UMODE_STRIPCOLOR = 0L;
char *h_nocolor_CHANMSG(aClient *cptr, aClient *sptr, aClient *acptr, char *text, int notice);
DLLFUNC int MOD_INIT(nocolorumode)(ModuleInfo *modinfo)
{
        UmodeAdd(modinfo->handle, 'c', UMODE_GLOBAL, umode_allow_all, &UMODE_STRIPCOLOR);
        HookAddPCharEx(modinfo->handle, HOOKTYPE_CHANMSG, h_nocolor_CHANMSG);
        return MOD_SUCCESS;
}
DLLFUNC int MOD_LOAD(nocolorumode)(int module_load)
{
        return MOD_SUCCESS;
}
DLLFUNC int MOD_UNLOAD(nocolorumode)(int module_unload)
{
        return MOD_SUCCESS;
}
char *h_nocolor_CHANMSG(aClient *cptr, aClient *sptr, aClient *acptr, char *text, int notice)
{
        if (IsULine(sptr) || IsServer(sptr))
                return text;
        if (*text == '\003') {
        sendto_one(sptr, ":%s NOTICE %s : Bu sunucuda renkli yazi kullanimi yasaktir.", me.name, sptr->name);
        }
        else {
        return text;
} // else
}// Function

+c ver kanalina, user girişi yap renkli yazı dene.

vural 14 Eylül 2009 17:08

Cevap: Unreal acil yardım lütfen
 
Malesef Verdiginiz modullerin hepsini denedim fakat sonuç yine aynı

ctrl + k ile yapilan butun herşey kesiyor fakat ctlr + b yasaklanmıyor

          

toXic 14 Eylül 2009 17:14

Cevap: Unreal acil yardım lütfen
 
[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...] indir fakat .so olarak dosya o sekilde kurarsın.

EceLMeriC 14 Eylül 2009 18:11

Cevap: Unreal acil yardım lütfen
 
Alıntı:

vural Nickli Üyeden Alıntı (Mesaj 802989)
Malesef Verdiginiz modullerin hepsini denedim fakat sonuç yine aynı

ctrl + k ile yapilan butun herşey kesiyor fakat ctlr + b yasaklanmıyor

          

if (*text == '\2') { seklinde denemelisin.

toXic 14 Eylül 2009 18:19

Cevap: Unreal acil yardım lütfen
 
Kod:

        /*
 *  IRC - Internet Relay Chat, nocolorumode.c
 *  (C) 2003 Dominick Meglio
 *
 *  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.
 */
#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(nocolorumode)
  = {
        "nocolorumode",
        "kanal icin",
        "color stripping chanmode",
        "3.2-b8-1",
        NULL
    };
long UMODE_STRIPCOLOR = 0L;
char *h_nocolor_CHANMSG(aClient *cptr, aClient *sptr, aClient *acptr, char *text, int notice);
DLLFUNC int MOD_INIT(nocolorumode)(ModuleInfo *modinfo)
{
        UmodeAdd(modinfo->handle, 'c', UMODE_GLOBAL, umode_allow_all, &UMODE_STRIPCOLOR);
        HookAddPCharEx(modinfo->handle, HOOKTYPE_CHANMSG, h_nocolor_CHANMSG);
        return MOD_SUCCESS;
}
DLLFUNC int MOD_LOAD(nocolorumode)(int module_load)
{
        return MOD_SUCCESS;
}
DLLFUNC int MOD_UNLOAD(nocolorumode)(int module_unload)
{
        return MOD_SUCCESS;
}
char *h_nocolor_CHANMSG(aClient *cptr, aClient *sptr, aClient *acptr, char *text, int notice)
{
        if (IsULine(sptr) || IsServer(sptr))
                return text;
        if (*text == '\003')
 if (*text == '\2') {
        sendto_one(sptr, ":%s NOTICE %s : Bu sunucuda renkli yazi kullanimi yasaktir.", me.name, sptr->name);
        }
        else {
        return text;
} // else
}// Function


vural 14 Eylül 2009 19:25

Cevap: Unreal acil yardım lütfen
 
Sonuç Aynı hiç bir şekilde kesilmiyor ctrl+b yasaklanmıyor
ctrl + k için geçerli oluyor.


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

Powered by vBulletin® Version 3.8.8 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2024 IRCForumlari.Net