mIRC Home    About    Download    Register    News    Help

Print Thread
#195804 02/03/08 04:22 PM
Joined: Jan 2008
Posts: 44
J
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!
jakerandall #195814 02/03/08 10:27 PM
Joined: Aug 2003
Posts: 144
M
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

jakerandall #195815 02/03/08 10:50 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

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.
Miguel_A #195816 02/03/08 10:55 PM
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
Originally Posted By: Miguel_A
Some event´s can´t be repeted in the same file.
False, just respect how event are parsed.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #195818 02/03/08 11:25 PM
Joined: Oct 2004
Posts: 8,330
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
Riamus2 #195820 03/03/08 12:14 AM
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
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



#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard