mIRC Home    About    Download    Register    News    Help

Print Thread
#182640 12/08/07 02:09 PM
Joined: May 2007
Posts: 7
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: May 2007
Posts: 7
Code:
on 1:TEXT:*:?:{
  if ($idle > 300) {  
    if ($nick !isop #) && ($nick !isvoice #) {
      /msg $nick 4,5(6A1)4,5(6U1)4,5(6T1)4,5(6O1) 4,5(6R1)4,5(6E1)4,5(6S1)4,5(6P1)4,5(6O1)4,5(6N1)4,5(6S1)4,5(6E1): 6I have currently been idle for $duration($idle,3) and I'm probably not here.
      /msg $nick 6If you need help with something, leave a massage, otherwise I'll get your message later.If there is no one to assist you in #help, you can mail WiredReality staff at wired.support@gmail.com 6or at kampung.wired@gmail.com 6for #Kampung support. Thank You. Messågë Ignøre før 60 Sec(s)   
      /notice $nick 13 You 12Was Blocked From My Private In 60sec
      .ignore -pu  $nick $+ %ignore.time 60
      .echo -a 5 $+ $timestamp $+ 13 $nick 12Was Blocked 
    } 
  }
}
 

i need help if nick is oped n voice ar not been ignore how to do that

Joined: Jan 2004
Posts: 509
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
if ($nick !isop #) && ($nick !isvoice #) {

That applies no non-ops and non-voice.

To check if someone is op, use:

if ($nick isop #) {

To check if someone is voice, use:

if ($nick isvoice #) {

Etc.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Additionally, using the $ignore identifier will help you determine if the person is being ignored or not.

Joined: May 2007
Posts: 7
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: May 2007
Posts: 7
also can't be work the code still ignore ppl who op n voice

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The ON TEXT event is restricted to pm/query access, which is what the ? in the event means.
As it is restricted to pm/query, the # character, which you're supposing will return a channel name, does not, as there is no channel for it to reference.
You'll need to replace # with the actual name of the channel.


Link Copied to Clipboard