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 

custom stickyban

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
simo
Owner


Joined: 22 Mar 2015
Posts: 536

PostPosted: Sun Oct 11, 2020 12:20 pm    Post subject: custom stickyban Reply with quote

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 "-"] }
}

_________________
Coming together is a beginning, staying together is progress, working together is succes.


Last edited by simo on Sun Oct 11, 2020 12:33 pm; edited 2 times in total
Back to top
View user's profile Send private message
simo
Owner


Joined: 22 Mar 2015
Posts: 536

PostPosted: Sun Oct 11, 2020 12:32 pm    Post subject: Reply with quote

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
_________________
Coming together is a beginning, staying together is progress, working together is succes.
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 -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
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