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.
Help for those learning Tcl or writing their own scripts.
BoaR
Halfop
Posts: 48 Joined: Fri Jul 20, 2007 1:36 am
Post
by BoaR » Sat Aug 04, 2007 3:47 pm
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]
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Sat Aug 04, 2007 4:03 pm
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
BoaR
Halfop
Posts: 48 Joined: Fri Jul 20, 2007 1:36 am
Post
by BoaR » Sat Aug 04, 2007 6:20 pm
thanks