is it possible to read isin from a .txt - 13/10/06 04:37 PM
im wondering if there is a way to read variables for isin from a .txt
seeing i have alot of things to match
so if it mathes one of the lines in my .txt (partially)
i want it to continue
so on the THIS.THING part in the code below
i want it to read from a .txt and partially match any line in there
so if it matches a line ie if the entire line is in the $1- (or more offcourse)
i want it to match
so 'Blah.Blah' is in my .txt
i want it to match that to Blah.Blah.Blah.Blah in $1-
and the txt contains the BEGINNING of what i what to match
so its always the beginning of a piece i dont want it to match if its like this 'nothing.nothing.Blah.Blah.Nothing'
so only 'Blah.Blah.Nothing'
i hope this is enough explanation
thanks in advance
seeing i have alot of things to match
so if it mathes one of the lines in my .txt (partially)
i want it to continue
so on the THIS.THING part in the code below
i want it to read from a .txt and partially match any line in there
so if it matches a line ie if the entire line is in the $1- (or more offcourse)
i want it to match
so 'Blah.Blah' is in my .txt
i want it to match that to Blah.Blah.Blah.Blah in $1-
and the txt contains the BEGINNING of what i what to match
so its always the beginning of a piece i dont want it to match if its like this 'nothing.nothing.Blah.Blah.Nothing'
so only 'Blah.Blah.Nothing'
i hope this is enough explanation
thanks in advance
Code:
ON 1: TEXT:*:# { if ($nick isin %TEST) { set %testnick $nick set %match $strip($1-) if (match1 isin %match) && (match2 isin %match) { if (match3 isin %match) || (match4 isin %match) { if (THIS.THING isin %match) { .echo works} } } unset %testnick unset %match } else { halt } }