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