egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Joining a channel with conditions

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
-W0kk3L-
Voice


Joined: 23 Feb 2003
Posts: 24

PostPosted: Tue Jul 26, 2005 12:36 pm    Post subject: Joining a channel with conditions Reply with quote

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... Smile
Back to top
View user's profile Send private message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Tue Jul 26, 2005 12:53 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
-W0kk3L-
Voice


Joined: 23 Feb 2003
Posts: 24

PostPosted: Tue Jul 26, 2005 1:09 pm    Post subject: Reply with quote

Works perfectly... thank you! Smile
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber