This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

mc.main.tcl

Support & discussion of released scripts, and announcements of new releases.
Post Reply
l
lated
Voice
Posts: 1
Joined: Tue Aug 04, 2009 8:58 am

mc.main.tcl

Post by lated »

Does anyone have a copy of MC_8's mc.main.tcl?
User avatar
grumpy
Voice
Posts: 9
Joined: Fri Jan 10, 2014 3:23 pm
Location: Europe/London

RE: mc.main.tcl

Post by grumpy »

Is this from MC responde or public commands? :?:
User avatar
ComputerTech
Master
Posts: 399
Joined: Sat Feb 22, 2020 10:29 am
Contact:

Post by ComputerTech »

if it's public commands use BlackTools.tcl

if you want a specific script from blacktools just ask :)



EDIT

caesar threw this script together not sure if this is what you want but give it a try :D

Code: Select all


namespace eval ChanSet { 

   bind pub n|n .chanset [namespace current]::chanset 
    
   proc chanset {nick uhost hand chan text} { 
      if {[scan $text {%s%s} mode value] < 1} { 
         puthelp "NOTICE $nick :Error, usage: $::lastbind +/-<channel mode> \[value\]" 
         return 
      } 
      if {![string last - $mode]} { 
         set what [string map {- ""} $mode] 
      } else { 
         set what [string map {+ ""} $mode] 
      } 
      if {[catch {channel get $chan $what} err]} { 
         puthelp "NOTICE $nick :Error, \002$what\002 is an unkown channel setting." 
         return 
      } 
      if {[info exists value]} { 
         channel set $chan $mode $value 
         puthelp "NOTICE $nick :Channel mode $what has been set to $value" 
      } else { 
         channel set $chan $mode 
         puthelp "NOTICE $nick :Channel mode $what has been set to [expr {[string first + $mode] > -1 ? "enabled" : "disabled"}]." 
      } 
   } 
} 
ComputerTech
Post Reply