| View previous topic :: View next topic |
| Author |
Message |
Craig Voice
Joined: 22 Feb 2006 Posts: 18
|
Posted: Sat Feb 25, 2006 2:18 pm Post subject: |
|
|
so how can i disable it?
argh.. |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Sat Feb 25, 2006 6:16 pm Post subject: |
|
|
| Craig wrote: | so how can i disable it?
argh.. |
A feature is disabled as soon it contains a 0 (or rather if its not a positive number, but you don't need to go into that detail) on one side of the ":" in its udef settings. The default settings for a channel are set in the file itself and you can find the neccessary udef names you have to use via .chanset, if you already loaded that script (or change '[channel get $c [lindex $u 0]] == ""' to '1', if you are too lazy to change all channels to the new default). _________________ De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens... |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Feb 25, 2006 8:39 pm Post subject: |
|
|
It's very easy to disable a setting, for example to disable a setting which looks like 8:3 you set it to 0:0, to disable a setting that looks like 8 you set it to 0, to disable a setting that looks like + you set it to - and to disable a setting that looks like r:35 b:35 u:35 c:80 you set it to r:0 b:0 u:0 c:0. You would've known that if you just read through the script, you can disable these by default by editing the default values like De Kus said. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
i.m.offline Halfop
Joined: 02 Mar 2006 Posts: 74
|
Posted: Sun Mar 05, 2006 12:38 pm Post subject: |
|
|
I have recently updated my all protection script to 4.5 and I am getting these error on dcc (partyline). Please advice! Thanks in advance.
| Code: |
Tcl error [ap:control]: can't use empty string as operand of "-"
Tcl error [rev:door]: can't use empty string as operand of "-"
|
|
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Mon Mar 06, 2006 7:00 pm Post subject: |
|
|
So I can detect where the error exactly occurs, and paste your settings _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
i.m.offline Halfop
Joined: 02 Mar 2006 Posts: 74
|
Posted: Thu Mar 09, 2006 10:03 am Post subject: |
|
|
| Am sorry for late response sir_fz but suddenly it seems to be working fine and I dont see any error on partyline. Thanks for your response. Take care. Gr8 work. |
|
| Back to top |
|
 |
sharktooth Voice
Joined: 25 Mar 2006 Posts: 1
|
Posted: Sat Mar 25, 2006 8:23 am Post subject: Problem when compiling |
|
|
Thanks for such a nice script. It has almost everything a channel owner might want. There was a little problem when I tried to compile the script:
| Quote: |
invalid type. Must be one of: flag, int
while executing
"setudef str ap:textl"
(file "scripts/allprotection4.5.tcl" line 1375)
invoked from within
"source scripts/allprotection4.5.tcl"
|
thats what I get in my cmd window. Since its the code section, I have no clue what needs to be done. So, please reply me with a solution to fix the problem.
Thanks |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
ERNEST Voice
Joined: 27 Mar 2006 Posts: 2
|
Posted: Mon Mar 27, 2006 10:36 am Post subject: |
|
|
| Quote: |
[17:31:14] <uMnoTeHTeH> [17:31] All Protection v4.5 by Opposing Loaded...
[17:31:14] <uMnoTeHTeH> [17:31] Userfile loaded, unpacking...
[17:31:20] <ERNEST> .set errorInfo
[17:31:20] <uMnoTeHTeH> [17:31] #ERNEST# set errorInfo
[17:31:20] <uMnoTeHTeH> Currently: no such binding
[17:31:20] <uMnoTeHTeH> Currently: while executing
[17:31:20] <uMnoTeHTeH> Currently: "unbind $foo1 $foo2 $foo3 $foo4 "
[17:31:34] <uMnoTeHTeH> [17:32] Tcl error [caps:kick]: can't read "p": no such variable
[17:31:34] <uMnoTeHTeH> [17:32] Tcl error [text:char]: can't read "o": no such variable
[17:31:34] <uMnoTeHTeH> [17:32] Tcl error [text:line]: can't read "o": no such variable
[17:31:37] <ERNEST> .set errorInfo
[17:31:37] <uMnoTeHTeH> [17:32] #ERNEST# set errorInfo
[17:31:37] <uMnoTeHTeH> Currently: can't read "o": no such variable
[17:31:37] <uMnoTeHTeH> Currently: while executing
[17:31:37] <uMnoTeHTeH> Currently: "invalid:apf $o $s"
[17:31:37] <uMnoTeHTeH> Currently: (procedure "text:line" line 4)
[17:31:37] <uMnoTeHTeH> Currently: invoked from within
[17:31:37] <uMnoTeHTeH> Currently: "text:line $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5"
[17:33:48] <uMnoTeHTeH> [17:34] Tcl error [bjoinf:lock]: can't read "o": no such variable
[17:33:49] <uMnoTeHTeH> [17:34] Tcl error [cjoin:kick]: can't read "j": no such variable
[17:34:00] <ERNEST> .set errorInfo
[17:34:00] <uMnoTeHTeH> [17:34] #ERNEST# set errorInfo
[17:34:00] <uMnoTeHTeH> Currently: can't read "j": no such variable
[17:34:00] <uMnoTeHTeH> Currently: while executing
[17:34:00] <uMnoTeHTeH> Currently: "invalid:apf $j $s"
[17:34:00] <uMnoTeHTeH> Currently: (procedure "cjoin:kick" line 6)
[17:34:00] <uMnoTeHTeH> Currently: invoked from within
[17:34:00] <uMnoTeHTeH> Currently: "cjoin:kick $_jp1 $_jp2 $_jp3 $_jp4"
|
It seems that the tcl cann`t find a variable
Please help
PS: I am uMnoTeHTeH, running eggdrop v1.6.17
| Quote: |
---------
Welcome to the UniBG Internet Relay Chat Network ERNEST
Your host is irc.telecoms.bg[irc.telecoms.bg/9001], running version ircd-ratbox+UniBG-v2.2
This server was created Wed Jan 11 2006 at 09:34:32 UTC
irc.telecoms.bg ircd-ratbox+UniBG-v2.2 oiwszcerkfydnxbauglZCD biklmnopstveI bkloveI
CHANTYPES=&# EXCEPTS INVEX CHANMODES=eIb,k,l,imnpst CHANLIMIT=&#:20 PREFIX=(ov)@+ MAXLIST=beI:150 NETWORK=UniBG MODES=4 STATUSMSG=@+ KNOCK CALLERID=g are supported by this server
SAFELIST ELIST=U CASEMAPPING=rfc1459 CHARSET=ascii NICKLEN=15 CHANNELLEN=100 TOPICLEN=390 ETRACE CPRIVMSG CNOTICE DEAF=D MONITOR=50 are supported by this server
TARGMAX=NAMES:1,LIST:1,KICK:1,WHOIS:1,PRIVMSG:4,NOTICE:4,ACCEPT:,MONITOR: are supported by this server
-
|
Last edited by ERNEST on Mon Mar 27, 2006 11:37 am; edited 1 time in total |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Mon Mar 27, 2006 11:06 am Post subject: |
|
|
Either .restart or apply .ap:reset <#chan> on all channels. This issue will be fixed in v4.6. (I notice people don't like to .restart ) _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Craig Voice
Joined: 22 Feb 2006 Posts: 18
|
Posted: Sat May 06, 2006 11:51 am Post subject: |
|
|
i have other idea to take only letters fllod now it work..
but i want: "ththththththt" , " shshshshshshs" and other will kicking too! |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun May 07, 2006 6:23 am Post subject: |
|
|
| Craig wrote: | i have other idea to take only letters fllod now it work..
but i want: "ththththththt" , " shshshshshshs" and other will kicking too! |
In my opinion that's useless, even the letter repeats protection is not needed that much. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Sun May 07, 2006 6:39 am Post subject: |
|
|
I considered making one, but dropped the idea, because even single letter repeatance would be as complex as '(?i)(a{5,}|b{5,}|c{5,}|...|z{5,})'
and therefore be too much CPU time for parsing a single line. Remember, a [a-z]{5,} would not only match "aaaaa" but also "mouse" . Alternately you would have to count each letter and say like only x % are allowed per letter and line. A good protection script must also consider CPU time, since excess flood might be used to timeout the bot by just the CPU time it consumes . If you run your bot on your own machine, you might not have to worry about it, but many shells have very limited CPU ressources per user.
however, you could consider using looking for repeated vocals like in "loooooooooooooooool". _________________ De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens... |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue May 09, 2006 2:28 am Post subject: |
|
|
| De Kus wrote: | I considered making one, but dropped the idea, because even single letter repeatance would be as complex as '(?i)(a{5,}|b{5,}|c{5,}|...|z{5,})'
and therefore be too much CPU time for parsing a single line. Remember, a [a-z]{5,} would not only match "aaaaa" but also "mouse" . Alternately you would have to count each letter and say like only x % are allowed per letter and line. A good protection script must also consider CPU time, since excess flood might be used to timeout the bot by just the CPU time it consumes . If you run your bot on your own machine, you might not have to worry about it, but many shells have very limited CPU ressources per user.
however, you could consider using looking for repeated vocals like in "loooooooooooooooool". |
you have considered the wrong idea
it's trivial to detect repeating patterns (with sufficient precision) in a string without using regexps, and without clogging the CPU _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue May 09, 2006 2:55 am Post subject: |
|
|
A for loop and a string repeat will do the job, it's already implemented in AP. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|
|
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
|
|