mIRC Home    About    Download    Register    News    Help

Print Thread
#193047 14/01/08 02:59 PM
Joined: Jan 2008
Posts: 21
V
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jan 2008
Posts: 21
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.
vinnie19 #193048 14/01/08 03:01 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

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
Joined: Sep 2007
Posts: 65
X
Babel fish
Offline
Babel fish
X
Joined: Sep 2007
Posts: 65
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
  }
}


GamerzWoW
The Official GamerzPlanet WoW Server
XTZGZoReX #193052 14/01/08 04:19 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

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
Joined: Jan 2008
Posts: 21
V
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jan 2008
Posts: 21
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.
vinnie19 #193058 14/01/08 05:50 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

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
Joined: Jan 2004
Posts: 509
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
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