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.

.chanset from tcl

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
d
darkrad
Voice
Posts: 16
Joined: Wed Sep 10, 2003 6:33 pm

.chanset from tcl

Post by darkrad »

is there any way to do this in a tcl script:
check every 5 mins if a user is on a channel #x, if yes then .chanset #x -something, else .chanset #y +something.
Any help? thanks
User avatar
ZEXEL
Halfop
Posts: 45
Joined: Tue Jun 27, 2006 10:47 pm
Contact:

like limit chan

Post by ZEXEL »

ups! I think it's like Automatic Limit Channel. :wink:
d
darkrad
Voice
Posts: 16
Joined: Wed Sep 10, 2003 6:33 pm

Post by darkrad »

and what does it means?
any code example?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

channel set <name> <options...>
Description: sets options for the channel specified. The full list of possible options are given in doc/settings/mod.channels.
Returns: nothing
Module: channels

Code: Select all

if {![string match "*my_timer_check*" [timers]]} {timer 5 my_timer_check}

proc my_timer_check {} {
  if {[onchan usernickname #channelx]} {
               channel set #channelx -something
  } else {
               channel set #channely +something
  }

  if {![string match "*my_timer_check*" [timers]]} {timer 5 my_timer_check}
}
Something like that.
User avatar
ZEXEL
Halfop
Posts: 45
Joined: Tue Jun 27, 2006 10:47 pm
Contact:

Yoowww...

Post by ZEXEL »

I love your code rosc2112...
thank you... :wink:
Post Reply