mIRC Homepage
Posted By: Kev_Uk Query Secure popmenu add/remove list - 23/04/04 09:51 PM
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.  }
Posted By: Iori Re: Query Secure popmenu add/remove list - 25/04/04 01:20 AM
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.
  }
}
Posted By: Kev_Uk Re: Query Secure popmenu add/remove list - 25/04/04 03:36 PM
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.
Posted By: Kev_Uk Re: Query Secure popmenu add/remove list - 27/04/04 04:33 PM
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.
}
}
Posted By: Iori Re: Query Secure popmenu add/remove list - 28/04/04 01:45 AM
Then you'd probably be wanting to change to "guser securequery $1 3".
Posted By: milosh Re: Query Secure popmenu add/remove list - 28/04/04 01:49 AM
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>!*@*
Posted By: Iori Re: Query Secure popmenu add/remove list - 28/04/04 01:59 AM
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
© mIRC Discussion Forums