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.
Support & discussion of released scripts, and announcements of new releases.
simo
Revered One
Posts: 1100 Joined: Sun Mar 22, 2015 2:41 pm
Post
by simo » Fri Dec 31, 2021 10:33 am
i placed it here but it didnt seem to have the desired effect:
set ok "" ; set err ""
foreach user $userls {
set user "[string trimleft $user "@+"]"
simo
Revered One
Posts: 1100 Joined: Sun Mar 22, 2015 2:41 pm
Post
by simo » Fri Dec 31, 2021 10:57 am
thanks for the explanation on irc spike^^ i guess stripping @ would break gettin a custom banmask to set ban on as u explained on irc
SpiKe^^
Owner
Posts: 831 Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:
Post
by SpiKe^^ » Fri Dec 31, 2021 5:49 pm
Perhaps this can be a usable compromise.
Find this line in the script
Code: Select all
} elseif {[string is digit -strict $item]} { set btime $item
and Add these lines just after that line...
Code: Select all
} elseif {[string match {[+%]?*} $item]} {
lappend nickls [string trimleft $item "+%"]
} elseif {[string match "@?*" $item] && ![string match {*[.:]*} $item]} {
lappend nickls [string trimleft $item "@"]
simo
Revered One
Posts: 1100 Joined: Sun Mar 22, 2015 2:41 pm
Post
by simo » Sat Jan 01, 2022 9:06 am
excellent tried it and seems to work well thanks Spike^^
simo
Revered One
Posts: 1100 Joined: Sun Mar 22, 2015 2:41 pm
Post
by simo » Wed Feb 02, 2022 1:13 pm
i had a request if u are up for it Spike^^ as we use this code on various networks i found chanops on some of our networks never use multiple nicks to kick and kickban users but rather use:
!k nick custom reason
!kb nick custom reason
would it be easy to edit the code to have it work like this ?
thanks in advance.
SpiKe^^
Owner
Posts: 831 Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:
Post
by SpiKe^^ » Wed Feb 02, 2022 2:26 pm
I thought that was how it worked now?
simo
Revered One
Posts: 1100 Joined: Sun Mar 22, 2015 2:41 pm
Post
by simo » Wed Feb 02, 2022 2:46 pm
atm its stacked both modes and kicks
SpiKe^^
Owner
Posts: 831 Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:
Post
by SpiKe^^ » Wed Feb 02, 2022 2:50 pm
I don't get the difference.
the stacker can work with a "stack" of 1, just as well as 4 or 44?
simo
Revered One
Posts: 1100 Joined: Sun Mar 22, 2015 2:41 pm
Post
by simo » Wed Feb 02, 2022 2:50 pm
yea but it wont get the custom kick msg
simo
Revered One
Posts: 1100 Joined: Sun Mar 22, 2015 2:41 pm
Post
by simo » Wed Feb 02, 2022 2:52 pm
<+Simo> !k Dari test
Dari Kicked from #test
-Hawk- : test is not on channel #test
the custom kick msg wasnt used by the code
SpiKe^^
Owner
Posts: 831 Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:
Post
by SpiKe^^ » Wed Feb 02, 2022 2:58 pm
That's because the command is: !k Dari .test
simo
Revered One
Posts: 1100 Joined: Sun Mar 22, 2015 2:41 pm
Post
by simo » Wed Feb 02, 2022 3:01 pm
but we wanted to just kick 1 nick at a time and have custom kick message right after it without any additional chars like . or other
!k nick custom kick here
!kb nick custom kick here
SpiKe^^
Owner
Posts: 831 Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:
Post
by SpiKe^^ » Wed Feb 02, 2022 3:35 pm
Try find this line in the script....
Code: Select all
if {$uh ne "Timer" && ![is:allowed $nk $hn $ch]} { return 0 }
and add these lines just after that line...
Code: Select all
if {$do eq "k" || $do eq "kb"} {
if {[llength [set temp [split $tx]]]>1 && ![matchstr ".*" [lindex $temp 1]]} {
set tx "[lindex $temp 0] .[join [lrange $temp 1 end]]"
}
}
Leaves the script mostly as it is except for the !k and !kb commands can only do a single nick, unless you start the custom reason with a . as before.
EDIT: On further thought that may be somewhat shortsighted, as it does not look for "change target channel" or "custom bantime" arguments...
simo
Revered One
Posts: 1100 Joined: Sun Mar 22, 2015 2:41 pm
Post
by simo » Wed Feb 02, 2022 5:03 pm
so doing like this wont work ?
!k nick custom kick msg
!kb nick custom kick msg
i tested it ad added the line u suggested but it didnt add the custom kick msg
SpiKe^^
Owner
Posts: 831 Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:
Post
by SpiKe^^ » Wed Feb 02, 2022 5:08 pm
That's not what I said.
Said it just does that and kills the other options for the k and kb commands.
Try the hack and see...