mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
#69236 24/04/04 03:35 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
$iif(#,#,$nick)

Oh, so this could be translated to:

$iif(# ischan,#,$nick) ??

smile

#69237 23/05/04 01:14 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Hmm.. i was wondering another thing:
Code:
(# || $query($target))
what does this mean? :P

Thanks, Zyzzy. smile

#69238 24/05/04 07:01 AM
I
Iori
Iori
I
More like $iif($target ischan,$target,$nick)

#69239 24/05/04 07:10 AM
I
Iori
Iori
I
if (# || $query($target))
Much like the other Q. In this case, it's an input, so $target will (most likely) be the active window.
In a channel window "#" returns the channelname and is NUL in other windows. If the script is triggered from a channel window "if #" is matched (not $false,$null,0) so $ifmatch will return #channelname.
In any other window, "#" is NULL, so the script moves to the next condition "if $query($target)". if you are inputting into a query window, then this will match and $ifmatch will return the windowname.
If neither "#" nor "$query($target)" are matched, then the script moves on (in this case, there is nothing more, so it returns).

#69240 24/05/04 03:07 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Ohh.. now i see smile I was confused because if (# || $query($target)) doesnt have an $active
E.g.: if ($active == (# || $query($target)))

So i was wondering what was it comparing with..

Thanks for the explanation!

Zyzzy. smile

#69241 14/11/04 08:42 PM
F
fuku
fuku
F
works nice, but when i use
/say text or
//msg $chan text
the <nick> are here again, how can i remove them?

Page 2 of 2 1 2

Link Copied to Clipboard