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

	<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-07-25T15:59:22-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-07-25T15:59:22-04:00</updated>

		<published>2006-07-25T15:59:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64860#p64860</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64860#p64860"/>
		<title type="html"><![CDATA[Trouble with args, *PROB SOLVED*]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64860#p64860"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind - pub !help myprocproc myproc {nick uhost hand chan text} {     set cmd [lindex [split $text] 0]     if {$cmd == "google"} {              puthelp "PRIVMSG $nick :Google help line 1"              puthelp "PRIVMSG $nick :Google help line 2 etc."              return       }     if {$cmd == "something"} {              # more stuff here              return     }     if {$cmd == ""} {              # Whatever you want..              # could also just use the next "else" part after any "if", for default help..               return     } else {              # default help stuff here...              return     }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Tue Jul 25, 2006 3:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Vexor]]></name></author>
		<updated>2006-07-25T04:58:26-04:00</updated>

		<published>2006-07-25T04:58:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64840#p64840</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64840#p64840"/>
		<title type="html"><![CDATA[Trouble with args, *PROB SOLVED*]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64840#p64840"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc send:help {nick uhost hand chan {args ""}}</code></pre></div>Just isn't working <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"><br><br>I'm at a total loss. [llength $args] didn't work either.<br><br>*UPDATE* I said the hell with it and just rewrote the code.  Thanks for your suggestions, and sorry for the trouble. *mutters to himself*<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7993">Vexor</a> — Tue Jul 25, 2006 4:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krimson]]></name></author>
		<updated>2006-07-25T04:32:46-04:00</updated>

		<published>2006-07-25T04:32:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64837#p64837</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64837#p64837"/>
		<title type="html"><![CDATA[Trouble with args, *PROB SOLVED*]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64837#p64837"><![CDATA[
you should use <div class="codebox"><p>Code: </p><pre><code>proc send:help {nick uhost hand chan {args ""}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7663">krimson</a> — Tue Jul 25, 2006 4:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zero]]></name></author>
		<updated>2006-07-25T04:19:26-04:00</updated>

		<published>2006-07-25T04:19:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64836#p64836</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64836#p64836"/>
		<title type="html"><![CDATA[Trouble with args, *PROB SOLVED*]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64836#p64836"><![CDATA[
Try this:<br><div class="codebox"><p>Code: </p><pre><code>proc send:help {nick uhost hand chan args} {        #Bring in the default list        global helplist        if { [llength $args] &gt; 0 } {                put:help $args $nick        } else {                putserv "privmsg $nick :Current general commands include: $helplist"                putserv "privmsg $nick :For more information on a topic use \"!help topic\" (such as !help google)"        }} </code></pre></div>Maybe llength $args works...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8009">Zero</a> — Tue Jul 25, 2006 4:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Vexor]]></name></author>
		<updated>2006-07-25T05:40:48-04:00</updated>

		<published>2006-07-25T00:19:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64834#p64834</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64834#p64834"/>
		<title type="html"><![CDATA[Trouble with args, *PROB SOLVED*]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64834#p64834"><![CDATA[
Greetings all,<br><br>I'm creating a small user's help guide for my bot so people can know all channel commands for the bot.  This works to some degree.  If I type in "!help google" I get the small help text that explains how to use it.  But if I just use "!help" I get no response at all.  It's probably just a total brain fart but I can't put my finger on it.<br><div class="codebox"><p>Code: </p><pre><code>proc send:help {nick uhost hand chan args} {        #Bring in the default list        global helplist        if { $args != "" } {                put:help $args $nick        } else {                putserv "privmsg $nick :Current general commands include: $helplist"                putserv "privmsg $nick :For more information on a topic use \"!help topic\" (such as !help google)"        }}</code></pre></div>put:help is what calls if args is not blank, (ie, the "!help google", which works)  What's not working is the else statement block.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"> <br><br>Any suggestions?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7993">Vexor</a> — Tue Jul 25, 2006 12:19 am</p><hr />
]]></content>
	</entry>
	</feed>
