Access Dialog For XOP

By nutty on Jun 03, 2014

XOp Access list .. not fancy but hey it works..
enjoy

Menu Channel {
  -
  AccessList:/dialog -m AccessList AccessList
}
dialog AccessList {
  title "Access Dialog for Phoenix Chat"
  size -1 -1 202 210
  option dbu
  button "Add Owner", 1, 2 10 42 12, flat
  button "Remove Owner", 2, 2 24 42 12, flat
  button "Add Host", 3, 2 42 42 12, flat
  button "Close", 4, 160 195 41 12, Close cancel
  button "Remove Host", 5, 2 56 42 12, flat
  button "Add Voice", 8, 2 73 42 12, flat
  button "Remove Voice", 9, 2 87 42 12, flat
  button "Protect Host", 10, 2 105 42 12, flat
  button "Remove Pr Host", 11, 2 119 42 12, flat
  list 12, 45 11 156 178, hsbar vsbar
  button "Half OP", 13, 2 140 42 12, flat
  button "Remove Half OP", 14, 2 157 42 12, flat
  button "Clear Access", 17, 2 177 42 12, flat
  button "Refresh", 18, 98 195 41 12, Flat
  text "By:Admin_Sabrina", 19, 5 195 46 8, Flat
  text "Phoenix Chat", 20, 5 203 46 8, Flat

}
on *:dialog:AccessList:init:0: { 
  did -a AccessList 12 $chan($active) AccessList
  CHANSERV access $active list
}

on *:dialog:AccessList:sclick:*: {
  if ( $did == 1 ) { cs QOP $Chan $active add $$?"Chat Nick" } 
  if ( $did == 2 ) { cs QOP $Chan $active del $$?"Chat Nick" } 
  if ( $did == 3 ) { cs AOP $Chan $active add $$?"Chat Nick" } 
  if ( $did == 5 ) { cs AOP $Chan $active del $$?"Chat Nick" } 
  if ( $did == 8 ) { cs VOP $Chan $active add $$?"Chat Nick" } 
  if ( $did == 9 ) { cs VOP $Chan $active del $$?"Chat Nick" } 
  if ( $did == 10 ) { cs SOP $Chan $active add $$?"Chat Nick" } 
  if ( $did == 11 ) { cs SOP $Chan $active del $$?"Chat Nick" } 
  if ( $did == 13 ) { cs HOP $Chan $active add $$?"Chat Nick" } 
  if ( $did == 14 ) { cs HOP $Chan $active del $$?"Chat Nick" } 
  if ( $did == 17 ) { cs Access $Chan $active CLEAR | Echo -a Access list has been cleared $active $chan }
  if ( $did == 18 ) { 
    did -ra AccessList 12  $chan($active) AccessList
  CHANSERV access $active list }

}

ON *:NOTICE:*:*: {
if ($2 == qop) {
    did -a accesslist 12  $3 $+ (Owner)
  }
  elseif ($2 == aop)  {
    did -a accesslist 12 $3  $+ (host)       
  }
  elseif ($2 == vop)  {
    did -a accesslist 12 $3  $+ (Voice)   
  }
  elseif ($2 == sop)  {
    did -a accesslist 12 $3 $+ (Proctective Host)     
  }
  elseif ($2 == hop)  {
    did -a accesslist 12  $3 $+ (Half OP) 
  }

}

Comments

Sign in to comment.
nutty   -  Jun 03, 2014

Screenshot of dialog

blackvenomm666  -  Jul 08, 2014

looks good nutty. haven't been on in a while really so just now catching up on stuff.

nutty  -  Jul 09, 2014

ty blackvenomm666

Sign in to comment

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.