| View previous topic :: View next topic |
| Author |
Message |
BoaR Halfop
Joined: 20 Jul 2007 Posts: 48
|
Posted: Sat Aug 04, 2007 3:47 pm Post subject: #channel exist ? |
|
|
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] |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sat Aug 04, 2007 4:03 pm Post subject: |
|
|
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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
BoaR Halfop
Joined: 20 Jul 2007 Posts: 48
|
Posted: Sat Aug 04, 2007 6:20 pm Post subject: |
|
|
thanks  |
|
| Back to top |
|
 |
|