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.

anti repeat from multi host/ip

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
s
simo
Revered One
Posts: 1106
Joined: Sun Mar 22, 2015 2:41 pm

Post by simo »

oh euhm didnt look close enough heh
tnx caesar
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

multi-host-repeat now at tclarchive.org

Post by SpiKe^^ »

multi-host-repeat.tcl has now been posted to the tcl archive at:
https://tclarchive.org/download.php?id=1801
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
n
nmr50
Voice
Posts: 6
Joined: Thu Nov 14, 2019 5:57 am

Re: multi-host-repeat now at tclarchive.org

Post by nmr50 »

SpiKe^^ wrote:multi-host-repeat.tcl has now been posted to the tcl archive at:
https://tclarchive.org/download.php?id=1801
Hello ! Thanks for the nice script, I've installed it to my v1.8.3 bot and I got errors like these:
[2019-11-14 12:18:29] Tcl error [rp_pubmsg]: invalid command name "lassign"
[2019-11-14 12:24:50] Tcl error [rp_pubmsg]: invalid command name "lassign"
-- they're appearing time to time, all the time...

Can you tell how to fix this, please ?
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

You need to upgrade the tcl version your eggdrop bot is using.

The lassign command was first added in tcl version 8.5
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
n
nmr50
Voice
Posts: 6
Joined: Thu Nov 14, 2019 5:57 am

Post by nmr50 »

SpiKe^^ wrote:You need to upgrade the tcl version your eggdrop bot is using. The lassign command was first added in tcl version 8.5
Installed latest one - .status showing this: Tcl version: 8.6.9 (header version 8.6.9)
Your script is not complaining.. so far;) Many thanks !

PS. Got an idea - how about to check TCL version when tcl script is strated by the bot ? Like, TCL version is 8.4 (like I have had), required TCL version 8.5.
n
nmr50
Voice
Posts: 6
Joined: Thu Nov 14, 2019 5:57 am

Post by nmr50 »

SpiKe^^ wrote:You need to upgrade the tcl version your eggdrop bot is using.

The lassign command was first added in tcl version 8.5
Hi ! I got another tcl error, just noticed it:
[2019-11-18 08:14:07] Tcl error [rp_pubmsg]: can't read "mhrp(phow)": no such variable

TCL installed on my bot this time: Tcl version: 8.6.9 (header version 8.6.9)

Any ideas what to do now? :)
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

That global variable is set near the end of the script.

Code: Select all

set mhrp(phow) "putquick" 
if {$mhrp(pnow)==1} {  set mhrp(phow) "putnow"  }
Make sure you have included the entire script (multi-host-repeat.tcl v1.6.5 (16Aug2018)) as it is on this thread.
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
n
nmr50
Voice
Posts: 6
Joined: Thu Nov 14, 2019 5:57 am

Post by nmr50 »

SpiKe^^ wrote:That global variable is set near the end of the script.

Code: Select all

set mhrp(phow) "putquick" 
if {$mhrp(pnow)==1} {  set mhrp(phow) "putnow"  }
Make sure you have included the entire script (multi-host-repeat.tcl v1.6.5 (16Aug2018)) as it is on this thread.
Here is the paste of script I use:
https://justpaste.it/4j4lq
I've changed some variables, but did not touch other stuff..
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

It would seem you are using the correct version script.

I have no idea why you are seeing that error.
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
n
nmr50
Voice
Posts: 6
Joined: Thu Nov 14, 2019 5:57 am

Post by nmr50 »

SpiKe^^ wrote:It would seem you are using the correct version script.
I have no idea why you are seeing that error.
Another time I got mentioned error.

Let's take a look - what I see from the weechat logging:

Code: Select all

2019-11-20 11:15:39     +Беляй`^        https://www.youtube.com/watch?v=5GXD4k0Yt6w                Отверженные (1 сезон ) Русский трейлер 2019
2019-11-20 11:15:40     +Беляй`^        https://www.youtube.com/watch?v=5GXD4k0Yt6w                Отверженные (1 сезон ) Русский трейлер 2019
2019-11-20 11:15:40     @top    тогда ее красоты не видно
2019-11-20 11:15:40     +Беляй`^        https://www.youtube.com/watch?v=5GXD4k0Yt6w                Отверженные (1 сезон ) Русский трейлер 2019
-- user 'Беляй`^' did _one_ repeat before user 'top' made its post in the middle, then user 'Беляй`^' made third post that was the same.

Now, what I see in the log from the bot where multiscript is installed:

Code: Select all

[2019-11-20 11:15:39] <Беляй`^> https://www.youtube.com/watch?v=5GXD4k0Yt6w                Отверженные (1 сезон ) Русский трейлер 2019
[2019-11-20 11:15:40] Last message repeated 1 time(s).
The script flood trigger is set as: set mhrp(flood) 3:5, yet we see that user has repeated his string _two times_ in _2_ seconds.. I suppose multiscript is triggered to kick user, but it did not happen, instead it gave this:

Code: Select all

[2019-11-20 11:15:40] Tcl error [rp_pubmsg]: can't read "mhrp(phow)": no such variable
So, script is NOT working when user repeat his strings NOT in the serial way, but within trigger period - the script routine stops on error instead of activating kick for the flood ?
Any ideas how to fix it?:)
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

I have no idea how to fix your script issues.

That is not an error I have seen before, I'm unable to recreate that error from here.
This script is widely used by many people without any problems. I have been told several times that it does a very good job.

Try get a fresh copy of the script from tclarchive.org and start over.
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
n
nmr50
Voice
Posts: 6
Joined: Thu Nov 14, 2019 5:57 am

Post by nmr50 »

*UPDATED* on 2019.11.27, 13:51 GMT+3
OK, after fixing all the stuff I reached native engine triggers working, and I asked user to perform some tests.
Results are here, irc client log:
2019-11-27 13:25:51 +Krolik тест
2019-11-27 13:25:51 +Krolik тест
2019-11-27 13:25:51 +Krolik тест
2019-11-27 13:25:52 <-- Nile has kicked Krolik (flood)

But when I see into bots log I see that TCL error happens again:
[2019-11-27 13:25:51] <Krolik> тест
[2019-11-27 13:25:51] Last message repeated 1 time(s).
[2019-11-27 13:25:51] Channel flood from Krolik -- kicking
[2019-11-27 13:25:51] Tcl error [rp_pubmsg]: can't read "mhrp(phow)": no such variable

So this "flooder" is not being banned as it supposed in multi-script...
s
simo
Revered One
Posts: 1106
Joined: Sun Mar 22, 2015 2:41 pm

Post by simo »

Greetz,

altho this is an exceptional code could it be edited to stack kicks as well or would that be a pain ?

it already seems to stack modes so thats good as some ircds offer that as well as stacked kicks the less commands used the less chances of gettin disconnected for excess flood on commands

thanks in advance SpiKe^^
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

Script already has simple kick stacking code...

Code: Select all

# Max number of kicks to stack in one kick command # 
 # - set 0 to disable this script doing kicks (ex. set mhrp(maxk) 0) # 
 # NOTE: many networks allow more than one nick to be kicked per command. # 
 #       set this at or below the max for your network. # 
 set mhrp(maxk) 3 
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
s
simo
Revered One
Posts: 1106
Joined: Sun Mar 22, 2015 2:41 pm

Post by simo »

oh my bad i had a previous version thanks Spike^^
Post Reply