mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2010
Posts: 1
3
Mostly harmless
OP Offline
Mostly harmless
3
Joined: Aug 2010
Posts: 1
How do I make a command +v nick without doing /mode #chan nick?


I really want that, please tell me the script for it.
I tried to make one on Aliases but It doesn't work. It works If I put a "/".

I want it like this, example: "+v m".
I really appreciate your help.

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
You can do this with the on input event:
Code:
on @*:input:#:{ 
  if ($1 == +v) && ($2 ison #) && ($2 !isvoice #) {
    mode # +v $2
  }
}


Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Why not just make a /v alias instead of +v?

Using +v requires ON INPUT like above, but that's messy. It's much easier to just use a /command.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Well I agree, but he wants to be able to enter +v... and I was just giving him an example based on what he described.

Joined: Sep 2007
Posts: 202
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Sep 2007
Posts: 202
This was also posted here by a user previously:

Code:
on *:INPUT:#:if ($regex($1,/^[+-][qohv]$/)) mode # $1 $iif(!$2,$nick,$2)




Link Copied to Clipboard