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.
Old posts that have not been replied to for several years.
t
tradergt
Post
by tradergt » Thu Sep 12, 2002 11:48 am
I thought there was a command putmode for tcl. I am writing a script to unban when the banlist is full, but putserv writes each unban sperately.. how can I get eggie to stack the mode? or and why does it say putmode is not an available command?
Thanks
e
eiSiQ
Post
by eiSiQ » Thu Sep 12, 2002 11:51 am
try pushmode
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Thu Sep 12, 2002 1:41 pm
That, or create your own stacking system.
First, populate a list with a ban masks to be removed (in this case, it's $i)
Code: Select all
set b2 {}
foreach b1 $l {
lappend b2 $b1
if {[llength $b2] == 4} {
putserv "MODE $channel -bbbb [join $b2]"
set b2 {}
}
}
if {[llength $b2]} { putserv "MODE $chan -[string repeat b [llength $b2]] [join $b2]" }
t
tradergt
Post
by tradergt » Thu Sep 12, 2002 2:07 pm
Ok, sue me, I was up till 4 am messing with the script and got putkick and pushmode all tangled.. lol
Thanks guys
:oops: