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.

Joining a channel with conditions

Old posts that have not been replied to for several years.
Locked
-
-W0kk3L-
Voice
Posts: 24
Joined: Sun Feb 23, 2003 7:23 pm

Joining a channel with conditions

Post by -W0kk3L- »

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... :)
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

Code: Select all

set modes [getchanmode $chan]
if {[string match "*c*" $modes]} {
# channel has +c set
} else {
#channel has no +c set
}
Try that...
r0t3n @ #r0t3n @ Quakenet
-
-W0kk3L-
Voice
Posts: 24
Joined: Sun Feb 23, 2003 7:23 pm

Post by -W0kk3L- »

Works perfectly... thank you! :)
Locked