Ozzy10 Posted March 14, 2007 Report Share Posted March 14, 2007 much easier to use a .ini file Link to comment Share on other sites More sharing options...
Black Scorpion Posted March 15, 2007 Author Report Share Posted March 15, 2007 Ok, if ($1- == ****) This says, if the whole text line == ****. Do you understand? The whole line has to exactly match ****. You would probably want to say isin or something. Actually I believe I do. alias kicknick { if (-* !iswm $1) || ($len($1) > 3) halt if (b isin $1) access $2 add deny $address($3,2) $4 : $+ $5- \ This would be the words that would ban. if (k isin $1) kick $2 $3 $iif(b isin $1,$5-,$4-) \ This would be the words that would kick } on *:TEXT:*:#:{ tokenize 32 $vstrip($1-) if ($1- == ***) kicknick -bk $chan $nick 0 $1 Not Allowed } If I used the -bk it would kick/ban for the word or phrase. If I use -b it would ban, but in essence, this should only be used in a kick/ban scenario. The -k would just kick. This: alias kicknick { if (-* !iswm $1) || ($len($1) > 3) halt if (b isin $1) access $2 add deny $address($3,2) $4 : $+ $5- if (k isin $1) kick $2 $3 $iif(b isin $1,$5-,$4-) } is basically the command/prompt/var/or we line. It is what tells the code what to respond to. $1 will only respond to the text wanted if its the first word. if **** isin $1- will respond to textt anywhere in the statement. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now