mIRC Home    About    Download    Register    News    Help

Print Thread
#51613 27/09/03 01:58 PM
Joined: Sep 2003
Posts: 9
F
fred999 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
F
Joined: Sep 2003
Posts: 9
I have this script that has a command like that:

.timer 1 1 /msg # %sss

when a user in the channel does !command, this starts. And after 1 second, %sss is displayed.

This works, but sometimes %sss contains the character | (the vertical bar). When this is the case, %sss is truncated. Everything to the right of | in %sss is deleted. Only what is left of | is displayed.

It only happens when I put the timer. If I don't put the timer, all of %sss is displayed.

How do I fix this without taking away the timer?

thanks

#51614 27/09/03 02:35 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
replace the | with $chr(124) , then it should work


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#51615 27/09/03 03:16 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
.timer 1 1 msg # % $+ sss

#51616 29/09/03 11:40 AM
Joined: Sep 2003
Posts: 9
F
fred999 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
F
Joined: Sep 2003
Posts: 9
Thanks to both of you. I used Iori's idea because it was simpler.

bye smile


Link Copied to Clipboard