| View previous topic :: View next topic |
| Author |
Message |
simo Owner
Joined: 22 Mar 2015 Posts: 941
|
Posted: Sun Oct 11, 2020 12:20 pm Post subject: custom stickyban |
|
|
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: |
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 |
|
| Back to top |
|
 |
simo Owner
Joined: 22 Mar 2015 Posts: 941
|
Posted: Sun Oct 11, 2020 12:32 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|