hmm now it seems to work, but Battlemonkey you should really take what i showed you an learn from it not just copy/paste bit's and pieces.
the reason i used $regex in the sockread was to get away from using an alias to strip the html among other things, but yet you still added an alias to strip the html to this. =/ why?
As well from the help file
/sockmark [text]
The /sockmark command fills the .mark attribute of a socket with the specified info for later reference via the $sock().mark property. If you do not specify any text, the mark is cleared. The mark can hold up to 512 bytes.
whats not to understand from that? I mean if you understand sockwrite then you should understand sockmark
lets say we have a socket named test and using the " sockmark [text] " Ex:
ok so now we are going to fill the sockmark with the info we want. Lest's say we want to fill it with a channel name lets call the channel #test and also add the $1 said in the on text event. so it would look like this:
sockmark test #test $1
now to pull the info we use $sock(test).mark that by it's self will say everything we added into the sockmark, but what if we just want to pull the channel we could do
$gettok($sock(test).mark,1,32)
i know you know how to use $gettok and $addtok so you should understand that.
do you get it now? no need to set all them global vars...
oh and if you are still going to use global vars you can change this
alias spellclear {
unset %spellyesorno
unset %schan
unset %ssug
unset %sword
}
into this
alias -l spellclear { unset %spellyesorno %schan %ssug %sword }
then you can use
$spellclear
or change the name of the vars into somthing like this
%spell.yesorno %spell.chan %spell.sug %spell.word
then use
unset %spell.*
unless you have other global vars that use the name %spell.whatever