This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Universal channel script

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

caesar wrote: One question tough, why do you keep the 'creation' of binds inside the 'channel initialisation' (init) inside a loop? what's the point in that?
to facilitate parameterized binds; you surely have noticed I have very few constants/literals embedded in proc code, most are kept in array/list structures and accessed through loops - that's why the script is so compact & much smaller compared to similarly-featured scripts (well, not only because of that of course)
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Well, actually, when rehashed it made the Windrop part the two dynamic channels. :lol: (Alice Through the Looking Glass syndrome?)

My decision to try under another OS (*BSD instead of RH) has come about because the RH box is an internal Rackspace box and for reasons not glaringly obvious, eggdrop can sometimes behave a little "funky".

In static channels the script is no problem; (apparent) failure of the script to initialise dynamically allocated channels when the bot enters (which should not under any circumstances require any rehashing) is annoying only, along with the "can't read" message lines in the log.

The RH bot was running netbots minus sentinel and repeat functions. I will test again (as I said) on a "clean" bot on a box I have never had any reason to question.

Special request: Have it knit jumpers (Winter is on the way). :P
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

spock wrote:ah.. right you are

edit: actually it does seem to work over here
bind evnt - evnt:loaded ; proc evnt:loaded t { putlog $t }
sure enough, it spits out "loaded" on ./eggdrop -n
you are right as ever, turns out it works just fine

I'll get rid of that timer and will use this instead
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

well folks, I can't seem to get any ispiration as of what else to add to this thing

I looked at SirFz's and turns out I basically have all he's got there (sans such stuff like notifying owner on mass flood and klines which doubtfully have legitimate say in channel matters)

so if noone comes up with sane idea(s), I'll go forward and only fix those 2 bugs
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

version 3.6 released

fixed the bug found by Alchera, implemented spock's suggestion, added devoice punish type (some folks run +m channels with automatic voicing, so I thought devoicing could be considered as punishment hehe)
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

@Alchera:

if you are still using the script, please let me know of any errors like those you were experiencing seemingly randomly before; I wonder if that missing dynamic chansets initialization had something to do with those
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Okies demond. I have been away for the past couple of days. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

K.. loaded xchannel.tcl (3.6) ... added a dynamic channel .. had to rehash the bot to stop the dreaded error message (that should not be) and below is the result:

Code: Select all

Enfield User defined channel settings:
Enfield x:drone:bantype: 0   x:drone:bantime: 0   x:door:bantype: 0   x:door:bantime: 0   
Enfield x:flood:bantype: 0   x:flood:bantime: 0   x:clone:bantype: 0   x:clone:bantime: 0   
Enfield x:spam:bantype: 0   x:spam:bantime: 0   x:repeat:bantype: 0   x:repeat:bantime: 0   
Enfield x:whois:bantype: 0   x:whois:bantime: 10   x:bad:bantype: 1   x:bad:bantime: 10   
Enfield x:caps:bantype: 1   x:caps:bantime: 10   x:color:bantype: 1   x:color:bantime: 10   
Enfield x:lag:threshold: 8   x:drone:score: 30   x:door:stay: 40   x:mass:duration: 5   
Enfield x:clone:type: 2   x:clone:count: 4   x:whois:count: 6   x:caps:percent: 70   
Enfield x:limit:slack: 5
Enfield User defined channel strings:
Enfield x:drone:punish: {}
Enfield x:drone:reason: {}
Enfield x:door:punish: {}
Enfield x:door:reason: {}
Enfield x:flood:punish: {}
Enfield x:flood:reason: {}
Enfield x:clone:punish: {}
Enfield x:clone:reason: {}
Enfield x:spam:punish: {}
Enfield x:spam:reason: {}
Enfield x:repeat:punish: {}
Enfield x:repeat:reason: {}
Enfield x:whois:punish: {}
Enfield x:whois:reason: {bad /whois information}
Enfield x:bad:punish: w:k:b
Enfield x:bad:reason: {do not curse}
Enfield x:caps:punish: w:k:b
Enfield x:caps:reason: {caps off}
Enfield x:color:punish: w:k:b
Enfield x:color:reason: {no colors}
Enfield x:mass:rate: 20:3
Enfield x:repeat:rate: 3:10
Enfield x:whois:file: badwhois.txt
Enfield x:bad:file: badwords.txt
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
dusk
Halfop
Posts: 91
Joined: Sun Mar 06, 2005 7:25 pm
Location: Belgium

Little question

Post by dusk »

Just a tiny question...

Is it possible to set the rate of plain public flood? I only find the one for mass flood :oops: . Or does this script use the same setting for both?

Thanx

GRTZ
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

@Alchera:

I cannot reproduce your experience, I don't get any errors on 3.6

Here's mine, no problems at all:

Code: Select all

<demond> .+chan #foobar
<(Bulgaria> [23:25] #demond# +chan #foobar
<demond> .chaninfo #foobar
<(Bulgaria> Settings for dynamic channel #foobar:
<(Bulgaria> Protect modes (chanmode): +tn
<(Bulgaria> Idle Kick after (idle-kick): DON'T!
<(Bulgaria> stopnethack: DON'T!
<(Bulgaria> aop-delay: 5:30
<(Bulgaria> revenge-mode: 0
<(Bulgaria> ban-time: 120
<(Bulgaria> exempt-time: 60
<(Bulgaria> invite-time: 60
<(Bulgaria> Other modes:
<(Bulgaria>      -inactive       +statuslog      -secret         +shared
<(Bulgaria>      +greet          -seen           +cycle          +dontkickops
<(Bulgaria>      +protectops     -protectfriends -revenge        -revengebot
<(Bulgaria>      -bitch          -autoop         -autovoice      -nodesynch
<(Bulgaria>      -enforcebans    +dynamicbans    +userbans       -autohalfop
<(Bulgaria>      -protecthalfops
<(Bulgaria>      +dynamicexempts +userexempts    +dynamicinvites +userinvites
<(Bulgaria> User defined channel flags:
<(Bulgaria>      -noseendata -quietseens -quietaiseens -nopubseens
<(Bulgaria>      -x:limit -x:flood -x:door -x:drone
<(Bulgaria>      -x:repeat -x:spam -x:clone -x:whois
<(Bulgaria>      -x:color -x:caps -x:bad
<(Bulgaria> User defined channel settings:
<(Bulgaria> x:flood:bantype: 1   x:flood:bantime: 10   x:door:bantype: 1   x:door:bantime: 30   
<(Bulgaria> x:drone:bantype: 1   x:drone:bantime: 90   x:repeat:bantype: 1   x:repeat:bantime: 10   
<(Bulgaria> x:spam:bantype: 1   x:spam:bantime: 10   x:clone:bantype: 2   x:clone:bantime: 10   
<(Bulgaria> x:whois:bantype: 1   x:whois:bantime: 10   x:color:bantype: 1   x:color:bantime: 10   
<(Bulgaria> x:caps:bantype: 1   x:caps:bantime: 10   x:bad:bantype: 1   x:bad:bantime: 10   
<(Bulgaria> x:mass:duration: 5   x:door:stay: 40   x:drone:score: 30   x:clone:type: 2   
<(Bulgaria> x:clone:count: 4   x:whois:count: 6   x:limit:slack: 5   x:caps:percent: 70   
<(Bulgaria> x:lag:threshold: 8   
<(Bulgaria> User defined channel strings:
<(Bulgaria> x:flood:punish: w:k:b
<(Bulgaria> x:flood:reason: {stop flooding}
<(Bulgaria> x:door:punish: w:k:b
<(Bulgaria> x:door:reason: {next time visit us longer}
<(Bulgaria> x:drone:punish: w:k:b
<(Bulgaria> x:drone:reason: {possible drone detected}
<(Bulgaria> x:repeat:punish: w:k:b
<(Bulgaria> x:repeat:reason: {repeating is lame}
<(Bulgaria> x:spam:punish: w:k:b
<(Bulgaria> x:spam:reason: spam
<(Bulgaria> x:clone:punish: w:k:b
<(Bulgaria> x:clone:reason: {no cloning please}
<(Bulgaria> x:whois:punish: w:k:b
<(Bulgaria> x:whois:reason: {bad /whois information}
<(Bulgaria> x:color:punish: w:k:b
<(Bulgaria> x:color:reason: {no colors}
<(Bulgaria> x:caps:punish: w:k:b
<(Bulgaria> x:caps:reason: {caps off}
<(Bulgaria> x:bad:punish: w:k:b
<(Bulgaria> x:bad:reason: {do not curse}
<(Bulgaria> x:mass:rate: 20:3
<(Bulgaria> x:repeat:rate: 3:10
<(Bulgaria> x:whois:file: badwhois.txt
<(Bulgaria> x:bad:file: badwords.txt
<(Bulgaria> flood settings: chan ctcp join kick deop nick
<(Bulgaria> number:           10    3    5    3    3    5
<(Bulgaria> time  :           60   60   60   10   10   60
<(Bulgaria> [23:26] #demond# chaninfo #foobar
<demond> .rehash
<(Bulgaria> [23:26] #demond# rehash
<(Bulgaria> Rehashing.
<(Bulgaria> [23:26] Writing user file...
<(Bulgaria> [23:26] Writing channel file...
<(Bulgaria> [23:26] Rehashing ...
<(Bulgaria> [23:26] Listening at telnet port 54331 (all).
<(Bulgaria> [23:26] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
<(Bulgaria> [23:26] use '.help userinfo' for commands.
<(Bulgaria> [23:26] Loading language "en" from language/gseen.en.lang...
<(Bulgaria> [23:26] Loading language "de" from language/gseen.de.lang...
<(Bulgaria> [23:26] Loading language "bg" from language/gseen.bg.cyrillic.lang...
<(Bulgaria> [23:26] tcm-1.2: a little tcm addy by demond loaded
<(Bulgaria> [23:26] rssnews-1.5 by demond loaded
<(Bulgaria> [23:26] rconsole-1.7 by demond loaded
<(Bulgaria> [23:26] xchannel-3.6 by demond loaded successfully
<(Bulgaria> [23:26] Userfile loaded, unpacking...
<demond> .chaninfo #foobar
<(Bulgaria> Settings for dynamic channel #foobar:
<(Bulgaria> Protect modes (chanmode): +tn
<(Bulgaria> Idle Kick after (idle-kick): DON'T!
<(Bulgaria> stopnethack: DON'T!
<(Bulgaria> aop-delay: 5:30
<(Bulgaria> revenge-mode: 0
<(Bulgaria> ban-time: 120
<(Bulgaria> exempt-time: 60
<(Bulgaria> invite-time: 60
<(Bulgaria> Other modes:
<(Bulgaria>      -inactive       +statuslog      -secret         +shared
<(Bulgaria>      +greet          -seen           +cycle          +dontkickops
<(Bulgaria>      +protectops     -protectfriends -revenge        -revengebot
<(Bulgaria>      -bitch          -autoop         -autovoice      -nodesynch
<(Bulgaria>      -enforcebans    +dynamicbans    +userbans       -autohalfop
<(Bulgaria>      -protecthalfops
<(Bulgaria>      +dynamicexempts +userexempts    +dynamicinvites +userinvites
<(Bulgaria> User defined channel flags:
<(Bulgaria>      -noseendata -quietseens -quietaiseens -nopubseens
<(Bulgaria>      -x:limit -x:flood -x:door -x:drone
<(Bulgaria>      -x:repeat -x:spam -x:clone -x:whois
<(Bulgaria>      -x:color -x:caps -x:bad
<(Bulgaria> User defined channel settings:
<(Bulgaria> x:flood:bantype: 1   x:flood:bantime: 10   x:door:bantype: 1   x:door:bantime: 30   
<(Bulgaria> x:drone:bantype: 1   x:drone:bantime: 90   x:repeat:bantype: 1   x:repeat:bantime: 10   
<(Bulgaria> x:spam:bantype: 1   x:spam:bantime: 10   x:clone:bantype: 2   x:clone:bantime: 10   
<(Bulgaria> x:whois:bantype: 1   x:whois:bantime: 10   x:color:bantype: 1   x:color:bantime: 10   
<(Bulgaria> x:caps:bantype: 1   x:caps:bantime: 10   x:bad:bantype: 1   x:bad:bantime: 10   
<(Bulgaria> x:mass:duration: 5   x:door:stay: 40   x:drone:score: 30   x:clone:type: 2   
<(Bulgaria> x:clone:count: 4   x:whois:count: 6   x:limit:slack: 5   x:caps:percent: 70   
<(Bulgaria> x:lag:threshold: 8   
<(Bulgaria> User defined channel strings:
<(Bulgaria> x:flood:punish: w:k:b
<(Bulgaria> x:flood:reason: {stop flooding}
<(Bulgaria> x:door:punish: w:k:b
<(Bulgaria> x:door:reason: {next time visit us longer}
<(Bulgaria> x:drone:punish: w:k:b
<(Bulgaria> x:drone:reason: {possible drone detected}
<(Bulgaria> x:repeat:punish: w:k:b
<(Bulgaria> x:repeat:reason: {repeating is lame}
<(Bulgaria> x:spam:punish: w:k:b
<(Bulgaria> x:spam:reason: spam
<(Bulgaria> x:clone:punish: w:k:b
<(Bulgaria> x:clone:reason: {no cloning please}
<(Bulgaria> x:whois:punish: w:k:b
<(Bulgaria> x:whois:reason: {bad /whois information}
<(Bulgaria> x:color:punish: w:k:b
<(Bulgaria> x:color:reason: {no colors}
<(Bulgaria> x:caps:punish: w:k:b
<(Bulgaria> x:caps:reason: {caps off}
<(Bulgaria> x:bad:punish: w:k:b
<(Bulgaria> x:bad:reason: {do not curse}
<(Bulgaria> x:mass:rate: 20:3
<(Bulgaria> x:repeat:rate: 3:10
<(Bulgaria> x:whois:file: badwhois.txt
<(Bulgaria> x:bad:file: badwords.txt
<(Bulgaria> flood settings: chan ctcp join kick deop nick
<(Bulgaria> number:           10    3    5    3    3    5
<(Bulgaria> time  :           60   60   60   10   10   60
<(Bulgaria> [23:27] #demond# chaninfo #foobar
I don't have any problems with restart either

Maybe you should delete your chanfile and start over
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Re: Little question

Post by demond »

dusk wrote:Just a tiny question...

Is it possible to set the rate of plain public flood? I only find the one for mass flood :oops: . Or does this script use the same setting for both?

Thanx

GRTZ
of course, those are your standard eggdrop flood settings (flood-chan in case for public flood)

xchannel binds to eggdrop's standard FLUD hook, therefore all standard flood settings are honored
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

I am doomed, cursed and wretched; TCL hates me! :lol:
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Alchera wrote:I am doomed, cursed and wretched; TCL hates me! :lol:
still getting errors?
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
dusk
Halfop
Posts: 91
Joined: Sun Mar 06, 2005 7:25 pm
Location: Belgium

Post by dusk »

Hey demond,

Is it possible to make the spamprotection not reacting on # if chatters are using the channame they're in.

Sometimes people get warning when the post : Bye Bye #channel.(or something like that).

THNX
G
Godzilla
Voice
Posts: 8
Joined: Sat Mar 25, 2006 12:05 pm

Post by Godzilla »

Some Questions:

1) If someone get punished, when will the counter will be resetet, never?

2) Feature request: exception list for spam protection (own channels and webpages)
Post Reply