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

	<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>2009-02-22T13:07:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-02-22T13:07:30-04:00</updated>

		<published>2009-02-22T13:07:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87512#p87512</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87512#p87512"/>
		<title type="html"><![CDATA[need some help on a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87512#p87512"><![CDATA[
Sure, look up the <strong class="text-strong">utimer</strong> command.<br><br>A bit care has to be taken when working with timers though, to prevent remote code execution, so I'll post a working example for ya:<div class="codebox"><p>Code: </p><pre><code>utimer 20 [list puthelp "PRIVMSG ChanServ :register $chan newskin channel is closed"]</code></pre></div>The reason for the list is to parse all variables "now", and yet encapsulate the data in a list to prevent a second evaluation/substitution when the timer triggers.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Feb 22, 2009 1:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[redwolf]]></name></author>
		<updated>2009-02-22T12:49:04-04:00</updated>

		<published>2009-02-22T12:49:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87511#p87511</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87511#p87511"/>
		<title type="html"><![CDATA[is a timer cmd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87511#p87511"><![CDATA[
is there a timer cmd for a eggdrop tcl, so that the bot will join then 20 seconds later register the channel?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9092">redwolf</a> — Sun Feb 22, 2009 12:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2009-02-21T02:46:01-04:00</updated>

		<published>2009-02-21T02:46:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87498#p87498</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87498#p87498"/>
		<title type="html"><![CDATA[need some help on a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87498#p87498"><![CDATA[
I wouldn't call anyone stupid <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><div class="codebox"><p>Code: </p><pre><code>putquick "MSG ChanServ :register $chan newskin channel is closed"return 1}</code></pre></div> The command <strong class="text-strong">MSG</strong> is a mIRC command* it should be <strong class="text-strong">PRIVMSG</strong> <div class="codebox"><p>Code: </p><pre><code>putquick "PRIVMSG ChanServ :register $chan newskin channel is closed"return 1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Sat Feb 21, 2009 2:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[redwolf]]></name></author>
		<updated>2009-02-21T00:32:42-04:00</updated>

		<published>2009-02-21T00:32:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87496#p87496</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87496#p87496"/>
		<title type="html"><![CDATA[need some help on a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87496#p87496"><![CDATA[
on its own is what i meant<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9092">redwolf</a> — Sat Feb 21, 2009 12:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[redwolf]]></name></author>
		<updated>2009-02-21T00:32:02-04:00</updated>

		<published>2009-02-21T00:32:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87495#p87495</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87495#p87495"/>
		<title type="html"><![CDATA[ok what is wrong with this line???  it aint working for me..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87495#p87495"><![CDATA[
i know i aint stupid but i have never coded a eggdrop to register a channel on its on <br><br> putquick "MSG chanserv :register $chan newskin channel is closed"<br>  return 1<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9092">redwolf</a> — Sat Feb 21, 2009 12:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2009-02-20T01:17:44-04:00</updated>

		<published>2009-02-20T01:17:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87472#p87472</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87472#p87472"/>
		<title type="html"><![CDATA[need some help on a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87472#p87472"><![CDATA[
I'll take it from the <strong class="text-strong">msg_</strong> name that this is a message command? Try <div class="codebox"><p>Code: </p><pre><code>proc msg_closechan {nick uhost handle text} { ...code here}</code></pre></div> I'd strongly recommend that you read, the tcl-commands.doc(/.html) file in the doc/ folder in eggdrop's directory. or View them online <a href="http://www.eggheads.org/support/egghtml/1.6.19/tcl-commands.html" class="postlink">here</a> see "Bind Types"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Fri Feb 20, 2009 1:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[redwolf]]></name></author>
		<updated>2009-02-19T21:49:47-04:00</updated>

		<published>2009-02-19T21:49:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87470#p87470</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87470#p87470"/>
		<title type="html"><![CDATA[need some help on a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87470#p87470"><![CDATA[
i have wrote this for a ircop'ed eggdrop bot, to ease the burden on myself and others, but cant get the proc bind right ( IE right now it says proc name args body)  should be like something like "nick host handle channel testes"  thats just an example,  its running on a 1.6.19 eggdrop<br><br>what its suppose to do, is shut down and reregister a channel and lock it down, and stay in the 'said' channel.  i have omited the oper line to drop the channel will add that later.  But if someone out there can help me, I sure would like the help on this script.<br><br><br>proc msg_closechan {proc name args body}<br>{<br>global botnick<br>  set chan [lindex $vars 0]<br>  set curchan [channels]<br>  set why [lrange $vars 1 end]<br>   foreach chann $curchan {<br>     if {[string tolower $chann] == [string tolower $chan]}<br>{<br>      putserv "NOTICE $nick :I'm already on $chan you lamer"<br>      return 0<br>     }<br>   }<br>  channel add $chan {chanmode "+ntspi"}<br>  putserv "NOTICE $nick :Added $chan to channel list. (!ccs changes modes)"<br>  putserv "MSG chanserv :register $chan passwordhere channel is closed"<br>  return 1<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9092">redwolf</a> — Thu Feb 19, 2009 9:49 pm</p><hr />
]]></content>
	</entry>
	</feed>
