GlobalAnomaly commented on a Page, StaffMe Script  -  Aug 16, 2009

What would you do if someone who was op in another channel you were in typed the command to gain access to the staff channel that was for the staff of your user channel?

on *:TEXT:!staffme:#: {
  if ($nick isop $chan) {
    invite $nick #insertstaffchanhere
    notice $nick Invite sent.
  }
  else {
    msg $chan Sorry, you dont meet the criteria, $nick
    notice $nick No staff, no invite ..
  }
}

Your code is functional, but only to a degree.

Try...

on *:load: {
 set %StaffChan $$?="What is the staff channel?"
 set %UserChan $$?="What is the user channel?"
}
on *:text:!StaffMe:%UserChan: {
 if ($nick isop #) { invite $nick %StaffChan | notice $nick Invite sent. }
  else {
   notice $nick Denied. You aren't op in %UserChan $+ .
   msg %StaffChan $nick tried to get in.
  }
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.