mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2006
Posts: 35
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Nov 2006
Posts: 35
Hi All,

I am faced with one more confusing MTS code issue. The following is the code I already have for quits:

Code:
  

QUIT !script %:echo  3* %::nick ( $+ %::address $+ ) $iif(%::text,$iif($gettok(%::text,1,32) == Quit: && $gettok(%::text,2-,32),3Quit ( $+ $gettok(%::text,2-,32) $+ ),$iif($gettok(%::text,1,32) != Quit:,%::parentext))) %:comments



I think the last "Quit" where the <parentext> is has some error because the word "Quit" is being omitted from the actual message. Here is what shows on screen:

3* Test123 (~Test123@6b32.167952837f973144a60deddabc5328d0.FTCNetwork-GateKeeper) (Connection reset by peer)

On regular mIRC, it looks like this:

3* Test123 (~Test123@6b32.167952837f973144a60deddabc5328d0.FTCNetwork-GateKeeper) Quit (Connection reset by peer)

If anyone knows why the "Quit" isn't showing, I'd sure appreciate the help.

Thanks very much again!

Joined: Apr 2004
Posts: 759
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
This is a total quess:
change
$iif($gettok(%::text,1,32) != Quit:,%::parentext)
into
$iif($gettok(%::text,1,32) != Quit:,Quit: %::parentext)


$maybe
Joined: Nov 2006
Posts: 35
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Nov 2006
Posts: 35
I think that did the trick!

Thanks very much.


Link Copied to Clipboard