egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

anti repeat from multi host/ip
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
simo
Revered One


Joined: 22 Mar 2015
Posts: 1027

PostPosted: Sun Aug 19, 2018 10:26 am    Post subject: Reply with quote

oh euhm didnt look close enough heh
tnx caesar
Back to top
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 826
Location: Tennessee, USA

PostPosted: Sun Aug 19, 2018 11:18 am    Post subject: multi-host-repeat now at tclarchive.org Reply with quote

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
.
Back to top
View user's profile Send private message Visit poster's website
nmr50
Voice


Joined: 14 Nov 2019
Posts: 6

PostPosted: Thu Nov 14, 2019 6:00 am    Post subject: Re: multi-host-repeat now at tclarchive.org Reply with quote

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 ?
Back to top
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 826
Location: Tennessee, USA

PostPosted: Thu Nov 14, 2019 10:56 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
nmr50
Voice


Joined: 14 Nov 2019
Posts: 6

PostPosted: Thu Nov 14, 2019 2:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
nmr50
Voice


Joined: 14 Nov 2019
Posts: 6

PostPosted: Mon Nov 18, 2019 2:15 am    Post subject: Reply with quote

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? Smile
Back to top
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 826
Location: Tennessee, USA

PostPosted: Mon Nov 18, 2019 10:38 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
nmr50
Voice


Joined: 14 Nov 2019
Posts: 6

PostPosted: Mon Nov 18, 2019 2:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 826
Location: Tennessee, USA

PostPosted: Tue Nov 19, 2019 10:40 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
nmr50
Voice


Joined: 14 Nov 2019
Posts: 6

PostPosted: Wed Nov 20, 2019 5:22 am    Post subject: Reply with quote

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?Smile
Back to top
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 826
Location: Tennessee, USA

PostPosted: Wed Nov 20, 2019 10:01 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
nmr50
Voice


Joined: 14 Nov 2019
Posts: 6

PostPosted: Sat Nov 23, 2019 5:02 am    Post subject: Reply with quote

*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
View user's profile Send private message
simo
Revered One


Joined: 22 Mar 2015
Posts: 1027

PostPosted: Sat Jan 15, 2022 11:55 am    Post subject: Reply with quote

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
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 826
Location: Tennessee, USA

PostPosted: Sat Jan 15, 2022 12:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
simo
Revered One


Joined: 22 Mar 2015
Posts: 1027

PostPosted: Sat Jan 15, 2022 12:32 pm    Post subject: Reply with quote

oh my bad i had a previous version thanks Spike^^
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Page 7 of 8

 
Jump to:  
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


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber