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 

Interpreting responses

 
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
sneep
Guest





PostPosted: Mon Sep 22, 2003 5:09 am    Post subject: Interpreting responses Reply with quote

Is there any way for a TCL script to interpret responses ?

What I want to do is something like this :

User command !regchan #channelnamehere
Then the TCL script takes over doing the following

/msg NS info <nick>
if response = "not authenticated" then say "You are not authenticed or registered" if "<nick> is authenticated to <nick>" then continue

/join #channelnamehere
if <nick> isop then continue else "You are not opped in this channel"
if X isop then "This channel is already registered"

/msg X register #channelnamehere
If response is "<nick> already has enough channels" then say "You have exceeded your quota of channels registered under your nick, if you would like more eplease contact an IRCop"

Can someone help me with this ?
Thanks in advance
David Kerr
Back to top
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