egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

mc.main.tcl

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
lated
Voice


Joined: 04 Aug 2009
Posts: 1

PostPosted: Wed Jan 01, 2020 9:58 pm    Post subject: mc.main.tcl Reply with quote

Does anyone have a copy of MC_8's mc.main.tcl?
Back to top
View user's profile Send private message
grumpy
Voice


Joined: 10 Jan 2014
Posts: 9
Location: Europe/London

PostPosted: Thu Apr 23, 2020 8:48 am    Post subject: RE: mc.main.tcl Reply with quote

Is this from MC responde or public commands? Question
Back to top
View user's profile Send private message
ComputerTech
Master


Joined: 22 Feb 2020
Posts: 393

PostPosted: Thu Apr 23, 2020 8:57 am    Post subject: Reply with quote

if it's public commands use BlackTools.tcl

if you want a specific script from blacktools just ask Smile



EDIT

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

Code:


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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber