mIRC Homepage
Posted By: jakerandall devoice - 02/03/08 04:22 PM
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
Posted By: Miguel_A Re: devoice - 02/03/08 10:27 PM
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
Posted By: RoCk Re: devoice - 02/03/08 10:50 PM

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
}


Posted By: Wims Re: devoice - 02/03/08 10:55 PM
Originally Posted By: Miguel_A
Some event´s can´t be repeted in the same file.
False, just respect how event are parsed.
Posted By: Riamus2 Re: devoice - 02/03/08 11:25 PM
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.
Posted By: Wims Re: devoice - 03/03/08 12:14 AM
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

© mIRC Discussion Forums