Jump to content

Room Close


Guest Glock

Recommended Posts

Does anyone have anything or know a way to have the bot do a room close?



Example: <user would join chatroom on mirc> - <user would type /close>



It would then do the following all at once



<send message to room>



<devoice/deop all users>



<clear access list>



<ban access *!*@gate*>



<change room modes to +hmtinwWl 1>



<change topic>



<clear ownerkey and hostkey>



<clear onjoin and onpart>



- then at the end it will automatically leave the chatroom



If anyone knows how to do this please feel free to post it here


Edited by Glock
Link to comment
Share on other sites

This is basically how to do it.. Note this is untested. You may have to play with it a bit, especially the order. Been a long time since i dealt with coding for MSN

alias closeroom {
  msg $active This room is now closed for violations of the code of conduct
  access $active CLEAR
  access $active ADD DENY *!*@* 0
  var %a = 1
  while ($nick($active,%a)) {
    var %nn = $nick($active,%a)
    if (%nn != $me) { 
      if (%nn isop $active) { mode $active -qov %nn %nn %nn }
      else { mode $active -v %nn }
    }
    inc %a
  }
  prop $active ownerkey : $+ closed $+ $rand(A,Z) $+ ^ $+ $rand(11,99) $+ $rand(a,z) $+ & $+ $rand(111,999) $+ _ $+ $rand(a,z) $+ $rand(AAA,ZZZ) $+ & $+ $rand(a,z) $+ $rand(1,9)
  prop $active hostkey : $+ closed $+ $rand(A,Z) $+ ^ $+ $rand(11,99) $+ $rand(a,z) $+ & $+ $rand(111,999) $+ _ $+ $rand(a,z) $+ $rand(AAA,ZZZ) $+ & $+ $rand(a,z) $+ $rand(1,9)
  mode $active +hmiwWl 1
  topic $active closed
}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...