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.

custom stickyban

Help for those learning Tcl or writing their own scripts.
Post Reply
s
simo
Revered One
Posts: 1107
Joined: Sun Mar 22, 2015 2:41 pm

custom stickyban

Post by simo »

i managed to modify an existing code to detect removal of extended ban only this is for 1 example anyway to change this into a custom stickyban in wich we can add other extended bans as well without having to add in the tcl each time:

Code: Select all

bind raw - MODE show:mode
proc show:mode {from key text} {
  set chanz2 [lindex [split $text] 0]
  set modez2 [join [lrange [split $text] 1 end]]
  if {[string match *-*b*G:RO* $modez2]} { pushmode  $chanz2  +[string trimleft $modez2 "-"] }
}
Last edited by simo on Sun Oct 11, 2020 12:33 pm, edited 2 times in total.
s
simo
Revered One
Posts: 1107
Joined: Sun Mar 22, 2015 2:41 pm

Post by simo »

is there a better way than to do like this ?
also is there a way to exclude from gettin removed by ban-time ? as we use ban-time setting

i tried using stickyban but countered issues if me or any other chanop removed the ban it would reset as +b G:RO!@* instead of +b G:RO so i couldnt use that
Post Reply