mIRC Home    About    Download    Register    News    Help

Print Thread
#151533 18/06/06 07:34 PM
Joined: Aug 2003
Posts: 66
B
bynw Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Aug 2003
Posts: 66

Can someone explain what this means:

on $*:text:/^[!@.]ts/i:#:COMMANDS HERE


Thanks

#151534 18/06/06 07:53 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
It is an on text even that will react and perform the commands if it matches the following:

The first word of the sentence must be a word that starts with:

Either an ! @ or . and is followed by "ts" which may be in any case (lower/upper).

Examples: !ts, @tS,.TS etc.


Gone.
#151535 18/06/06 07:59 PM
Joined: Aug 2003
Posts: 66
B
bynw Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Aug 2003
Posts: 66
what is the on $* ... i havent seen that before and cant find reference to it in the mIRC help file.

and for the beginning of the statement:
/^[!@.]ts/i

is the /^ ... /i the code that indicates what the line starts with?

Last edited by bynw; 18/06/06 08:02 PM.
#151536 18/06/06 08:04 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
The $ prefix implies that the match text contains a regular expression.

The / are just delimiters to the match pattern.

^ means the pattern must match at the beginning of the string.

/i means a case insensitive match.


Link Copied to Clipboard