View previous topic :: View next topic |
Author |
Message |
simo Revered One
Joined: 22 Mar 2015 Posts: 1027
|
Posted: Sun Aug 19, 2018 10:26 am Post subject: |
|
|
oh euhm didnt look close enough heh
tnx caesar |
|
Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 826 Location: Tennessee, USA
|
|
Back to top |
|
 |
nmr50 Voice
Joined: 14 Nov 2019 Posts: 6
|
Posted: Thu Nov 14, 2019 6:00 am Post subject: Re: multi-host-repeat now at tclarchive.org |
|
|
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 ? |
|
Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 826 Location: Tennessee, USA
|
Posted: Thu Nov 14, 2019 10:56 am Post subject: |
|
|
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
. |
|
Back to top |
|
 |
nmr50 Voice
Joined: 14 Nov 2019 Posts: 6
|
Posted: Thu Nov 14, 2019 2:11 pm Post subject: |
|
|
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. |
|
Back to top |
|
 |
nmr50 Voice
Joined: 14 Nov 2019 Posts: 6
|
Posted: Mon Nov 18, 2019 2:15 am Post subject: |
|
|
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?  |
|
Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 826 Location: Tennessee, USA
|
Posted: Mon Nov 18, 2019 10:38 am Post subject: |
|
|
That global variable is set near the end of the script.
Code: | 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
. |
|
Back to top |
|
 |
nmr50 Voice
Joined: 14 Nov 2019 Posts: 6
|
Posted: Mon Nov 18, 2019 2:37 pm Post subject: |
|
|
SpiKe^^ wrote: | That global variable is set near the end of the script.
Code: | 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.. |
|
Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 826 Location: Tennessee, USA
|
Posted: Tue Nov 19, 2019 10:40 am Post subject: |
|
|
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
. |
|
Back to top |
|
 |
nmr50 Voice
Joined: 14 Nov 2019 Posts: 6
|
Posted: Wed Nov 20, 2019 5:22 am Post subject: |
|
|
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: | 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: | [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: | [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? |
|
Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 826 Location: Tennessee, USA
|
Posted: Wed Nov 20, 2019 10:01 am Post subject: |
|
|
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
. |
|
Back to top |
|
 |
nmr50 Voice
Joined: 14 Nov 2019 Posts: 6
|
Posted: Sat Nov 23, 2019 5:02 am Post subject: |
|
|
*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... |
|
Back to top |
|
 |
simo Revered One
Joined: 22 Mar 2015 Posts: 1027
|
Posted: Sat Jan 15, 2022 11:55 am Post subject: |
|
|
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^^ |
|
Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 826 Location: Tennessee, USA
|
Posted: Sat Jan 15, 2022 12:07 pm Post subject: |
|
|
Script already has simple kick stacking code... Code: | # 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
. |
|
Back to top |
|
 |
simo Revered One
Joined: 22 Mar 2015 Posts: 1027
|
Posted: Sat Jan 15, 2022 12:32 pm Post subject: |
|
|
oh my bad i had a previous version thanks Spike^^ |
|
Back to top |
|
 |
|