mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 174
K
Kev_Uk Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2002
Posts: 174
I have this for my nicklist popupmenu although i'm having trouble adding the feature to add 2 masks to add to my friends list then just 1, how do i combine them to the first code as follows?

.Secure Query (+/-): {
if $ulist($$1!*@*,securequery,1) { .ruser securequery $1!*@* | echo -a 4» 14Removed0 $1!*@* 14from the 9Secure Query List. }
else { .auser -a securequery $1!*@* | echo -a 4» 14Added0 $1!*@* 14to the 9Secure Query List. }
}

This is my older code which i don't need now but would like to add the address 3 too, so it has other options to add someone incase they happen to change their nickname.

.Secure Query
..Add $$1 $+ !*@*: { .auser securequery $$1 $+ !*@* | echo -a 0,2 Secure Query 12,8 Added4 $$1 $+ !*@* 12to the Secure Query List.  }
..Add $address($1,3): { .auser securequery $address($1,3) | echo -a 0,2 Secure Query 12,8 Added4 $address($1,3) 12to the Secure Query List.  }
..-
..Remove $$1 $+ !*@*: { .ruser securequery $$1 $+ !*@* | .ruser securequery $address($1,3) | echo -a 0,2 Secure Query 12,8 Removed4 $$1 $+ !*@* 12from the Secure Query List.  }
..Remove $address($1,3): { .ruser securequery $address($1,3) | echo -a 0,2 Secure Query 12,8 Removed4 $address($1,3) 12from the Secure Query List.  }

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
How about just simply adding the extra (a|r)user commands? :tongue:
Code:
.Secure Query (+/-):{
  if $ulist($$1!*@*,securequery,1) {
    .ruser securequery $1!*@*
    .ruser securequery $address($1,3)
    echo -a 4» 14Removed0 $1 14from the 9Secure Query List.
  }
  else {
    .auser securequery $1!*@*
    .auser securequery $address($1,3)
    echo -a 4» 14Added0 $1 14to the 9Secure Query List.
  }
}

Joined: Dec 2002
Posts: 174
K
Kev_Uk Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2002
Posts: 174
Thanks it worked, i did add that command but i added it the same way i sent the code to you, i guess it didn't like being on the same line as the other one, for it to get errors.

Joined: Dec 2002
Posts: 174
K
Kev_Uk Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2002
Posts: 174
I seem to be getting this message when trying to add/remove someone, it seems to reflect on the .ruser securequery $address($1,3)

* /auser: insufficient parameters (line 68, nicklist.ini)

.Secure Query (+/-):{
if $ulist($$1!*@*,securequery,1) {
.ruser securequery $1!*@*
.ruser securequery $address($1,3)
echo -a 4» 14Removed0 $$1 14from the 9Secure Query List.
}
else {
.auser securequery $1!*@*
.auser securequery $address($1,3)
echo -a 4» 14Added0 $$1 14to the 9Secure Query List.
}
}

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Then you'd probably be wanting to change to "guser securequery $1 3".

Joined: Dec 2003
Posts: 261
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 261
Hi, there. Just one little thing:
Change this: .auser securequery $1!*@*
into this: .auser securequery $1 $+ !*@*

The first will add $1!*@* to your list, and the second <nick>!*@*


velicha dusha moja Gospoda
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
No, $1!*@* will add nick!*@* smile
$N and $*dir identifiers can have things appended to them.

//tokenize 32 a be c | echo -a $1nyhow $2-ool


Link Copied to Clipboard