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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
darkrad
Voice
Posts: 16 Joined: Wed Sep 10, 2003 6:33 pm
Post
by darkrad » Sun Oct 29, 2006 7:16 am
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
ZEXEL
Halfop
Posts: 45 Joined: Tue Jun 27, 2006 10:47 pm
Contact:
Post
by ZEXEL » Sun Oct 29, 2006 8:05 am
ups! I think it's like Automatic Limit Channel.
darkrad
Voice
Posts: 16 Joined: Wed Sep 10, 2003 6:33 pm
Post
by darkrad » Sun Oct 29, 2006 8:43 am
and what does it means?
any code example?
rosc2112
Revered One
Posts: 1454 Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania
Post
by rosc2112 » Sun Oct 29, 2006 11:16 am
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.
ZEXEL
Halfop
Posts: 45 Joined: Tue Jun 27, 2006 10:47 pm
Contact:
Post
by ZEXEL » Sun Oct 29, 2006 3:41 pm
I love your code rosc2112...
thank you...