Chatspace SOP AOP VOP Add/del system

By D34th on Nov 22, 2010

This is my room manager from my upcoming r00t` iRC
**Note***: Root asin linux admin not root asin skiddie compromizing machines
now that thats outta the way -.-
This system is simple to use click owner / mod / voice
then click add / delete
then type in the roomaname in the first Edit with the # < important
Then the nick you wish to add / Delete the ownership / moderator / voice of
and click execute and your will shall be done ^.^

Alias Rs { Dialog -m rs rs }
Dialog Rs {
  Title "r00t` iRC Room System"
  size -1 -1 120 64
  Option dbu
  Edit "Roomname",1, 4 4 110 10, autohs center
  Edit "Nickname",2, 4 16 110 10, autohs center
  Check "Owner",3, 12 27 25 10
  Check "Mod",4, 45 27 25 10
  Check "Voice",5, 75 27 25 10
  Check "Add",6, 30 39 25 10
  Check "Delete",7, 68 39 25 10 
  Button "Execute",8, 25 49 32 13
  Button "Done",9, 63 49 32 13
}
On *:Dialog:Rs:*:*:{
  If ($devent == Sclick) {
    If ($did = 3) { 
      Set %x SOP
      Did -u $dname 4 
      Did -u $dname  5
    }
    If ($did = 4) {    Set %x AOP
      Did -u $dname 3
      Did -u $dname 5
    }
    If ($did = 5) {
      Set %x VOP
      Did -u $dname 3
      Did -u $dname 4
    }
    If ($did = 6) {
      Set %y Add
      Did -u $dname 7
    }  
    If ($did = 7) {
      Set %y Del
      Did -u $dname 6
    }
    If ($did = 8) { 
      Services %x $did(1) %y $did(2)
    }
    If ($did = 9) { Dialog -x $dname $dname }
  }
}
Menu Channel {
  r00t` iRC Room System: rs
}

Comments

Sign in to comment.
D34th   -  Nov 23, 2010

Could but i dont really see much of a point in having 2 ways to specify when i can just add in an Input as an error if the user doesnt add in a channel.

 Respond  
blackvenomm666   -  Nov 23, 2010

actually why not do both? haha make it run off the active channel if no channel is specified

 Respond  
D34th   -  Nov 23, 2010

I actually did that earlyer today i just didnt bother to update it yet.

 Respond  
blackvenomm666   -  Nov 22, 2010

why dont you either A. make it run off of the active channel or B at least make it so the # doesnt have to be put in everytime you put in a roomname

 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.