Skip to content
General Chat Talk

Room Close

A TG007 community discussion started by Glock.

Discussion 5 posts
Page 1 of 1
Open
Topic #15871 · 5 published posts · 1,091 views

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 Aug 13, 2013 12:03 AM by Glock

ooo, they were the days!! I don't think you,ll get an answer to that, room takes/closes are frowned upon these days, since the demise of msn chat.

It depends why you are asking for this.. IF you are after a staff tool that does this then i may have what your looking for.

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
}
Edited Aug 12, 2013 12:34 PM by err0r

Get information about ircWx here

Thanks err0r (Y)