mIRC Home    About    Download    Register    News    Help

Print Thread
#193047 14/01/08 02:59 PM
V
vinnie19
vinnie19
V
Hello all.

I now voice users i want with this code:

Code:
on *:JOIN:#: {
  ;- If nick Revolution is give voice
  if ($nick == Revolution) {
    /mode $chan +v $nick
  }
}


But i want all nick to voice that use Revolution in there nicks

So if i enter with the nick --> Revolution|sleeping that it wil be voiced.

With the code i now have (above) the user Revolution|sleeping doesnt get voiced.

Is there something like voice user Revolution*
* = stands for everything after that nick is good.

Last edited by vinnie19; 14/01/08 03:00 PM.
#193048 14/01/08 03:01 PM
Joined: Dec 2002
Posts: 1,995
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,995

Try this...

Code:

on @*:JOIN:#: {
  ;- If nick Revolution is give OP
  if (Revolution* iswm $nick) {
    /mode $chan +v $nick
  }
}



~ Edit ~
Also, you could use the built-in auto voice
/op...

Example:
/avoice Revolution*

/help /avoice
/help /aop

RoCk #193050 14/01/08 03:23 PM
X
XTZGZoReX
XTZGZoReX
X
Good idea would be to match the address too.

//whois <nick>
^ grab the address.

Then;

Code:
on *:JOIN:#: {
  ;- If nick Revolution is give OP
  if (Revolution* iswm $nick) && ($address($nick,2) = <the address here>) {
    /mode $chan +v $nick
  }
}

#193052 14/01/08 04:19 PM
Joined: Dec 2002
Posts: 1,995
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,995

It was my understanding that the OP wants to auto-voice anyone whos nick begins with Revolution so I deemed addresses to be irrevelant.

RoCk #193057 14/01/08 05:47 PM
V
vinnie19
vinnie19
V
Revolution was just an example.

I have some users that need VOICE.
But they login sometimes with nicks like: Revolution|sleeping or Revolution|work.

And i dont want to have the address where he comes from because they sometimes login from there work and then they need to be voiced to.

EDIT: Thx it worked the script with the address i ripped out the last part from the adres and now it works what i want

Last edited by vinnie19; 14/01/08 05:55 PM.
#193058 14/01/08 05:50 PM
Joined: Dec 2002
Posts: 1,995
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,995

One of the solutions in my first reply should work for you, just replace the word Revolution with whatever you need it to be.

RoCk #193061 14/01/08 05:54 PM
L
LostShadow
LostShadow
L
Or in other words, the code that the 2 gace you, used the code:

if (Revolution* iswm $nick)

That does not check if the nick == Revolution. Note there is an asterisk (*) after Revolution. That is a wildcard.

So it will include Revolution|Sleeping, Revolution2, etc.

And then, if I were Revolution[Away], and I wanted voice, logic tells me I could part the channel and /nick Revolution, then rejoin, then get that *necessary* +v that I absolutely need. Or /nick and /hop if I'm allowed that. I'm assuming this is a place like Efnet.

-Neal.


Link Copied to Clipboard