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

	<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>2013-03-02T12:19:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-03-02T12:19:24-04:00</updated>

		<published>2013-03-02T12:19:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101160#p101160</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101160#p101160"/>
		<title type="html"><![CDATA[Dont know what DCC command im looking for from public trig]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101160#p101160"><![CDATA[
Try '0' as the IDX<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Mar 02, 2013 12:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LoKii]]></name></author>
		<updated>2013-03-02T03:15:44-04:00</updated>

		<published>2013-03-02T03:15:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101158#p101158</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101158#p101158"/>
		<title type="html"><![CDATA[Dont know what DCC command im looking for from public trig]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101158#p101158"><![CDATA[
<blockquote class="uncited"><div>Let us know what you discover.</div></blockquote>Well, i discovered that the '-1' option does not work for disabling the IDX, and I still have no luck yet in getting this to work the way i would like.<br><br>I will post back here once/if i find a solution. Otherwise, i guess I will just have to continue setting the commands in the partyline.<br><br>My only problem is that i do not allow partyline access on that specific bot, but i would like to let channel masters be able to trigger some of the basic AP functions.<br><br>The only thing i do not understand at all is, why can i not just issue a dcc command from a public trigger?<br><br>Another function that I have also been trying is for example to trigger in public: <strong class="text-strong">.match lokii</strong> and have the bot spit out the results. <br><br>Yea yea, i know i could use other commands to get a similar response, but why not just .match directly?<br><br>My point is not orientated towards the <strong class="text-strong">.match</strong> command, but in general to be able to write something in the tcl script that will do said functions in the bot.<br><br>Cheers.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10917">LoKii</a> — Sat Mar 02, 2013 3:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-03-01T08:53:54-04:00</updated>

		<published>2013-03-01T08:53:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101152#p101152</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101152#p101152"/>
		<title type="html"><![CDATA[Dont know what DCC command im looking for from public trig]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101152#p101152"><![CDATA[
Let us know what you discover.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Mar 01, 2013 8:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LoKii]]></name></author>
		<updated>2013-03-01T03:08:00-04:00</updated>

		<published>2013-03-01T03:08:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101148#p101148</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101148#p101148"/>
		<title type="html"><![CDATA[Dont know what DCC command im looking for from public trig]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101148#p101148"><![CDATA[
<blockquote class="uncited"><div> <div class="codebox"><p>Code: </p><pre><code>::AllProtection::cmd import $handle -1 $text</code></pre></div></div></blockquote><br>This is the approach i was hoping for. I will try to take it from there now and figure out how to make it happen.<br><br>Many thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10917">LoKii</a> — Fri Mar 01, 2013 3:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-02-28T16:54:33-04:00</updated>

		<published>2013-02-28T16:54:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101147#p101147</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101147#p101147"/>
		<title type="html"><![CDATA[Re: Dont know what DCC command im looking for from public tr]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101147#p101147"><![CDATA[
<blockquote class="uncited"><div>...<br>Since .ap:import or any of the other ap:*'s are not a part of the eggdrops core, but come from a script, how would I got about executing these dcc commands from a proc?<br><br>Any hints would be appreciated.<br></div></blockquote><br>Examine AP, to figure out just what the scripter has done, to create this <br>.ap:import   <br>command.<br>Or, perhaps easier, do:   .binds *import* all<br>in the partyline.<br><br>Note that the bind calls a procedure :<br>::AllProtection::cmd import<br><br>So now you are hunting for a proc named <br>cmd<br>in the script.<br>And you find this:<br>proc cmd {cmd hand idx arg} {<br>In it, you are looking for<br>import<br>And it looks like it wants just two parameters... the old channel and the new channel.<br><br>All you need is to call this procedure and give it what it wants.<br>To get the job done, you really don't need to try to do anything with dcc.   <br><br><br>Roughing this out, we get:<br><div class="codebox"><p>Code: </p><pre><code>bind pub n "!import" do_import_cmdproc do_import_cmd {nick uhost handle chan text} {   ::AllProtection::cmd import $handle -1 $text }</code></pre></div><br>This is untested.  But you said you just wanted some hints.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I think you can use -1, when there is no idx.  Perhaps someone else can comment on that.<br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Feb 28, 2013 4:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-02-28T07:49:08-04:00</updated>

		<published>2013-02-28T07:49:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101140#p101140</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101140#p101140"/>
		<title type="html"><![CDATA[Dont know what DCC command im looking for from public trig]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101140#p101140"><![CDATA[
I made a script for .import (the dcc command) to be public. Meaning .ap:import is now public (you can use it from your channel)<br><br>You cannot use (as far as i know) a public command to trigger a dcc command. You can only make a public command act just like a dcc command (meaning it will set/edit/modify just like the original dcc command)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Thu Feb 28, 2013 7:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LoKii]]></name></author>
		<updated>2013-02-28T07:47:05-04:00</updated>

		<published>2013-02-28T07:47:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101139#p101139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101139#p101139"/>
		<title type="html"><![CDATA[Dont know what DCC command im looking for from public trig]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101139#p101139"><![CDATA[
Thank you for your reply madelin, unfortunately, your code is not what i was looking for.<br><br>To make it a bit clear, you have used in your code: <strong class="text-strong">channel set</strong> which in my case is not working, cause the dcc commands I need to execute are <strong class="text-strong">not</strong> chanset #channel +/- bla, but directly: <strong class="text-strong">.ap:import bla bla bla</strong>.<br><br>So what I am looking for is a replacement for the <strong class="text-strong">channel set</strong> with something that will allow me to execute whatever command i want (not core commands, custom ones).<br><br>Is there a way from public to just send RAW text to the dcc?<br><br>Maybe i am also not making sense in describing what i want, hope its sort of clear now.<br><br>Cheers.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10917">LoKii</a> — Thu Feb 28, 2013 7:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-02-28T07:38:04-04:00</updated>

		<published>2013-02-28T07:38:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101138#p101138</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101138#p101138"/>
		<title type="html"><![CDATA[Dont know what DCC command im looking for from public trig]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101138#p101138"><![CDATA[
Try this code. I only tested to see if it works as command i don`t have All Flood Protection loaded so i didnt have what to import but you can do this part. Ive taken the original AFP code and make it public.<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !import importproc import {nick uhost hand chan arg} {if {[scan $arg "%s %s" oc ncs] != 2} {putserv "PRIVMSG $chan :\002AP\002: SYNTAX: !import &lt;oldchan&gt; &lt;newchan&gt;" ; return 0}foreach nc [string map [list * [channels]] $ncs] {if {[validchan $oc] &amp;&amp; [validchan $nc]} {foreach ci [channel info $oc] {if {[string match ap:* [lindex $ci 0]]} {channel set $nc [lindex $ci 0] [lindex $ci 1]}}putserv "PRIVMSG $chan :\002AP\002: Imported all AllProtection settings from $oc to $nc."} else {putserv "PRIVMSG $chan :\002AP\002: Failed! Make sure that $oc and $nc are valid channels."}}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Thu Feb 28, 2013 7:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LoKii]]></name></author>
		<updated>2013-02-28T05:07:34-04:00</updated>

		<published>2013-02-28T05:07:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101137#p101137</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101137#p101137"/>
		<title type="html"><![CDATA[Dont know what DCC command im looking for from public trig]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101137#p101137"><![CDATA[
Hello everyone.<br><br>Been trying to find out how to execute a command in the DCC when triggered by a public proc.<br><br>What i would like to do is, to call a public command like <strong class="text-strong">!import</strong> and then in the proc tell the bot to execute in the party line <strong class="text-strong">.ap:import #oldchan #newchan</strong> (this command in the party line would import the protection settings from Opposing's script Allprotection).<br><br>I have tried several commands, like 'putdcc, channel set, channel bla' and I can not figure it out. Atleast in the <strong class="text-strong">putdcc</strong> command, it says <strong class="text-strong">putdcc &lt;idx&gt; &lt;text&gt;</strong> whereas I cannot find out what <strong class="text-strong">IDX</strong> actually is.<br><br>Is there away to do this?<br><br>What I have so far is:<br><div class="codebox"><p>Code: </p><pre><code>set home "#test"#bind pub n|n .import proc_secuon#proc proc_secuon {nick host handle channel text} {    global home chanset    putserv "NOTICE $nick :Importing Defualt Global Security Settings for channel $channel."#    putdcc $idx "ap:import $home $channel"#    channel set ".ap:import $home $channel"# NO IDEA WHAT TO PUT HERE :(    return 1}</code></pre></div>Since .ap:import or any of the other ap:*'s are not a part of the eggdrops core, but come from a script, how would I got about executing these dcc commands from a proc?<br><br>Any hints would be appreciated.<br><br>Cheers.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10917">LoKii</a> — Thu Feb 28, 2013 5:07 am</p><hr />
]]></content>
	</entry>
	</feed>
