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.

Ok, where is my putmode

Old posts that have not been replied to for several years.
Locked
t
tradergt

Ok, where is my putmode

Post by tradergt »

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 »

try pushmode

:)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

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 »

Ok, sue me, I was up till 4 am messing with the script and got putkick and pushmode all tangled.. lol

Thanks guys

:oops:
Locked