mIRC Homepage
Posted By: starpossen mIRC address book popup - 26/10/06 01:02 PM
Hi.
In mIRC you have the address book, where under Control you can add Ignore, Op, Voice and Protect, is there any way to make a script so you can rightclick a user and add the user to let's say auto voice, and also delete the user?

If this has been poorly explained im sorry.
Posted By: b1ink Re: mIRC address book popup - 26/10/06 02:22 PM
/help control
Posted By: starpossen Re: mIRC address book popup - 26/10/06 03:48 PM
Thanks for your reply, but that is really not helping me alot.
Posted By: Mentality Re: mIRC address book popup - 26/10/06 04:15 PM
You need to use those commands (/aop, /avoice, /ignore, /protect) to your nick list Popups section.

ALT+P > View > Nick List

For help with making Popups see /help Popups (it's easy, honest). Once you've had a bash at doing that if you're still having trouble post what you've written and we'll go from there :-)

Regards,
Posted By: starpossen Re: mIRC address book popup - 26/10/06 05:36 PM
Okay the avoice works, but the aop does not work, when i use it, it shows the aop list from chanserv
This is what i got so far with a none working aop.
Code:
Test
..add aV: /avoice $1
..add aO: /aop $1


Im still learning and a big noob, so bare with me.
*EDIT*
Test
..add aV: /avoice $1 3
..del aV: /avoice -r $1 3

But the aop drives me nuts, dont know what to do, maybe im blind
Posted By: Riamus2 Re: mIRC address book popup - 26/10/06 08:48 PM
If this is in a menu, where is $1 coming from? I can't test right now, but I'm not sure that $1 is valid even on a nicklist menu. I'd think you'd need $snick or $snicks for a nicklist menu. For anywhere else, I think you'd need $$?="Enter nick" .
Posted By: MikeChat Re: mIRC address book popup - 26/10/06 08:54 PM
nicklist popups use $1 for the nick
fish abuse on $1 : me beats up $1 a bit with a trout
Posted By: Riamus2 Re: mIRC address book popup - 26/10/06 08:57 PM
Ok. Like I said, I couldn't test it and I don't write scripts that use the nicklist menu, so wasn't sure.

In either case, if the aop list is being displayed instead of the command working, then either the command format is incorrect, or $1 isn't being supplied. I believe /aop by itself displays the listing.
Posted By: MikeChat Re: mIRC address book popup - 26/10/06 09:06 PM
did you check for a bug report on the /aop -r $1 3

might be a known issue
Posted By: starpossen Re: mIRC address book popup - 26/10/06 10:19 PM
Code:
Test
..add aV: /avoice $1 3
..del aV: /avoice -r $1 3
..add aO: /aop $1 3
..del aO: /aop -r $1 3

The avoice works perfectly.

When I rightclick on a user in the nicklist and use the aop function showen, all i get is:
Code:
[00:16:19] -> *chanserv* aop #dralla list
[00:16:20] -ChanServ- Channel #dralla isn't registered.
Posted By: Mentality Re: mIRC address book popup - 26/10/06 11:00 PM
I don't get such a result.

I can only imagine you have an alias somewhere named /aop. Type /alias /aop and then try the popup, see if it works.

Regards,
Posted By: starpossen Re: mIRC address book popup - 26/10/06 11:31 PM
Thanks for the reply, it helped me on the way.

It was an /aop interferring from another script, I unloaded it, and now my popus works perfectly, avoice and aop.

So for now my script looks like this:
Code:
Test
..add aV: /avoice $1 $chan 1
..del aV: /avoice -r $1 $chan 1
..add aO: /aop $1 $chan 1
..del aO: /aop -r $1 $chan 1


Now is there a way to make mirc show the avoice list and the aop list?
without having to open the address book?

*EDIT*
Added $chan and changed 3 to 1
Posted By: Mentality Re: mIRC address book popup - 27/10/06 12:24 AM
The -l switch with those commands lists the access lists accordingly.

Regards,
Posted By: starpossen Re: mIRC address book popup - 27/10/06 01:02 AM
Code:
AutoList
.voice
..list aV: /avoice -l $chan
..add aV: /avoice $1 $chan 1
..del aV: /avoice -r $1 $chan 1
.op
..list aO: /aop -l $chan
..add aO: /aop $1 $chan 1
..del aO: /aop -r $1 $chan 1
.protect
..list protect: /protect -l $chan
..protect: /protect $1 $chan 1
..deprotect: /protect -r $1 $chan 1
.ignore
..list ignore: /ignore -l $chan
..ignore: /ignore $1 $chan 1
..unignore: /ignore -r $1 $chan 1

Cleaned a bit, and added the list function.

Any suggestions to improve this?

*EDIT*
Added protect and ignore, but the list ignore is showing as empty when using the popu, but when looking in the address book, it shows the ignores i added, how come?
Posted By: deegee Re: mIRC address book popup - 27/10/06 03:54 AM
The /ignore command
/ignore [-lrpcntikdwxu#] <on|off|nick/address> [type] [network]
There is no [#channel] field for /ignore, so if you try using it, mirc treats it as a network
Try this
Code:
.ignore
..list ignore: /ignore -l
..ignore: /ignore $1 1
..unignore: /ignore -r $1 1
Posted By: starpossen Re: mIRC address book popup - 27/10/06 04:29 AM
Thanks, I guess I could have figured that one out myself if I hadnt been doing this in the middle of the night hehe, anyways, thanks for all the replies, everything is working as it should now.
© mIRC Discussion Forums