mIRC Home    About    Download    Register    News    Help

Print Thread
Query Secure popmenu add/remove list #80368
23/04/04 09:51 PM
23/04/04 09:51 PM
Joined: Dec 2002
Posts: 173
United Kingdom
K
Kev_Uk Offline OP
Vogon poet
Kev_Uk  Offline OP
Vogon poet
K

Joined: Dec 2002
Posts: 173
United Kingdom
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.  }

Re: Query Secure popmenu add/remove list #80369
25/04/04 01:20 AM
25/04/04 01:20 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Iori  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.
  }
}

Re: Query Secure popmenu add/remove list #80370
25/04/04 03:36 PM
25/04/04 03:36 PM
Joined: Dec 2002
Posts: 173
United Kingdom
K
Kev_Uk Offline OP
Vogon poet
Kev_Uk  Offline OP
Vogon poet
K

Joined: Dec 2002
Posts: 173
United Kingdom
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.

Re: Query Secure popmenu add/remove list #80371
27/04/04 04:33 PM
27/04/04 04:33 PM
Joined: Dec 2002
Posts: 173
United Kingdom
K
Kev_Uk Offline OP
Vogon poet
Kev_Uk  Offline OP
Vogon poet
K

Joined: Dec 2002
Posts: 173
United Kingdom
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.
}
}

Re: Query Secure popmenu add/remove list #80372
28/04/04 01:45 AM
28/04/04 01:45 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Iori  Offline
Hoopy frood
I

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

Re: Query Secure popmenu add/remove list #80373
28/04/04 01:49 AM
28/04/04 01:49 AM
Joined: Dec 2003
Posts: 261
Srbija
M
milosh Offline
Fjord artisan
milosh  Offline
Fjord artisan
M

Joined: Dec 2003
Posts: 261
Srbija
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
Re: Query Secure popmenu add/remove list #80374
28/04/04 01:59 AM
28/04/04 01:59 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Iori  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