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.  }