mIRC Home    About    Download    Register    News    Help

Print Thread
#116541 06/04/05 02:34 AM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
In mirc's mouse events (in the options) where the double click is, how could I make it so I DONT perform thesecommands if the nick is me:

//.ignore -wdiknpt $address($$1,9) | //ban $$1 2 | //kick # $$1 $read(kix.txt)

Is it possible using $iif? If so, how?


Those who fail history are doomed to repeat it
#116542 06/04/05 02:57 AM
Joined: Mar 2004
Posts: 457
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
$iif($$1 != $me,an-alias-name $$1 $chan,)

alias an-alias-name {
.ignore -wdiknpt $address($1,9)
mode $2 +b $address($1,2)
kick $2 $1 $read(kix.txt)
}

If someone does know of a way of using |'s in $iif's i'd like them to post how please cuz i'd like to know too smile

#116543 06/04/05 03:12 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Well here's one way of using pipes but not the way you wanted it.. :tongue:

Code:
$iif(A === a || A === A, Yes,No)

#116544 06/04/05 05:55 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
$$iif($$1 != $me,/) | .ignore -wdiknpt $address($$1,9) | ban $$1 2 | kick # $$1 $read(kix.txt)

#116545 06/04/05 07:22 AM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
Quote:

If someone does know of a way of using |'s in $iif's i'd like them to post how please cuz i'd like to know too smile


$iif is only supposed to return a value, I've seen people use it in place of whole commands but really an if statement should be used instead

Code:
/if ($$1 != $me) { .ignore -wdiknpt $1 9 | ban -k # $1 2 $read(kix.txt) }


DaveC's method is quite interesting, suitable in this case, you can even put the first command in the $iif in place of /

#116546 06/04/05 07:25 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
that works perfectly thank you!


Those who fail history are doomed to repeat it

Link Copied to Clipboard