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.

#channel exist ?

Help for those learning Tcl or writing their own scripts.
Post Reply
B
BoaR
Halfop
Posts: 48
Joined: Fri Jul 20, 2007 1:36 am

#channel exist ?

Post by BoaR »

i would like to see something that would check if the word has # in front of the word and if the channel exists in the bots channel list .

i have this to get the 2nd word:

set chan [lindex [split $text] 1]
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Use the validchan command.
doc/tcl-commands.doc wrote: validchan <channel>
Description: checks if the bot has a channel record for the specified
channel. Note that this does not necessarily mean that the bot is ON
the channel.
Returns: 1 if the channel exists, 0 if not
Module: channels
NML_375
B
BoaR
Halfop
Posts: 48
Joined: Fri Jul 20, 2007 1:36 am

Post by BoaR »

thanks :D
Post Reply