Intention:
when pm arrives, send response based on channel status. Ops/Voices get "if" msg, others get the "else".

My code is broke... it sends the else msg to Ops/Voices and Others. How can I fix it.

Code:

 on ^*:open:?:*: {
  if ($nick isop $chan) || ($nick isvoice $chan) { msg $nick sup7 $nick }
  else { 
    msg $nick Do not pm me, didnt you read the topic?
  }
}
 


Whats life without a little Karma?
maddkarma[dot]com