<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/20737" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2021-12-18T12:53:39-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/20737</id>

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-17T14:48:18-04:00</updated>

		<published>2021-12-17T14:48:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110664#p110664</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110664#p110664"/>
		<title type="html"><![CDATA[.chanset or .set on channel/pm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110664#p110664"><![CDATA[
thanks spike^^  ceasar<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Dec 17, 2021 2:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2021-12-17T14:26:28-04:00</updated>

		<published>2021-12-17T14:26:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110663#p110663</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110663#p110663"/>
		<title type="html"><![CDATA[.chanset or .set on channel/pm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110663#p110663"><![CDATA[
A little bit of forum search and could have seen <a href="http://forum.egghelp.org/viewtopic.php?p=108316#108316" class="postlink">this</a> from yours truly that accepts whatever you want to throw at it to set:<div class="codebox"><p>Code: </p><pre><code>namespace eval ChanSet {   bind pub n|n .set [namespace current]::chanset      proc chanset {nick uhost hand chan text} {      set pos [string first # $text]      if {!$pos} {         scan $text {%s%s} chan mode      } else {         scan $text {%s} mode      }            if {![info exists mode]} {         puthelp "NOTICE $nick :Error, usage: $::lastbind \[channel\] &lt;channel mode&gt; \[value\]. For example $::lastbind #foo +enforcebans, $::lastbind $chan blah 1 2 3, $::lastbind foo 2:5"         return      }      if {![string last - $mode]} {         set what [string map {- ""} $mode]      } else {         set what [string map {+ ""} $mode]      }            if {![validchan $chan]} {         puthelp "NOTICE $nick :Error, I'm not on $chan channel."         return      }            if {[string equal $mode $what]} {         set value [lrange $text [expr $pos +2] end]      }            if {[catch {set now [channel get $chan $what]} err]} {         puthelp "NOTICE $nick :Error, \002$what\002 is an unkown channel setting."         return      }      if {[info exists value]} {         if {[string equal -nocase $now $value]} {            puthelp "NOTICE $nick :Channel mode $what is already set to $now."            return         }         channel set $chan $mode $value         puthelp "NOTICE $nick :Channel mode $what has been set to $value for $chan cahnnel."      } else {         scan [string map {+ 1 - 0} $mode] {%d} change         if {[string equal $now $change]} {            puthelp "NOTICE $nick :Error, channel mode $what is already [expr {$now ? "enabled" : "disabled"}] for $chan channel"            return         }         channel set $chan $mode         puthelp "NOTICE $nick :Channel mode $what has been [expr {[string first + $mode] &gt; -1 ? "enabled" : "disabled"}] for $chan channel."      }   }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Dec 17, 2021 2:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2021-12-18T12:53:39-04:00</updated>

		<published>2021-12-17T12:55:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110662#p110662</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110662#p110662"/>
		<title type="html"><![CDATA[Chanset TCL by BLaCkShaDoW]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110662#p110662"><![CDATA[
From <a href="https://tclscripts.net/community/tcl-snippets/chanset-tcl/" class="postlink">https://tclscripts.net/community/tcl-sn ... anset-tcl/</a><br><div class="codebox"><p>Code: </p><pre><code>##Chanset TCL## !chanset &lt;+/-settting&gt; ; setting &lt;value&gt;##BLaCkShaDoW Production#############################################################################set set_flags "nm|nm"#############################################################################bind pub $set_flags !chanset set:procproc set:proc {nick host hand chan arg} {  set flag [lindex [split $arg] 0]  set str [join [lrange [split $arg] 1 end]]  set value ""  set error 0  if {$flag == ""} {    puthelp "NOTICE $nick :use !set &lt;+/-settting&gt; ; setting &lt;value&gt;"    return  }  if {[regexp {^[+-]} $flag]} {    set rem_flag [string map {"+" "" "-" ""} $flag]    set error [catch {channel get $chan $rem_flag} value]  }  if {$error == "1"} {    puthelp "NOTICE $nick :Invalid channel setting."    return  }  if {[regexp {^[+]} $flag]} {    if {$value == "1"} {      puthelp "NOTICE $nick :Setting \002$flag\002 is already set."    } else {      channel set $chan $flag      puthelp "NOTICE $nick :Enabled \002$flag\002 setting."    }  } elseif {[regexp {^[-]} $flag]} {    if {$value == "0"} {      puthelp "NOTICE $nick :Setting \002$flag\002 is already disabled."    } else {      channel set $chan $flag      puthelp "NOTICE $nick :Disabled \002$flag\002 setting."    }  } else {    set error [catch {channel get $chan $flag} value]    set rem_value [string map {" " ":"} $value]    if {$error == "1"} {      puthelp "NOTICE $nick :Invalid channel setting."      return    }    if {$str == ""} {      puthelp "NOTICE $nick :use !set &lt;+/-settting&gt; ; setting &lt;value&gt;"      return    }    if {[string equal -nocase $rem_value $str]} {      puthelp "NOTICE $nick :\002$flag\002 is already set to \002$str\002"      return    }    channel set $chan $flag $str    puthelp "NOTICE $nick :Set \002$flag\002 to \002$str\002"  }}putlog "Chanset TCL by BLaCkShaDoW Loaded. For more TCLs visit WwW.TclScripts.Net"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Dec 17, 2021 12:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-17T12:17:53-04:00</updated>

		<published>2021-12-17T12:17:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110660#p110660</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110660#p110660"/>
		<title type="html"><![CDATA[.chanset or .set on channel/pm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110660#p110660"><![CDATA[
thanks for your responce CC i dont get this error anymore:<br><blockquote class="uncited"><div> Unknown channel setting </div></blockquote><br>only now i get odd outputs for example:<br><br><blockquote class="uncited"><div>17:16:35 (+Simo)  : .chanset +youtube<br>17:16:37 -Hawk- : youtube is already enabled on #test.  <br>17:16:37 -Hawk- : youtube is now disabled.  <br>17:16:37 -Hawk- : Successfully set +youtube  <br><br>17:16:58 (+Simo)  : .chanset -youtube<br>17:16:58 -Hawk- : youtube is now enabled. <br>17:16:59 -Hawk- : youtube is already disabled on #test. <br>17:16:59 -Hawk- : Successfully set -youtube </div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Dec 17, 2021 12:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-12-17T10:29:38-04:00</updated>

		<published>2021-12-17T10:29:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110659#p110659</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110659#p110659"/>
		<title type="html"><![CDATA[.chanset or .set on channel/pm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110659#p110659"><![CDATA[
If you get <em class="text-italics">Unknown channel setting</em>, it means this setting doesn't exists. Probably that the script which provides this setting is not loaded.<br><br>The scripts lacks a test to check if setting exists before doing anythingwith it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Dec 17, 2021 10:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-17T09:31:11-04:00</updated>

		<published>2021-12-17T09:31:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110658#p110658</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110658#p110658"/>
		<title type="html"><![CDATA[.chanset or .set on channel/pm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110658#p110658"><![CDATA[
i even tried without the settings part in the added code<br><div class="codebox"><p>Code: </p><pre><code>bind pub n|n .chanset pub:chansetproc pub:chanset {nick uhost hand chan text} {   set setting [string trimleft [lindex [split $text] 0] "+-"]   set value [lassign [split $text] mode]  if {![info exists value] || $value eq ""} {  catch {channel set $chan $mode} error  } else {   catch {channel set $chan $mode $value} error  }if {[channel get $chan $setting]} {        putserv "NOTICE $nick :$setting is already enabled on $chan."      } else {        putserv "NOTICE $nick :$setting is now enabled."}      if {![channel get $chan $setting]} {        putserv "NOTICE $nick :$setting is already disabled on $chan."      } else {        putserv "NOTICE $nick :$setting is now disabled."     }   if {$error == ""} {      putnow "NOTICE $nick :Successfully set $text"  } else {     putnow "NOTICE $nick :Error setting $text: $error "  }} </code></pre></div><br>only now i keep gettin odd outputs wich wich arent accurate<br>for example setting +youtube i get now disabled and now enabled<br>odd result outputs from the part in added<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Dec 17, 2021 9:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-16T14:11:58-04:00</updated>

		<published>2021-12-16T14:11:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110655#p110655</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110655#p110655"/>
		<title type="html"><![CDATA[.chanset or .set on channel/pm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110655#p110655"><![CDATA[
i tried this but i keep gettin error:<br>  <blockquote class="uncited"><div> Tcl error [pub:chanset]: Unknown channel setting. </div></blockquote><div class="codebox"><p>Code: </p><pre><code>bind pub n|n .chanset pub:chansetproc pub:chanset {nick uhost hand chan text} {   set setting [string trimleft [lindex [split $text] 0] "+-"]   set value [lassign [split $text] mode]  if {![info exists value] || $value eq ""} {  catch {channel set $chan $mode} error  } else {   catch {channel set $chan $mode $value} error  }if {[channel get $chan $setting]} {        putserv "NOTICE $nick :$setting is already enabled on $chan."      } else {        channel set $chan $mode +$setting        putserv "NOTICE $nick :$setting is now enabled."}      if {![channel get $chan $setting]} {        putserv "NOTICE $nick :$setting is already disabled on $chan."      } else {     channel set $chan $mode -$setting        putserv "NOTICE $nick :$setting is now disabled."     }   if {$error == ""} {      putnow "NOTICE $nick :Successfully set $text"  } else {     putnow "NOTICE $nick :Error setting $text: $error "  }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Dec 16, 2021 2:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-16T09:02:33-04:00</updated>

		<published>2021-12-16T09:02:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110654#p110654</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110654#p110654"/>
		<title type="html"><![CDATA[.chanset or .set on channel/pm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110654#p110654"><![CDATA[
i came up with this not sure how to integrate it tho<br><div class="codebox"><p>Code: </p><pre><code>       set setting [string trimleft [lindex [split $text] 0] "+-"]      if {[channel get $chan $setting]} {        putserv "NOTICE $nick :$setting is already enabled on $chan."      } else {         channel set $chan $mode +$setting        putserv "NOTICE $nick :$setting is now enabled."}      if {![channel get $chan $setting]} {        putserv "NOTICE $nick :$setting is already disabled on $chan."      } else {  channel set $chan $mode -$setting        putserv "NOTICE $nick :$setting is now disabled."     }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Dec 16, 2021 9:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-15T10:23:44-04:00</updated>

		<published>2021-12-15T10:23:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110649#p110649</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110649#p110649"/>
		<title type="html"><![CDATA[.chanset or .set on channel/pm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110649#p110649"><![CDATA[
I wonder how to edit this so check is a chanset is actually already set to report back its already set same with already unset<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Dec 15, 2021 10:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-06-26T22:55:11-04:00</updated>

		<published>2020-06-26T22:55:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108650#p108650</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108650#p108650"/>
		<title type="html"><![CDATA[.chanset or .set on channel/pm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108650#p108650"><![CDATA[
for those who want a script code that sets settings like ".chanset" try ths<br>found this somewhere on this forum <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <div class="codebox"><p>Code: </p><pre><code>bind pub n|n !chanset pub:chanset proc pub:chanset {nick uhost hand chan arg} {  foreach {set value} [split $arg] {break}  if {![info exists value]} {   catch {channel set $chan $set} error  } {   catch {channel set $chan $set $value} error  }  if {$error == ""} {   puthelp "privmsg $chan :Successfully set $arg"  } {   puthelp "privmsg $chan :Error setting $arg: [lindex $error 0]..."  } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Fri Jun 26, 2020 10:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-04-21T09:41:55-04:00</updated>

		<published>2020-04-21T09:41:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108287#p108287</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108287#p108287"/>
		<title type="html"><![CDATA[.chanset or .set on channel/pm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108287#p108287"><![CDATA[
cool <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> yeah download blacktools then if you like go to the modules folder and every option is their as a single script just need to slightly configure it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>ps if you like you can share the channel name and i can help you out i hang out at dalnet also <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Tue Apr 21, 2020 9:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nobody]]></name></author>
		<updated>2020-04-21T01:01:51-04:00</updated>

		<published>2020-04-21T01:01:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108276#p108276</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108276#p108276"/>
		<title type="html"><![CDATA[.chanset or .set on channel/pm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108276#p108276"><![CDATA[
<blockquote class="uncited"><div>yeah blacktools already has this feature, But if you wanted to make the .chanset part a seperate script take a look in blacktools modules directory it would have it there. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>ps: i got BlackShadow to modify his blacktools clonescanner into a seperate script <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"></div></blockquote><br>good to know, im not really familiar with blacktools since im using "netgate.tcl" to control my bots in DALnet.. but yeah its good<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12858">nobody</a> — Tue Apr 21, 2020 1:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-04-18T08:25:57-04:00</updated>

		<published>2020-04-18T08:25:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108234#p108234</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108234#p108234"/>
		<title type="html"><![CDATA[.chanset or .set on channel/pm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108234#p108234"><![CDATA[
yeah blacktools already has this feature, But if you wanted to make the .chanset part a seperate script take a look in blacktools modules directory it would have it there. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>ps: i got BlackShadow to modify his blacktools clonescanner into a seperate script <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Sat Apr 18, 2020 8:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nobody]]></name></author>
		<updated>2020-04-05T06:36:35-04:00</updated>

		<published>2020-04-05T06:36:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108158#p108158</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108158#p108158"/>
		<title type="html"><![CDATA[Update on &quot;.chanset/.set&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108158#p108158"><![CDATA[
A scripter in undernet behind blacktools  name:  BLaCkShaDoW  gave me the script already<br><br>chanset.tcl and it's working like a gold<br><br><br>18:33:02  &lt;Janroe&gt; !chanset +blackseen<br>18:33:03  -Puso- Setting +blackseen is already set.<br><br> BLaCkShaDoW  @ tclscripts.net<br><br>Thank you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12858">nobody</a> — Sun Apr 05, 2020 6:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nobody]]></name></author>
		<updated>2020-04-03T22:11:41-04:00</updated>

		<published>2020-04-03T22:11:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108155#p108155</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108155#p108155"/>
		<title type="html"><![CDATA[.chanset or .set on channel/pm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108155#p108155"><![CDATA[
Hello,<br><br>Anyone have a script that allows .chanset or .set flags in the home channel instead of logging into telnet or via dcc chat?<br><br><br><br>---- i tried seaching the archive and this forum but maybe i am not too lucky to find maybe the exact name of the script.<br>---- i also find this feature in blacktools tcl but i am still hoping it has a separate script for that purpose alone.<br><br><br>Thank you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12858">nobody</a> — Fri Apr 03, 2020 10:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
