egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

.chanset from tcl

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
darkrad
Voice


Joined: 10 Sep 2003
Posts: 16

PostPosted: Sun Oct 29, 2006 7:16 am    Post subject: .chanset from tcl Reply with quote

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
View user's profile Send private message
ZEXEL
Halfop


Joined: 27 Jun 2006
Posts: 45

PostPosted: Sun Oct 29, 2006 8:05 am    Post subject: like limit chan Reply with quote

ups! I think it's like Automatic Limit Channel. Wink
Back to top
View user's profile Send private message Visit poster's website
darkrad
Voice


Joined: 10 Sep 2003
Posts: 16

PostPosted: Sun Oct 29, 2006 8:43 am    Post subject: Reply with quote

and what does it means?
any code example?
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sun Oct 29, 2006 11:16 am    Post subject: Reply with quote

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
View user's profile Send private message
ZEXEL
Halfop


Joined: 27 Jun 2006
Posts: 45

PostPosted: Sun Oct 29, 2006 3:41 pm    Post subject: Yoowww... Reply with quote

I love your code rosc2112...
thank you... Wink
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber