<?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/20757" />

	<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>2020-05-10T11:39:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Zohaib]]></name></author>
		<updated>2020-04-24T06:27:28-04:00</updated>

		<published>2020-04-24T06:27:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108317#p108317</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108317#p108317"/>
		<title type="html"><![CDATA[[Solved]Need Help with dccsimul]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108317#p108317"><![CDATA[
Now this looks yummy <img alt="😋" class="emoji smilies" draggable="false" src="//cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f60b.svg"> <img alt="😋" class="emoji smilies" draggable="false" src="//cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f60b.svg"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11670">Zohaib</a> — Fri Apr 24, 2020 6:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-04-24T04:37:09-04:00</updated>

		<published>2020-04-24T04:37:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108316#p108316</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108316#p108316"/>
		<title type="html"><![CDATA[[Solved]Need Help with dccsimul]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108316#p108316"><![CDATA[
Here's a quick fix for the previous code to work with 'ap:cjoin 3:2 120 kb 2' or whatever you want to throw at it:<div class="codebox"><p>Code: </p><pre><code>namespace eval ChanSet {bind pub n|n .set [namespace current]::chansetproc 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 $valueputhelp "NOTICE $nick :Channel mode $what has been set to $value for $chan cahnnel."} else {scan [string map {+ 1 - 0} $mode] {%d} changeif {[string equal $now $change]} {puthelp "NOTICE $nick :Error, channel mode $what is already [expr {$now ? "enabled" : "disabled"}] for $chan channel"return}channel set $chan $modeputhelp "NOTICE $nick :Channel mode $what has been [expr {[string first + $mode] &gt; -1 ? "enabled" : "disabled"}] for $chan channel."}}}</code></pre></div>Edit: Added some extra stuff. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Apr 24, 2020 4:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zohaib]]></name></author>
		<updated>2020-04-24T03:29:31-04:00</updated>

		<published>2020-04-24T03:29:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108315#p108315</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108315#p108315"/>
		<title type="html"><![CDATA[[Solved]Need Help with dccsimul]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108315#p108315"><![CDATA[
<blockquote class="uncited"><div>snip</div></blockquote>thanks for your help. <br>there was a small problem for me as it was working for mode value of 2 digits only<br><blockquote class="uncited"><div>&lt;@Zohaib&gt; .set #me ap:limit +3<br>-XmIRC- Channel mode for #me ap:limit has been set to +3</div></blockquote>But when i tried it for a bigger value command i.e<blockquote class="uncited"><div>&lt;@Zohaib&gt; .set #me ap:cjoin 3:2 120 kb 2<br>-XmIRC- Channel mode for #me ap:cjoin has been set to 3:2</div></blockquote>it was not reading and setting the whole value for it so i modified it a bit <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 chan [lindex $text 0]set mode [lindex $text 1]set value [lrange [split $text] 2 end]      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 for $chan $what has been set to $value"      } else {         channel set $chan $mode         puthelp "NOTICE $nick :Channel mode for $chan $what has been set to [expr {[string first + $mode] &gt; -1 ? "enabled" : "disabled"}]."      }   }}</code></pre></div>And now it is working like a Charm<br><br>thanks a lot for your help. Now problem is with the enable disable option and i m trying to fix it. i will post the next update as i fix it thanks once again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11670">Zohaib</a> — Fri Apr 24, 2020 3:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zohaib]]></name></author>
		<updated>2020-04-24T01:40:35-04:00</updated>

		<published>2020-04-24T01:40:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108314#p108314</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108314#p108314"/>
		<title type="html"><![CDATA[[Solved]Need Help with dccsimul]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108314#p108314"><![CDATA[
Thanks a lot guys. I m going to give it a go. I really appreciate you guys your help means a lot to us. Thanks once again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11670">Zohaib</a> — Fri Apr 24, 2020 1:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-04-23T05:41:12-04:00</updated>

		<published>2020-04-23T05:41:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108307#p108307</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108307#p108307"/>
		<title type="html"><![CDATA[[Solved]Need Help with dccsimul]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108307#p108307"><![CDATA[
Here's something i threw together really quick:<div class="codebox"><p>Code: </p><pre><code>namespace eval ChanSet {bind pub n|n .chanset [namespace current]::chansetproc chanset {nick uhost hand chan text} {if {[scan $text {%s%s} mode value] &lt; 1} {puthelp "NOTICE $nick :Error, usage: $::lastbind +/-&lt;channel mode&gt; \[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 $valueputhelp "NOTICE $nick :Channel mode $what has been set to $value"} else {channel set $chan $modeputhelp "NOTICE $nick :Channel mode $what has been set to [expr {[string first + $mode] &gt; -1 ? "enabled" : "disabled"}]."}}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Apr 23, 2020 5:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-04-23T04:50:14-04:00</updated>

		<published>2020-04-23T04:50:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108306#p108306</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108306#p108306"/>
		<title type="html"><![CDATA[[Solved]Need Help with dccsimul]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108306#p108306"><![CDATA[
the ap:reset is not a known value, so it's normal you got an error. (.chaninfo #yourchan to list the available values).<br>Try your dcc_enable proc with a standard value, like seen or greet.<br><br>For your use of dccsimul, the error message seems clear:<div class="codebox"><p>Code: </p><pre><code>dccsimul $host $idx ".chanset $chan1 $cmdschar"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Apr 23, 2020 4:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zohaib]]></name></author>
		<updated>2020-04-23T04:34:46-04:00</updated>

		<published>2020-04-23T04:34:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108304#p108304</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108304#p108304"/>
		<title type="html"><![CDATA[[Solved]Need Help with dccsimul]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108304#p108304"><![CDATA[
any body?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11670">Zohaib</a> — Thu Apr 23, 2020 4:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zohaib]]></name></author>
		<updated>2020-05-10T11:39:26-04:00</updated>

		<published>2020-04-21T06:13:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108281#p108281</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108281#p108281"/>
		<title type="html"><![CDATA[[Solved]Need Help with dccsimul]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108281#p108281"><![CDATA[
Hello Everyone,<br>I am trying to make public commands for changing settings for Allprotection without DCC chat As now a days most of the time I dont have access to my Laptop and cannot use DCC chat directly from phone.<br>here are few things i have tried but they didnt work.<br><br>I was Using this Code to Enable Disable Scripts using Public Command<br>for example !enable/disable gseen youtube and other scripts<div class="codebox"><p>Code: </p><pre><code>proc dcc_enable {nick uhost hand chan text} {set chan1 [lindex $text 0]set cmdschar [lindex $text 1]channel set $chan1 +$cmdscharputhelp "privmsg $chan : Enabled $cmdschar on Channel $chan1 ."  }</code></pre></div>so i tried editing it for All Protection stuff<br><br><div class="codebox"><p>Code: </p><pre><code>proc dcc_chanset {nick uhost hand chan text} {set chan1 [lindex $text 0]set cmdschar [lrange [split $text] 1 end]]channel set $chan1 $cmdscharputhelp "Notice $nick : Channel $chan1 Settings Changed to $cmdschar"  }</code></pre></div>But i m getting this error<blockquote class="uncited"><div>Tcl error [dcc_chanset]: illegal channel option: ap:reset"</div></blockquote>so instead using <blockquote class="uncited"><div>channel set $chan1 $cmdschar</div></blockquote>I changed it to<div class="codebox"><p>Code: </p><pre><code>proc dcc_chanset {host idx text} {set chan1 [lindex $text 0]set cmdschar [lrange $text 1 end]dccsimul $idx ".chanset $chan1 $cmdschar"puthelp "privmsg $chan : Channel $chan1 Settings Changed to $cmdschar"  }</code></pre></div>but i am getting this error <blockquote class="uncited"><div>Tcl error [dcc_chanset]: wrong # args: should be "dcc_chanset host idx text"</div></blockquote>Can anyone guide me how I achieve my goal here<br><br>P.S  i m noob in scripting.<br><br>Thanks in Advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11670">Zohaib</a> — Tue Apr 21, 2020 6:13 am</p><hr />
]]></content>
	</entry>
	</feed>
