| View previous topic :: View next topic |
| Author |
Message |
-W0kk3L- Voice
Joined: 23 Feb 2003 Posts: 24
|
Posted: Tue Jul 26, 2005 12:36 pm Post subject: Joining a channel with conditions |
|
|
I've got a question...
For my newsbot i have created a requestscript, so people can request the bot. I've built in some checks so the bot doesn't join bogus channels etc.
When the bot is requested it joins the channel and checks stuff like the number of clients, L or Q present, S not present....etc...
Is it also possible for the bot to check if the chan had mode +c ?? When a channel on Quakenet has +c, you can't show colours and bold text. Since my scripts all have bold caracters in the lines, it would be pretty useless to join those chans. Is there a way to check if a certain channel has mode +c?
Thnx in advance...  |
|
| Back to top |
|
 |
r0t3n Owner
Joined: 31 May 2005 Posts: 507 Location: UK
|
Posted: Tue Jul 26, 2005 12:53 pm Post subject: |
|
|
| Code: | set modes [getchanmode $chan]
if {[string match "*c*" $modes]} {
# channel has +c set
} else {
#channel has no +c set
} |
Try that... _________________ r0t3n @ #r0t3n @ Quakenet |
|
| Back to top |
|
 |
-W0kk3L- Voice
Joined: 23 Feb 2003 Posts: 24
|
Posted: Tue Jul 26, 2005 1:09 pm Post subject: |
|
|
Works perfectly... thank you!  |
|
| Back to top |
|
 |
|