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

	<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-02-01T14:44:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[adamSs]]></name></author>
		<updated>2013-02-01T14:44:52-04:00</updated>

		<published>2013-02-01T14:44:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100886#p100886</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100886#p100886"/>
		<title type="html"><![CDATA[Short Script Not sure what is wrong.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100886#p100886"><![CDATA[
Thanks a lot for all of the replies! Also, Thanks for the documentation links! I appreciate it folks.<br><br>-Adam<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12185">adamSs</a> — Fri Feb 01, 2013 2:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-02-01T09:40:10-04:00</updated>

		<published>2013-02-01T09:40:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100885#p100885</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100885#p100885"/>
		<title type="html"><![CDATA[Re: Short Script Not sure what is wrong.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100885#p100885"><![CDATA[
<blockquote class="uncited"><div>...<br>I'm just getting my feet wet with bot scripting.<br>...<br></div></blockquote>Some very useful and helpful reference material for you to read and bookmark:<br><br>A nice place for beginners to start.<br>"Guide to TCL scripting for Eggdrop"<br><a href="http://suninet.the-demon.de/" class="postlink">http://suninet.the-demon.de/</a><br><br><br>Link to the doc that caesar mentioned:<br>(Eggdrop related TCL commands)<br><a href="http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html" class="postlink">http://www.eggheads.org/support/egghtml ... mands.html</a><br><br>The rest of TCL commands:<br><a href="http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm" class="postlink">http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm</a><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> — Fri Feb 01, 2013 9:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-02-01T02:09:19-04:00</updated>

		<published>2013-02-01T02:09:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100878#p100878</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100878#p100878"/>
		<title type="html"><![CDATA[Short Script Not sure what is wrong.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100878#p100878"><![CDATA[
According to TCL manual:<blockquote class="uncited"><div>bind join &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt;<br><br>Description: triggered by someone joining the channel. The mask in <br>the bind is matched against "#channel nick!user@host" and can contain wildcards.<br>Module: irc </div></blockquote>so..<div class="codebox"><p>Code: </p><pre><code>bind join o "% *!adamSs@hellagood.org" join:meproc join:me {nick uhost hand chan} {if {[botisop $chan]} {pushmode $chan +o $nick}}</code></pre></div>adjust the hostmask if needed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Feb 01, 2013 2:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-02-01T02:09:44-04:00</updated>

		<published>2013-02-01T02:05:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100877#p100877</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100877#p100877"/>
		<title type="html"><![CDATA[Short Script Not sure what is wrong.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100877#p100877"><![CDATA[
Not sure how good an idea this script is, but...<br><br>The bind mask for join is matched against "#channel nick!user@host"<br>So we'll assume your username is:  adamSs<br><br>The proc associated with a bind trigger, takes 4 arguments, like...<br>procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt;<br><br>$botnick is a global variable that would require either a global tag <br>or using like $::botnick for it to be used in a proc.<br><br>Correct format for the isop command is:  isop &lt;nickname&gt; [channel]<br>but i wouldn't use that command at all, and would use: botisop [channel]<br>and we won't need the global botnick line at all:)<br><br>Other than that, it's perfect.<br>Why not just add yourself to the bot's user file with +ao if that's all you want to do?<br><br>For security reasons, neither of these plans is really a good idea,<br>but this script may do what you want, if you have a global +o flag in the bot's user file.<br><div class="codebox"><p>Code: </p><pre><code>putlog "Op loaded" bind join o "*!adamSs@hellagood.org" join:me proc join:me {nick uh hand chan} {   if {[botisop $chan]} { pushmode $chan +o $nick } }</code></pre></div>Note:  If adamSs is your nick, and not your username, change that bind mask to something more like:  "* adamSs!*@hellagood.org"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Feb 01, 2013 2:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[adamSs]]></name></author>
		<updated>2013-02-01T01:32:42-04:00</updated>

		<published>2013-02-01T01:32:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100876#p100876</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100876#p100876"/>
		<title type="html"><![CDATA[Short Script Not sure what is wrong.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100876#p100876"><![CDATA[
Is there anything blatantly wrong with this? This is the entire script. It is supposed to op me when I join my channel. I'm just getting my feet wet with bot scripting. Thanks in advance!<br><br>-Adam<div class="codebox"><p>Code: </p><pre><code>putlog "Op loaded"bind join o adamSs@hellagood.org join:meproc join:me { chan nick } {if { [isop $chan $botnick] == 1 } { pushmode $chan +o $nick } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12185">adamSs</a> — Fri Feb 01, 2013 1:32 am</p><hr />
]]></content>
	</entry>
	</feed>
