| View previous topic :: View next topic |
| Author |
Message |
darkrad Voice
Joined: 10 Sep 2003 Posts: 16
|
Posted: Sun Oct 29, 2006 7:16 am Post subject: .chanset from tcl |
|
|
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 |
|
| Back to top |
|
 |
ZEXEL Halfop

Joined: 27 Jun 2006 Posts: 45
|
Posted: Sun Oct 29, 2006 8:05 am Post subject: like limit chan |
|
|
ups! I think it's like Automatic Limit Channel.  |
|
| Back to top |
|
 |
darkrad Voice
Joined: 10 Sep 2003 Posts: 16
|
Posted: Sun Oct 29, 2006 8:43 am Post subject: |
|
|
and what does it means?
any code example? |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sun Oct 29, 2006 11:16 am Post subject: |
|
|
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: |
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. |
|
| Back to top |
|
 |
ZEXEL Halfop

Joined: 27 Jun 2006 Posts: 45
|
Posted: Sun Oct 29, 2006 3:41 pm Post subject: Yoowww... |
|
|
I love your code rosc2112...
thank you...  |
|
| Back to top |
|
 |
|