mIRC Home    About    Download    Register    News    Help

Print Thread
#26052 26/05/03 07:39 AM
Joined: Dec 2002
Posts: 45
P
piko Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Dec 2002
Posts: 45
Code:
 on *:CTCPREPLY:PING*:{
  echo -at $tal(ctcpreply) $tal($nick) 11 $+ $1-
  haltdef
} 


this returns:
[ctcp piko ping]
[ctcpreply] [piko] PING 1053967121

why? smile

#26053 26/05/03 08:01 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
/help Halting Default Text
/help /haltdef

Use the ^ prefix on the user level, and /haltdef at the end.


-KingTomato
#26054 26/05/03 04:26 PM
Joined: Dec 2002
Posts: 45
P
piko Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Dec 2002
Posts: 45
Code:
on ^*:CTCPREPLY:PING*:{
  echo -at [ctcpreply] [ $+ $nick $+ ] [ $+ $1- $+ ]
  haltdef
} 

should return:
[ctcpreply] [piko] [PING 1secs]

but it returns:
[piko PING reply]: 1secs

why..?

#26055 26/05/03 05:18 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
the []'s are evaluation brackets. Think of it as a math problem, where you evaluate anything in the parenthesis ()'s first. Same goes with the square backers, anything within them is evaluated first. Try using the following:

[ = [[
] = ]]

Just double up on the bracket, and the single bracket will shine through >:D


-KingTomato
#26056 26/05/03 06:22 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Code:
on *:CTCPREPLY:PING*:{
  echo -at [ctcpreply] $+([,$nick,] [,$1: $duration($calc($ctime - $2)),])
  halt
}

#26057 27/05/03 05:00 PM
Joined: Dec 2002
Posts: 45
P
piko Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Dec 2002
Posts: 45
thx :X


Link Copied to Clipboard