| View previous topic :: View next topic |
| Author |
Message |
mm Halfop
Joined: 01 Jul 2004 Posts: 78
|
Posted: Sun Sep 11, 2005 12:12 am Post subject: |
|
|
Hi demond: i hope you've read my input for "bad words" stuff.. and here is
errorInfo
| Code: | <mm> .set errorInfo
<(TestBot> [23:09] #mm# set errorInfo
<(TestBot> Currently: can't read "maxr": no such variable
<(TestBot> Currently: while executing
<(TestBot> Currently: "if {$n >= $maxr} {
<(TestBot> Currently: if {[unixtime] - $ts <= $maxt} {
<(TestBot> Currently: #set buf "mode $chan +mi\n"
<(TestBot> Currently: #putdccraw 0 [llength $buf] $buf
<(TestBot> Currently: putquick "mode $chan +..."
<(TestBot> Currently: (procedure "::xchannel::mass" line 10)
<(TestBot> Currently: invoked from within
<(TestBot> Currently: "::xchannel::mass $_p1 $_p2 $_p3 $_p4 $_p5" |
thanks _________________ MM |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Sep 11, 2005 12:31 am Post subject: |
|
|
what's your x:mass:rate for that channel?
I could add dcc command for adding bad word(s), but I didn't deem that necessary since those are relatively constant, and typically you would only infrequently want to add/remove from bad word list(s), i.e. by editing bad word file(s) (of course, you can have different bad word file for each channel) |
|
| Back to top |
|
 |
mm Halfop
Joined: 01 Jul 2004 Posts: 78
|
Posted: Sun Sep 11, 2005 12:47 am Post subject: |
|
|
what's your x:mass:rate for that channel?
x:mass setting is off.
x:mass:duration: 0
x:mass:rate: {}
oh also should we add badwords in this format? when i use .chanset to add the file, it added successfully but i don't see in the bot directory so i can add the words.
"badword"
"*badword*"
" badword "
i created manually the file "badwords.txt "and added few words and i get this error
Tcl error [::xchannel::bad]: couldn't compile regular expression pattern: quantifier operand invalid
thanks _________________ MM |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Sep 11, 2005 1:05 am Post subject: |
|
|
read the script's header pay attention to the format of x:mass:rate and interpretation of bad words
you have to create your badwords file(s) using some text editor (don't enclose words in quotes) |
|
| Back to top |
|
 |
mm Halfop
Joined: 01 Jul 2004 Posts: 78
|
Posted: Sun Sep 11, 2005 1:25 am Post subject: |
|
|
Thanks demond, that x:mass error is all set, after setting the mass rate for that channel and bad word is fine too but let say if i add "d*ck" to the list and some one says oh mr. v.president d*ck chinny in this case it shouldn't trigger..
thanks _________________ MM |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Sep 11, 2005 1:38 am Post subject: |
|
|
you probably didn't pay attention to the NOTE in script's header
your bad words are REs (regular expressions); that means if you really want to match an expression and not a single word, you must use RE syntax; if you just to want to match plain words, anywhere in the text said on channel, you simply specify those words, without enclosing them in quotes or adding '*'; the words can be separated by any white space (space, tab, new line, etc.) |
|
| Back to top |
|
 |
mm Halfop
Joined: 01 Jul 2004 Posts: 78
|
Posted: Sun Sep 11, 2005 1:49 am Post subject: |
|
|
Thank you very much.
| Quote: | | your bad words are REs (regular expressions); that means if you really want to match an expression and not a single word, you must use RE syntax; if you just to want to match plain words, anywhere in the text said on channel, you simply specify those words, without enclosing them in quotes or adding '*'; the words can be separated by any white space (space, tab, new line, etc.) |
could you pls give me few examples, because i am a bit confuse, i like it to trigger on certain words, anywhere in the lines like f*ck, etc . but like in my previous example Mr V.president case i don't want it to trigger since that's a name..
sorry for being pain...
thanks _________________ MM |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Sep 11, 2005 1:58 am Post subject: |
|
|
but you can't distinguish between dick in a phrase that should be censored and Dick in a phrase that contains Dick Chaney, neither with RE syntax, nor with Tcl's special string matching characters like '*' and '?', since the matching is case-insensitive anyway
for RE syntax, have a look here |
|
| Back to top |
|
 |
mm Halfop
Joined: 01 Jul 2004 Posts: 78
|
Posted: Sun Sep 11, 2005 2:08 am Post subject: |
|
|
Thank you demond. _________________ MM |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Sep 13, 2005 3:03 am Post subject: |
|
|
version 2.0 has been released
fixed minor bugs, enhanced [punish], added clone scanner; more to come |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Sep 15, 2005 3:09 am Post subject: |
|
|
3.0 is out
added revolving door and bad /whois (realname, channels (including too many), server) handlers; a little more to come |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Sep 18, 2005 9:15 pm Post subject: |
|
|
that's it folks, I'm done with xchannel; it has everything I deemed necessary for most people, and it should make all other protection scripts obsolete j/k, time will show, but I think I achieved my objective - highly-optimized and versatile code with 100% chanset-based configuration that should appeal to the majority of bot owners
there will be no next version unless people report bugs
the last is version 3.2, I've added drone detection (based on improved spambuster heuristics) and done some final [punish] changes _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
dusk Halfop

Joined: 06 Mar 2005 Posts: 91 Location: Belgium
|
Posted: Mon Sep 19, 2005 5:08 pm Post subject: |
|
|
I just downloaded the script and nicely done!!
I just have one problem : when I restart the bot I'm always getting this error : (22:54) <Cube> [22:54] xchannel-3.2: ERROR: no channels defined .
After a rehash everything works fine again.
I'm getting this after every .restart .
Grtz |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Mon Sep 19, 2005 9:19 pm Post subject: |
|
|
that happens because on (re)start eggdrop actually loads chanfile after loading its config (and any scripts sourced in it), so at that point xchannel doesn't know about any channels
I'll find a way around this _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Sep 20, 2005 1:41 am Post subject: |
|
|
alrighty, fixed the restart thing in 3.3 _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
|