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.

AllProtection.tcl (Stable: v4.8 / Beta: v4.9b4)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

exhuman wrote:Hi,

I didn't able to use Bad Channel features... manually i only edit global bad channel and run
.chanset #mychannelname + 30 kb 2

but BOT didn't kicking what i mention in global bad channel

Thanks in Advance for help
If you have a badchan list for #mychannelname then the bot won't use the global badchan list.
c
coke-coke
Voice
Posts: 2
Joined: Thu Oct 27, 2005 2:22 am
Location: indonesia
Contact:

Post by coke-coke »

can u add one protection option in next version Sir Fz? like badword in a host/vhost called bad host.

Thx
d
dohko2006
Voice
Posts: 8
Joined: Sun Mar 19, 2006 2:16 pm

Post by dohko2006 »

I have this error in 4.5
Bot banned users:

[09:30] #channel: mode change '+b user!*@*' by bot@foobar.com
[09:30] Tcl error [text:char]: invalid command name "clock"
[09:30] Tcl error [text:line]: invalid command name "clock"
[09:30] Tcl error [repeat:kick]: invalid command name "clock"
[09:30] Tcl error [text:char]: invalid command name "clock"
[09:30] Tcl error [text:line]: invalid command name "clock"

set errorInfo
Currently: invalid command name "clock"
Currently: while executing
Currently: "clock clicks -milliseconds"
Currently: (procedure "follow" line 4)
Currently: invoked from within
Currently: "follow $s txtf([string tolower $uhost:$chan]) $o"
Currently: (procedure "text:line" line 5)
Currently: invoked from within
Currently: "text:line $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5"

I use eggdrop 1.6.18
I use ap:reset #mychannel
I restart ... i delete .chan ... help me plz

With version 4.6b5 have same error "clock" :cry:


Thx
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Use ALL PROTECTION 4.6b5 (BETA 5) with eggdrop 1.6.18.

Firstly kill the bot then delete both .chan AND .chan~bak and restart your bot with the new script.

I use this script extensively and have never seen an error as you have encountered.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
d
dohko2006
Voice
Posts: 8
Joined: Sun Mar 19, 2006 2:16 pm

Post by dohko2006 »

Alchera wrote:Use ALL PROTECTION 4.6b5 (BETA 5) with eggdrop 1.6.18.

Firstly kill the bot then delete both .chan AND .chan~bak and restart your bot with the new script.

I use this script extensively and have never seen an error as you have encountered.
Ok...

ps x

PID TTY STAT TIME COMMAND
22978 ? S 2:58 ./eggdrop bot.conf
30284 ? S 0:00 sshd: bot@notty
30285 ? Ss 0:00 /usr/libexec/openssh/sftp-server
30339 ? S 0:00 sshd: bot@pts/3
30341 pts/3 Ss 0:00 -bash
30363 pts/3 R+ 0:00 ps x

kill 22978

and delete both .chan and .chan~bak (via ftp)
Change to 4.6b5 (in .conf) (no major changes in tcl)

./eggdrop bot.conf

Code: Select all

Eggdrop v1.6.18 (C) 1997 Robey Pointer (C) 2006 Eggheads
[09:54] --- Loading eggdrop v1.6.18 (Sun Oct  1 2006)
[08:54] Listening at telnet port XXXX (all).
[08:54] Module loaded: channels
[08:54] Module loaded: dns
[08:54] Module loaded: transfer         (with lang support)
[08:54] Module loaded: share
[08:54] Module loaded: server
[08:54] Module loaded: ctcp
[08:54] Module loaded: irc
[08:54] Module loaded: notes            (with lang support)
[08:54] Module loaded: console          (with lang support)
[08:54] Module loaded: blowfish
[08:54] Module loaded: uptime
[08:54] All Protection v4.6b5 by Opposing Loaded...
[08:54] ChanservNeed v1.4.6 loaded
[08:54] Creating channel file
[08:54] Userfile loaded, unpacking...
[08:54] === Bot: 1 channels, 4 users.
Launched into the background  (pid: 30367)

Code: Select all

[09:03] Tcl error [::AllProtection::pubms btextc]: invalid command name "clock"
 [09:03] Tcl error [::AllProtection::pubms btextl]: invalid command name "clock"
[09:03] Tcl error [::AllProtection::pubms bcodes]: invalid command name "clock"
 [09:03] Tcl error [::AllProtection::pubms repeatl]: invalid command name "clock"
 [09:03] Tcl error [::AllProtection::pubms textc]: invalid command name "clock"
 [09:03] Tcl error [::AllProtection::pubms textl]: invalid command name "clock"
 [09:03] Tcl error [::AllProtection::joins drones]: invalid command name "clock"
[09:03] Tcl error [::AllProtection::joins massjoin]: invalid command name "clock"
 [09:03] Tcl error [::AllProtection::joins cjoin]: invalid command name "clock"

Code: Select all

set errorInfo
 Currently: invalid command name "clock"
Currently:     while executing
 Currently: "clock clicks -milliseconds"
Currently:     (procedure "follow" line 4)
Currently:     invoked from within
 Currently: "follow $s apjoinf($h) $j"
Currently:     ("cjoin" arm line 9)
Currently:     invoked from within
Currently: "switch -- $flood {
Currently:   "cjoin" {
 Currently:    variable joinflood ; variable apjoinf ; variable apjoinfn
Currently:    foreach {j s} [cgsplit $off] {break}
 Currently:    if {[invalid:ap..."
 Currently:     (procedure "::AllProtection::joins" line 5)
 Currently:     invoked from within
Currently: "::AllProtection::joins cjoin $_jp1 $_jp2 $_jp3 $_jp4"
Any Ideas?

Thx :oops:
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

Your TCL is broken, clock has been part of TCL since ages. I could only imaging it couldnt find time.h or something liek that.
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...
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

If this your own box dohko2006 simply use your package manager to re-install Tcl (and appropriate libraries).

If not, then contact your shell administrator. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
c
coke-coke
Voice
Posts: 2
Joined: Thu Oct 27, 2005 2:22 am
Location: indonesia
Contact:

Post by coke-coke »

Sir Fz, i don`t see option auto kline in Revolving Door, can u help me how to add that. I don`t want my bot ban the offender, but i want KLine offender. Or maybe any guys here can recomendated any tcl scripts to do that.

Thx
User avatar
kash2k
Voice
Posts: 18
Joined: Fri Aug 25, 2006 10:45 pm
Location: India

Post by kash2k »

Sir Fz .. Your script runs fine...
I want the bot to delete the aop access of the op who the bot find to be trying to masskick.
The two lines I added in your masskick procedure are marked in gray.

proc massk:kick {nick uhost hand chan targ rsn} {
global masskick msskick serv
config:lim $nick $uhost $hand $chan $targ $rsn
foreach {o s} [split [channel get $chan ap:massk] :] {break}
if {($nick == $targ) || [invalid:apf $o $s] || [matchattr $hand f|f $chan] || [matchattr $hand mo|mo $chan]} {return 0}
if {[set ts [follow $s msskick([string tolower $uhost:$chan]) $o]] != -1} {
if {$masskick(deop)} {
putquick "$serv(nick) :[string map [list %chan $chan %nick $nick] $serv(command)]"
if {[botisop $chan]} {
putquick "MODE $chan -o $nick"
putserv "chanserv aop #soulmate del nick"
putserv "privmsg $nick :aop access deleted for masskick"

}
}
punish:method $masskick(pmeth) $nick $uhost $chan [ap:mapr $masskick(kmsg) "$o kicks in $ts secs"] $masskick(wmsg) $masski$
}
}

Still the bot would kick the op with a message "mass kick, go sit in a corner"

I have this message no where in the TCL ..I dont know where it comes from.

Regards,
kash2k
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Still the bot would kick the op with a message "mass kick, go sit in a corner"
That is generated by eggdrop as per the 'flood-deop' setting.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
D
Dunn
Voice
Posts: 5
Joined: Sat Jan 28, 2006 5:07 am

Post by Dunn »

Not sure if I'm just being a moron, but I don't get the format of the channel lock thing... The default is "mR-k lines.flood" and I don't use DALnet so I'm not entirely sure what each means, but I'm thinking k is for a password and lines.flood is the password it sets? Is that right because I want to take that off and don't want something to be messed up by me removing "lines.flood" from the setting :?:
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

m = Moderate
R = Registered nicks
k = Channel key

The channel is set +mR-k so that no channel key can be placed and the other two ensure that only a registered nick can send text to the channel; most flood bots do not have a registered nick.

lines.flood 60 is the locktime (in seconds) before removing the above modes.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
E
ERNEST
Voice
Posts: 2
Joined: Mon Mar 27, 2006 10:33 am

Post by ERNEST »

How can I migrate from ver. 4.5 to ver 4.6 or 4.6b5 whitout having to configure the new script again? is this possible?
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

Hi all

I use AllProtection 4.6b5, i run a Quizz channel, and i m having recently a Problem with my bot , since it s punishing some users for repeating lines, but that s not true, users werent repeating the same lines. More than that, the bot gives a bizarre time in the commentary of the punishment. Here is an example :

<CultureQuiz> que.8533. En quelle année s'est déroulée le 1er tour de France cycliste ?
<CultureQuiz> 1 èr indice: **** Valeur de la question : 60 Points
<CultureQuiz> 2 ème indice: 190* 30.0 secondes restantes
<wzx> 1901
<wzx> 1902
<wzx> 1909
<wzx> 1903
<CultureQuiz> Bravooo, wzx!!! Tu as eu la bonne réponse qui était -> 1903 <- en 28.734 secondes, Et tu gagnes 60 Points

* wzx was kicked by Zircona (Text repeating detected. (3 repeats in -1917088.047 secs) :: Banned 0 minutes ·2738·)

So the user WZX got punished for repeating even if he didnt repeat, and the bot says : 3 repeats in -1917088.047 secs !!!

by the way the setting for repeating lines is :
ap:repeatl: {3:3 15 k:kb 2}

some others settings are :
<Zircona> ap:textl: {0:0 15 w:k:kb 2} ( i disable this to avoid punishment when the bot lags )
<Zircona> ap:textc: {215:3 30 kb 2}
<Zircona> ap:notcl: {1:3 30 kb 2}
<Zircona> ap:notcc: {200:3 30 kb 2}
<Zircona> ap:caps: {60:90 1440 kb 2}
<Zircona> ap:codes: {r:35 b:80 u:80 c:80 30 kb 2}
<Zircona> ap:repeatl: {3:3 15 k:kb 2}
<Zircona> ap:repeatc: {50 15 w:k:kb 2}
<Zircona> ap:adv: {+ 60 k:kb 2}
<Zircona> ap:swear: {+ 1440 kb 2}
<Zircona> ap:bnicks: {+ 1440 2}

For now i disabled the repeating punishment lines to avoid any problem by doing :
ap:repeatl: {0:0 15 k:kb 2} ( is that correct ? )

But i d like to put it back, since i really want to punish users if they repeat 3 times the same lines in 3 seconds.

Can someone tell me why the bot say :
3 repeats in -1917088.047 secs , when there was no repeat ?

and how to solve that ?

Thanks in advance.
Z
Zircon
Op
Posts: 191
Joined: Mon Aug 21, 2006 4:22 am
Location: Montreal

Post by Zircon »

Hi all

I use AllProtection 4.6b5, i run a Quizz channel, and i m having recently a Problem with my bot , since it s punishing some users for repeating lines, but that s not true, users werent repeating the same lines. More than that, the bot gives a bizarre time in the commentary of the punishment. Here is an example :

<CultureQuiz> que.8533. En quelle année s'est déroulée le 1er tour de France cycliste ?
<CultureQuiz> 1 èr indice: **** Valeur de la question : 60 Points
<CultureQuiz> 2 ème indice: 190* 30.0 secondes restantes
<wzx> 1901
<wzx> 1902
<wzx> 1909
<wzx> 1903
<CultureQuiz> Bravooo, wzx!!! Tu as eu la bonne réponse qui était -> 1903 <- en 28.734 secondes, Et tu gagnes 60 Points

* wzx was kicked by Zircona (Text repeating detected. (3 repeats in -1917088.047 secs) :: Banned 0 minutes ·2738·)

So the user WZX got punished for repeating even if he didnt repeat, and the bot says : 3 repeats in -1917088.047 secs !!!

by the way the setting for repeating lines is :
ap:repeatl: {3:3 15 k:kb 2}

some others settings are :
<Zircona> ap:textl: {0:0 15 w:k:kb 2} ( i disable this to avoid punishment when the bot lags )
<Zircona> ap:textc: {215:3 30 kb 2}
<Zircona> ap:notcl: {1:3 30 kb 2}
<Zircona> ap:notcc: {200:3 30 kb 2}
<Zircona> ap:caps: {60:90 1440 kb 2}
<Zircona> ap:codes: {r:35 b:80 u:80 c:80 30 kb 2}
<Zircona> ap:repeatl: {3:3 15 k:kb 2}
<Zircona> ap:repeatc: {50 15 w:k:kb 2}
<Zircona> ap:adv: {+ 60 k:kb 2}
<Zircona> ap:swear: {+ 1440 kb 2}
<Zircona> ap:bnicks: {+ 1440 2}

For now i disabled the repeating punishment lines to avoid any problem by doing :
ap:repeatl: {0:0 15 k:kb 2} ( is that correct ? )

But i d like to put it back, since i really want to punish users if they repeat 3 times the same lines in 3 seconds.

Can someone tell me why the bot say :
3 repeats in -1917088.047 secs , when there was no repeat ?

and how to solve that ?

Thanks in advance.
Post Reply