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

	<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>2006-08-02T16:32:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Vexor]]></name></author>
		<updated>2006-08-02T16:32:52-04:00</updated>

		<published>2006-08-02T16:32:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65104#p65104</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65104#p65104"/>
		<title type="html"><![CDATA[error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65104#p65104"><![CDATA[
Just make sure your body statements are enclosed in {}<br><br>such as...<br><div class="codebox"><p>Code: </p><pre><code>bind pub - howdy do_bind_speechproc do_bind_speech { nick host hand chan text } {          putserv "privmsg $chan :Howdy to you, $nick"}        </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7993">Vexor</a> — Wed Aug 02, 2006 4:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[alisetan]]></name></author>
		<updated>2006-08-02T06:07:17-04:00</updated>

		<published>2006-08-02T06:07:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65089#p65089</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65089#p65089"/>
		<title type="html"><![CDATA[error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65089#p65089"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>proc login {nick host hand chan arg}global url pathqstat cc nopub djif {[lsearch -exact $nopub [string tolower $chan]] &gt;= 0} {return 0}return 0} </code></pre></div>Looks to me like you've forgotten a few {}'s.  Perhaps its not needed but I've always written procs as<div class="codebox"><p>Code: </p><pre><code>proc name { args } { do whatever }</code></pre></div></div></blockquote><br>how to solve it?? i'm noob... new in tcl.. help me<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7781">alisetan</a> — Wed Aug 02, 2006 6:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Vexor]]></name></author>
		<updated>2006-08-02T05:52:13-04:00</updated>

		<published>2006-08-02T05:52:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65088#p65088</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65088#p65088"/>
		<title type="html"><![CDATA[error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65088#p65088"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc login {nick host hand chan arg}global url pathqstat cc nopub djif {[lsearch -exact $nopub [string tolower $chan]] &gt;= 0} {return 0}return 0} </code></pre></div>Looks to me like you've forgotten a few {}'s.  Perhaps its not needed but I've always written procs as<div class="codebox"><p>Code: </p><pre><code>proc name { args } { do whatever }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7993">Vexor</a> — Wed Aug 02, 2006 5:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[alisetan]]></name></author>
		<updated>2006-08-02T00:36:38-04:00</updated>

		<published>2006-08-02T00:36:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65084#p65084</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65084#p65084"/>
		<title type="html"><![CDATA[error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65084#p65084"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set tr "!" set cc "!" set nopub "#q3f" bind pub -|- ${tr}onair login bind pub -|- ${tr}dj djs bind pub -|- ${tr}offair logout bind pub -|- ${tr}cleardj resetdj bind pub -|- ${tr}request reqset qversion "1.5" proc login {nick host hand chan arg}  global url pathqstat cc nopub dj if {[lsearch -exact $nopub [string tolower $chan]] &gt;= 0} {return 0} return 0 } set dj "$nick" putserv "NOTICE $nick :You Are Now On Air When U Are Done Please Sign Off" } proc djs {nick host hand chan arg}  global url pathqstat cc nopub dj if {[lsearch -exact $nopub [string tolower $chan]] &gt;= 0} {return 0} if {$arg == ""} { putserv "PRIVMSG #perlis :4,1* 14,1 »15,1»14,1»4,1 Current DJ : $dj 14,1 »15,1»14,1» 4,1*" return 0 } proc logout {nick host hand chan arg} { global url pathqstat cc nopub dj if {[lsearch -exact $nopub [string tolower $chan]] &gt;= 0} {return 0} if {$nick == "$dj"} { return 0 } set dj "None" putserv "NOTICE $nick :You Are Now Off Air When U Are Done Please Sign Off" } proc resetdj {nick host hand chan arg}  global url pathqstat cc nopub dj if {[lsearch -exact $nopub [string tolower $chan]] &gt;= 0} {return 0} return 0 } set dj "None" putserv "NOTICE $nick :The Dj Has Ben Reset" } proc req {nick host hand chan arg} {global url pathqstat cc nopub dj        if ($dj == None) if {[lsearch -exact $nopub [string tolower $chan]] &gt;= 0} {return 0}if {$arg == ""} {putserv "notice $nick :Usage: ${cc}request &lt;exact Songname&gt;"return 0} set songname "$arg"putserv "PRIVMSG $dj :$nick requested $songname"putserv "NOTICE $nick :You have request $songname. Please do not re-request this."}</code></pre></div><br>what error for this... <br><br>wrong # args: should be "proc name args body"<br>    while executing<br>"proc login {nick host hand chan arg} "<br>    (file "scripts/newtcl.tcl" line 14)<br><br><span style="color:darkred">Please use</span> <div class="codebox"><p>Code: </p><pre><code> tags next time.[/color]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7781">alisetan</a> — Wed Aug 02, 2006 12:36 am</p><hr />
]]></content>
	</entry>
	</feed>
