mIRC Home    About    Download    Register    News    Help

Print Thread
devoice #195804 02/03/08 04:22 PM
Joined: Jan 2008
Posts: 44
J
jakerandall Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2008
Posts: 44
Code:
on *:Voice:#: {
  notice $nick You $nick Are Not Allowed To Voice Anybody!
  mode $chan -v $nick
}

its not devoicing smirk im failing lol if anybody cud show me whats actually wrong. much aprreciated

Last edited by jakerandall; 02/03/08 08:31 PM.

#Plesh on QuaKenet
Jake Randall
Need help?
#Plesh - QuakeNet
Private Message Me Here!
Re: devoice [Re: jakerandall] #195814 02/03/08 10:27 PM
Joined: Aug 2003
Posts: 144
M
Miguel_A Offline
Vogon poet
Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
Hi.

Have any other on voice event in the same script file ??

Some eventīs canīt be repeted in the same file. Donīt know if it is the case off the on voice evenīt.

Check it out and say something... becouse the evenīt it self looks good from here.

Good luck

Re: devoice [Re: jakerandall] #195815 02/03/08 10:50 PM
Joined: Dec 2002
Posts: 2,025
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,025

Wanting to devoice the user that was voiced? Try mode $chan -v $vnick

Also you should prefix the event with !@

Code:

on !@*:VOICE:#:
  notice $nick You $nick Are Not Allowed To Voice Anybody!
  mode $chan -v $vnick
}



Last edited by RoCk; 02/03/08 10:54 PM.
Re: devoice [Re: Miguel_A] #195816 02/03/08 10:55 PM
Joined: Jul 2006
Posts: 3,827
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,827
Originally Posted By: Miguel_A
Some eventīs canīt be repeted in the same file.
False, just respect how event are parsed.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: devoice [Re: Wims] #195818 02/03/08 11:25 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Heh, not exactly false... just doesn't explain it clearly.

You can have virtually unlimited on TEXT events in a single script, but only the first *matching* event will trigger. As a quick example, for those who don't know or don't understand:

If the first on TEXT event uses matchtext of * (meaning it matches anything), then a second on TEXT event uses matchtext of !help and both are for all channels, only the first will trigger no matter what...

Code:
on *:text:*:#: { echo -a Matched * }
on *:text:!help:#: { echo -a Matched !help }


If someone types !help in the channel, the first event will match because it matches everything. And because only the first event that matches will trigger, the second event will never trigger. If you flip the two around so that !help is above *, then the !help one will trigger if someone types !help and the * won't, but the * will still trigger if anything else is typed. If you need both to trigger when !help is typed, they should be in separate scripts.


Invision Support
#Invision on irc.irchighway.net
Re: devoice [Re: Riamus2] #195820 03/03/08 12:14 AM
Joined: Jul 2006
Posts: 3,827
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,827
I said false because actually, without speaking of "trigger" :
Originally Posted By: Riamus2
You can have virtually unlimited on TEXT events in a single script
And you nicely explain the "triggering part" smile



Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net