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

	<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>2007-01-25T18:56:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[crux]]></name></author>
		<updated>2007-01-25T18:56:38-04:00</updated>

		<published>2007-01-25T18:56:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69928#p69928</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69928#p69928"/>
		<title type="html"><![CDATA[need little help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69928#p69928"><![CDATA[
thanks you <br>it's working now  <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=8573">crux</a> — Thu Jan 25, 2007 6:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-01-25T16:34:44-04:00</updated>

		<published>2007-01-25T16:34:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69924#p69924</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69924#p69924"/>
		<title type="html"><![CDATA[need little help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69924#p69924"><![CDATA[
<blockquote class="uncited"><div>You might wanna keep in mind there's no "channel" argument on a msg-binding...<br>Also, please considder "splitting" strings into lists before using list-operations such as lindex, lrange, etc. Especially when it comes from an untrusted source (in this case, untrusted means anything that might generate an improper list-structure)</div></blockquote>i.e.<div class="codebox"><p>Code: </p><pre><code>bind msg n|n .kick kickproc kick {nick host hand arg} { if {[scan $arg "%s %s" who chan] != 2} {  puthelp "notice $nick :Usage: .kick &lt;chan&gt; &lt;nick&gt; \[reason\]"  return 0 } set why [join [lrange [split $arg] 2 end]] if {![onchan $who $chan]} {  puthelp "NOTICE $nick :$who not on $chan." } {  if {$why == ""} {   putserv "KICK $chan $who :Requested by $nick"  } {   putserv "KICK $chan $who :$why"  } }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Jan 25, 2007 4:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[crux]]></name></author>
		<updated>2007-01-25T15:55:14-04:00</updated>

		<published>2007-01-25T15:55:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69921#p69921</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69921#p69921"/>
		<title type="html"><![CDATA[need little help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69921#p69921"><![CDATA[
<blockquote class="uncited"><div>Try:<br><div class="codebox"><p>Code: </p><pre><code>#Make the bot KICK someone...bind msg n|n .kick kickproc kick {nick host handle channel testes} {set who [lindex $testes 0]set why [lrange $testes 1 end]if {$who == ""} {  putserv "NOTICE $nick :Usage: .KICK &lt;nick&gt; &lt;reason&gt;"} elseif {![onchan $who $channel]} {  putserv "NOTICE $nick :$who not on $channel."} else {  if {$why == ""} {    putserv "KICK $channel $who :Requested by $nick"  } else {    putserv "KICK $channel $who :$why"  }}#end of kick</code></pre></div>Not Tested</div></blockquote><br><br>donesn't work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> <br><br>i got this error: <br><div class="codebox"><p>Code: </p><pre><code>[20:55] Tcl error [kick]: wrong # args: should be "kick nick host handle channel testes"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8573">crux</a> — Thu Jan 25, 2007 3:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-01-23T15:35:31-04:00</updated>

		<published>2007-01-23T15:35:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69860#p69860</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69860#p69860"/>
		<title type="html"><![CDATA[need little help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69860#p69860"><![CDATA[
You might wanna keep in mind there's no "channel" argument on a msg-binding...<br>Also, please considder "splitting" strings into lists before using list-operations such as lindex, lrange, etc. Especially when it comes from an untrusted source (in this case, untrusted means anything that might generate an improper list-structure)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jan 23, 2007 3:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[crux]]></name></author>
		<updated>2007-01-23T15:31:39-04:00</updated>

		<published>2007-01-23T15:31:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69859#p69859</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69859#p69859"/>
		<title type="html"><![CDATA[need little help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69859#p69859"><![CDATA[
Thanks you much, I'll test..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8573">crux</a> — Tue Jan 23, 2007 3:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-01-23T15:12:02-04:00</updated>

		<published>2007-01-23T15:12:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69856#p69856</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69856#p69856"/>
		<title type="html"><![CDATA[need little help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69856#p69856"><![CDATA[
Try:<br><div class="codebox"><p>Code: </p><pre><code>#Make the bot KICK someone...bind msg n|n .kick kickproc kick {nick host handle channel testes} {set who [lindex $testes 0]set why [lrange $testes 1 end]if {$who == ""} {  putserv "NOTICE $nick :Usage: .KICK &lt;nick&gt; &lt;reason&gt;"} elseif {![onchan $who $channel]} {  putserv "NOTICE $nick :$who not on $channel."} else {  if {$why == ""} {    putserv "KICK $channel $who :Requested by $nick"  } else {    putserv "KICK $channel $who :$why"  }}#end of kick</code></pre></div>Not Tested<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Tue Jan 23, 2007 3:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[crux]]></name></author>
		<updated>2007-01-23T14:28:12-04:00</updated>

		<published>2007-01-23T14:28:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69854#p69854</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69854#p69854"/>
		<title type="html"><![CDATA[need little help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69854#p69854"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>#Make the bot KICK someone...bind msg n|n .kick kickproc kick {nick host handle channel testes} {set who [lindex $testes 0]set why [lrange $testes 1 end]if {$who == ""} {putserv "NOTICE $nick :Usage: .KICK &lt;nick&gt; &lt;reason&gt;"return 1}putserv "KICK $who :$why"putserv "NOTICE $nick :Done: KICKED $who with: $why"return 1}#end of kick</code></pre></div>this code doesn't work. I think I need sth.. please help me if you know..<br><br>thanks you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8573">crux</a> — Tue Jan 23, 2007 2:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
