egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Universal channel script
Goto page Previous  1, 2, 3 ... 10, 11, 12, 13, 14, 15  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed Jun 28, 2006 1:58 am    Post subject: Reply with quote

if you need to use spaces embedded in bad word definitions (that are actually treated as, mind you, regular expressions) such as " sex ", patch the script to split by newlines/tabs only, replace:
Code:

foreach elem [split [read $f] " \t\r\n\f"] {

with:
Code:

foreach elem [split [read $f] "\t\r\n\f"] {

and use one bad word definition per line
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
kuto
Voice


Joined: 01 Jun 2006
Posts: 8

PostPosted: Wed Jul 05, 2006 7:00 am    Post subject: bugs in badwords.txt Reply with quote

I followed your instruction but nothing has changed.

code:
foreach elem [split [read $f] "\t\r\n\f"] {

here's the sample:

<chatter> hi sexy!
* bot sets mode: +b *!otlog@*
* chatter was kicked by bot (Banned: We dont need ROTTEN words in here!! shoo shoo!! (1))

in my badwords.txt file
world2
seb
sex
[censored]
[censored]

Hope this help.

Regards.
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Jul 20, 2006 12:45 pm    Post subject: Reply with quote

so you have defined "sex" and not " sex " or even "sex ", what did you expect?
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
exhuman
Voice


Joined: 22 Jul 2006
Posts: 9

PostPosted: Mon Jul 24, 2006 10:46 am    Post subject: Reply with quote

Code:

[20:42] Tcl error in file 'eggdrop.conf':
[20:42] wrong # args: should be "scan nick uhost hand chan"
    while executing
"scan $elem {%[^:]:%[^:]:%s} name udef val"
    (procedure "init" line 33)
    invoked from within
"init $chan"
    ("foreach" body line 2)
    invoked from within
"foreach chan [channels] {
        init $chan
        load $chan bad words
        load $chan whois bads
}"
    (in namespace eval "::xchannel" script line 562)
    invoked from within
"namespace eval xchannel {

variable version "xchannel-3.6"

variable script [info script]

variable names {punish bantype bantime reason}
variable ude..."
    (file "scripts/xchannel.tcl" line 105)
    invoked from within
"source scripts/xchannel.tcl"
    (file "eggdrop.conf" line 1113)
[20:42] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
wishkey@vortex:~/eggdrop$
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Jul 24, 2006 3:16 pm    Post subject: Reply with quote

What's with your [scan] problem?

It seems you have a conflict with a custom proc named scan. Unload any other scripts you might be using.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed Jul 26, 2006 9:26 am    Post subject: Reply with quote

that's why everyone should be using namespaces in their newly-developed scripts
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
exhuman
Voice


Joined: 22 Jul 2006
Posts: 9

PostPosted: Fri Jul 28, 2006 10:21 am    Post subject: Thanks for Help Reply with quote

Thanks to all who helping me.
I am new on IRC and BOT and TCL.

Well now my Eggdrop working cool with your protection.
I need more help and sugessions.

First thing, i making one protection eggdrop so i using your TCL for that, except this TCL i avoiding to use anyother TCL. and Protection is running cool.

Now i have few queries and requesting sugessions.

1. i used +dontkickops but still BOT kick OP which OP type something fast,how to prevent this, i didn't understand how to override eggdrop setting cuz i already used +dontkickops in eggdrop.

2. if some OP deop BOT then either BOT didn't do anything and if i use revenge-mode 1 in eggdrop then bot start deop and kicking OP. i simply want when Someone DEOP BOT, BOT OP himself, and if its repet again then first he deop OP, Then BAN OP and Last KICKBAN that OP who DEOP BOT.

3. As now days MassKick is famous, i want to protect Masskick, so i wish that BOT BAN *!*@services.dal.net, if he see that masskick is taking place and same time he DEL AOP Access who try to do such thing. no matter i be give SOP access to BOT.

4. If any OP join Channel with different Nick by identifing OP access BOT will DEL his Access Automatically. (i didn't know it is possible or not but i feel there is command WHYOP from there BOT be able to scan and check he using OP nick or something else. )

I using this BOT on DALNET so all my request for DALNET Channel Protection.

Please sugesset me it is possible, and if how it will be.

Regards
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Jul 28, 2006 11:17 am    Post subject: Re: Thanks for Help Reply with quote

exhuman wrote:

1. i used +dontkickops but still BOT kick OP which OP type something fast,how to prevent this, i didn't understand how to override eggdrop setting cuz i already used +dontkickops in eggdrop.

have your ops added as +o users in the bot

Quote:

2. if some OP deop BOT then either BOT didn't do anything and if i use revenge-mode 1 in eggdrop then bot start deop and kicking OP. i simply want when Someone DEOP BOT, BOT OP himself, and if its repet again then first he deop OP, Then BAN OP and Last KICKBAN that OP who DEOP BOT.

nobody can op themselves on irc, you need to have someone/something (e.g. services) re-op your bot; this is done via scripting which is not part of xchannel, you need another script for that

Quote:

3. As now days MassKick is famous, i want to protect Masskick, so i wish that BOT BAN *!*@services.dal.net, if he see that masskick is taking place and same time he DEL AOP Access who try to do such thing. no matter i be give SOP access to BOT.

you are confused, services.dal.net is not to be banned, it's network services' host (actually you can't ban it even if you want to do so); moreover, xchannel does not provide protection against your own ops - my firm belief is that if you are stupid enough to allow rogue ops, you deserve what you get from them

Quote:

4. If any OP join Channel with different Nick by identifing OP access BOT will DEL his Access Automatically. (i didn't know it is possible or not but i feel there is command WHYOP from there BOT be able to scan and check he using OP nick or something else. )

again, you need another script for that; xchannel has nothing to do with services, it has another purpose (not to mention that i dislike services and services-related scripts)

Quote:

I using this BOT on DALNET so all my request for DALNET Channel Protection.

then search the script archive for dalnet scripts; xchannel is a general-purpose protection script, not oriented towards any specific irc network or services - and it will stay that way
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Aug 03, 2006 12:33 am    Post subject: Reply with quote

heads up: i'm tinkering with private spam scanner a la spambuster, but much easier to use (nothing to configure except chan cycle frequency); will be included with the next ver, 4.0
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
exhuman
Voice


Joined: 22 Jul 2006
Posts: 9

PostPosted: Sat Aug 05, 2006 3:26 pm    Post subject: Little Help Reply with quote

Please Let me know In xchannen how to Control

Join / Part Flood

Join / Part Flood in which flooder Message/Notice when they Join/Part.

Same time i m Little confuse about timer, if i have to lock channel for 90 second when flood take place then what i will have to do.?

I Getting Problem like this from flooder and my setting is
Code:
.chanset #channel x:mass:rate 4:1

Code:

(01:48) » Joins: _Underground_ (~d4k508856@201.12.189.79)
(01:48) « Parts: _Underground_ (~d4k508856@201.12.189.79) ([                                                                                                                                                                                                                                                                                                     ])
(01:48) » Joins: _Underground_ (~d4k508856@201.12.189.79)
(01:48) « Parts: _Underground_ (~d4k508856@201.12.189.79) ([                                                                                                                                                                                                                                                                                                     ])
(01:48) » Joins: [eRroneous] (~mt8w797@201.12.189.79)
(01:48) « Parts: [eRroneous] (~mt8w797@201.12.189.79) ([                                                                                                                                                                                                                                                                                                     ])
(01:48) » Joins: [eRroneous] (~mt8w797@201.12.189.79)
(01:48) « Parts: [eRroneous] (~mt8w797@201.12.189.79) ([                                                                                                                                                                                                                                                                                                     ])
(01:48) ›› Mode change: +b *!*k508856@201.12.189.* by Op3raToR
(01:48) ›› Mode change: +im by Op3raToR
(01:48) ›› Mode change: +b *!*mt8w797@201.12.189.* by Op3raToR
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Aug 05, 2006 9:41 pm    Post subject: Reply with quote

your x:mass:rate is set to a value that defies the idea of mass flood protection, which is meant to be triggered by considerably larger number of events in slightly longer period of time; I'd suggest you leave the default (20:3) untouched, or at least not set it lower than 10:2

as to controlling join/part floods, those protections obey eggdrop's standard flood settings (flood-join)
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Aug 06, 2006 12:05 am    Post subject: Reply with quote

The NEW version 4.0 is out!

I have implemented private spam scanner similar to that in spambuster, but much easier to configure & use; in fact, you have only one setting to mess with - chan cycle frequency (as usual, per channel)

for those of you who don't know spambuster's scan mechanism - a clone of the bot is being forked and used to periodically cycle +x:pspam channels, catching private spammers; it uses the bot's altnick

as ever, feedback is much appreciated as I'm rarely on IRC these days and haven't tested the new version extensively
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Mon Aug 07, 2006 11:30 pm    Post subject: Reply with quote

hint: you can monitor the spam scanner's actions on console log level 3
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Aug 26, 2006 9:22 pm    Post subject: Reply with quote

a valid rationale for adding dcc commands to another script of mine has been posted elsewhere, so I'll probably borrow the idea also for xchannel
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
kash2k
Voice


Joined: 25 Aug 2006
Posts: 18
Location: India

PostPosted: Mon Aug 28, 2006 10:54 pm    Post subject: Reply with quote

Hi demond.. It is a wonderful script.
All in one.. You can call it Xchannelcompact.tcl Razz

I just have a query : Whenever I Rehash the bot I get an error saying "badword.txt" not found and "badwhois.txt".

Can you tell me if I need to get these files from somewhere? or what is the method to create them.
I am using this script for the first time
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3 ... 10, 11, 12, 13, 14, 15  Next
Page 11 of 15

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber