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

	<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-28T12:53:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2009-02-28T12:53:32-04:00</updated>

		<published>2009-02-28T12:53:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87614#p87614</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87614#p87614"/>
		<title type="html"><![CDATA[help please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87614#p87614"><![CDATA[
Lol this pretty much screws up my original idea <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> tcl and me dont mix unfortunetly iv read the manuels and still dont understand it are their any manuels out their or such thing as tcl for dummies that give proper explanations seems most manuels are harder to understand then the actual scripting itself<br><br>I simply need a script that allows my chanops access to do things with my bot than actualy having them on the party line and most of the desired commands they need to be able to use are done via the party line my eggdrop is used as a moderation control programme allowing chanops to warn kick ban via the bot with an extra few privaledges<br><br>the act command is to act as the warning ie /msg botnick act #chan -Warning- $$1 You have been warned in #channel for advertising continue and you will be banned | /msg botnick act #wkblogs $me warned $$1 for advertising in # <br><br>kick /msg botnick act #chan $$1 You have been kicked from #chan for swearing continue and you will be banned | /msg botnick kick #chan $$1<br><br>This is pretty much how my warn kick ban script for mirc is set out but without the bot recognising these commands its pretty useless<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Sat Feb 28, 2009 12:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-02-28T11:20:27-04:00</updated>

		<published>2009-02-28T11:20:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87612#p87612</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87612#p87612"/>
		<title type="html"><![CDATA[help please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87612#p87612"><![CDATA[
--pop--<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Feb 28, 2009 11:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-02-28T11:21:01-04:00</updated>

		<published>2009-02-28T11:18:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87611#p87611</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87611#p87611"/>
		<title type="html"><![CDATA[help please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87611#p87611"><![CDATA[
proc stuff {hand idx text} {<br><br>This is if you've bound to dcc chat, partyline which you haven't. So don't use the above, it's stupid.<br><br>This is what you use for a bind to a message<br><br>proc stuff {nick host hand text} {<br><br>Have a fun <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> <br><br>Note: You also use list commands on strings throughout that script. Your not using the proper split on your lindex's or the proper split/join with your lranges. This <span style="text-decoration:underline">will</span> cause tcl errors the moment you try to use any special characters.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Feb 28, 2009 11:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2009-02-28T07:45:14-04:00</updated>

		<published>2009-02-28T07:45:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87609#p87609</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87609#p87609"/>
		<title type="html"><![CDATA[help please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87609#p87609"><![CDATA[
I get this error on my bots partyline when i do /msg botsnick act #chan text<br><br>_-11:43am-_ &lt;ChanGuardian&gt; [06:43] Tcl error [msg:act]: wrong # args: should be "msg:act hand idx text"<br><br>The way you have corrected it is the way i had it origanaly<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Sat Feb 28, 2009 7:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dj-zath]]></name></author>
		<updated>2009-02-28T07:32:13-04:00</updated>

		<published>2009-02-28T07:32:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87608#p87608</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87608#p87608"/>
		<title type="html"><![CDATA[help please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87608#p87608"><![CDATA[
I didn't really troubleshoot your script, however, I did make "first-glance" corrections to your proc declorations..<br><br>if this script actually <em class="text-italics">works</em>, I donno...<br><br>To me, this looks  more like <em class="text-italics"><strong class="text-strong">mangled PHP</strong></em> than TCL!<br><br>good luck with it though.. I recommend that you study it, at least.. perhaps you can simply copy it  back in.. and it will work for you!<br><br><div class="codebox"><p>Code: </p><pre><code>bind MSG o|o kill    msg:killbind MSG o|o sajoin  msg:sajoinbind MSG o|o act     msg:actbind MSG o|o kick    msg:kickbind MSG o|o bankick msg:bankickbind MSG o|o tempshun msg:tempshunproc  msg:kill {hand idx text} {global botnickset note [lrange $text 0 end]  if {[lindex $text 0] == ""} {    putidx $idx "USAGE kill &lt;nick&gt; &lt;reason&gt;"    return 1  }putserv "kill $text (Kill Performed by $hand)"putlog "$hand issued Kill Command: $text"}proc msg:sajoin {hand idx text} {global botnickset note [lrange $text 0 end]  if {[lindex $text 0] == ""} {    putidx $idx "USAGE sajoin &lt;user&gt; &lt;chan&gt;"    return 1  }putserv "sajoin $text (Sajoin performed by $hand)"putlog "$hand issued sajoin : $text"}proc  msg:act  {hand idx text} {global botnickset note [lrange $text 0 end]  if {[lindex $text 0] == ""} {    putidx $idx "USAGE act &lt;chan&gt; &lt;text&gt;"    return 1  }}proc msg:kick {hand idx text} {global botnickset note [lrange $text 0 end]  if {[lindex $text 0] == ""} {    putidx $idx "USAGE kick &lt;chan&gt; &lt;nick&gt; &lt;reason&gt;"    return 1  }}proc msg:bankick {hand idx text} {global botnickset note [lrange $text 0 end]  if {[lindex $text 0] == ""} {    putidx $idx "USAGE bankick &lt;chan&gt; &lt;nick&gt; &lt;reason&gt;"    return 1  }}proc  msg:tempshun {hand idx text} {global botnickset note [lrange $text 0 end]  if {[lindex $text 0] == ""} {    putidx $idx "USAGE tempshun &lt;nick&gt; &lt;reason&gt;"    return 1  }putserv "tempshun $text (tempshun Performed by $hand)"putlog {"$hand issued tempshun Command: $text"}</code></pre></div>(this is what happens when ppl confuse TCL with PHP!)<br><br>-DjZ-<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10318">dj-zath</a> — Sat Feb 28, 2009 7:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2009-02-28T04:49:56-04:00</updated>

		<published>2009-02-28T04:49:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87606#p87606</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87606#p87606"/>
		<title type="html"><![CDATA[help please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87606#p87606"><![CDATA[
<blockquote class="uncited"><div>Your proc declarations are messed up...<br><br>Proper syntax is as follows:<br><strong class="text-strong">proc</strong> <em class="text-italics">&lt;name&gt;</em> <em class="text-italics">&lt;argument list&gt;</em> <em class="text-italics">&lt;body&gt;</em><br><br>Right now, you're combining the name and argument list into one single string.<br><br>The usual way of writing this is like this:<div class="codebox"><p>Code: </p><pre><code>proc myproc {arg1 arg2 arg3} { puts stdout "arg1: $arg1" puts stdout "arg2: $arg2" puts stdout "arg3: $arg3" return 0}</code></pre></div></div></blockquote><br>Anu chance you may be able to help me with it as i have no idea its a bit off code i found in another script ive just built on it but without no luck as you can see<br><br><br>many thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Sat Feb 28, 2009 4:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-02-27T17:36:27-04:00</updated>

		<published>2009-02-27T17:36:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87591#p87591</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87591#p87591"/>
		<title type="html"><![CDATA[help please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87591#p87591"><![CDATA[
Your proc declarations are messed up...<br><br>Proper syntax is as follows:<br><strong class="text-strong">proc</strong> <em class="text-italics">&lt;name&gt;</em> <em class="text-italics">&lt;argument list&gt;</em> <em class="text-italics">&lt;body&gt;</em><br><br>Right now, you're combining the name and argument list into one single string.<br><br>The usual way of writing this is like this:<div class="codebox"><p>Code: </p><pre><code>proc myproc {arg1 arg2 arg3} { puts stdout "arg1: $arg1" puts stdout "arg2: $arg2" puts stdout "arg3: $arg3" return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Feb 27, 2009 5:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2009-02-27T17:19:14-04:00</updated>

		<published>2009-02-27T17:19:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87590#p87590</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87590#p87590"/>
		<title type="html"><![CDATA[help please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87590#p87590"><![CDATA[
Can any one help me with this script ive put together this is the error msg i get when starting my eggdrop<br><br><br>16:11] Tcl error in file 'eggdrop.conf':<br>[16:11] wrong # args: should be "proc name args body"<br>    while executing<br>"proc "msg:kill hand idx text" {<br>global botnick<br>set note [lrange $text 0 end]<br>  if {[lindex $text 0] == ""} {<br>    putidx $idx "USAGE kill &lt;nick&gt; &lt;reaso..."<br>    (file "scripts/cwmod.tcl" line <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><br>    invoked from within<br>"source scripts/cwmod.tcl"<br>    (file "eggdrop.conf" line 1370)<br>[16:11] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)<br><br><br>Script<br><br>bind MSG o|o kill    msg:kill<br>bind MSG o|o sajoin  msg:sajoin<br>bind MSG o|o act     msg:act<br>bind MSG o|o kick    msg:kick<br>bind MSG o|o bankick msg:bankick<br>bind MSG o|o tempshun msg:tempshun<br><br>proc "msg:kill hand idx text" {<br>global botnick<br>set note [lrange $text 0 end]<br>  if {[lindex $text 0] == ""} {<br>    putidx $idx "USAGE kill &lt;nick&gt; &lt;reason&gt;"<br>    return 1<br>  }<br>putserv "kill $text (Kill Performed by $hand)"<br>putlog "$hand issued Kill Command: $text"<br>}<br><br>proc "msg:sajoin hand idx text" {<br>global botnick<br>set note [lrange $text 0 end]<br>  if {[lindex $text 0] == ""} {<br>    putidx $idx "USAGE sajoin &lt;user&gt; &lt;chan&gt;"<br>    return 1<br>  }<br>putserv "sajoin $text (Sajoin performed by $hand)"<br>putlog "$hand issued sajoin : $text"<br>}<br><br>proc "msg:act hand idx text" {<br>global botnick<br>set note [lrange $text 0 end]<br>  if {[lindex $text 0] == ""} {<br>    putidx $idx "USAGE act &lt;chan&gt; &lt;text&gt;"<br>    return 1<br>  }<br><br>}<br><br>proc "msg:kick hand idx text" {<br>global botnick<br>set note [lrange $text 0 end]<br>  if {[lindex $text 0] == ""} {<br>    putidx $idx "USAGE kick &lt;chan&gt; &lt;nick&gt; &lt;reason&gt;"<br>    return 1<br>  }<br><br>}<br><br>proc "msg:bankick hand idx text" {<br>global botnick<br>set note [lrange $text 0 end]<br>  if {[lindex $text 0] == ""} {<br>    putidx $idx "USAGE bankick &lt;chan&gt; &lt;nick&gt; &lt;reason&gt;"<br>    return 1<br>  }<br><br>}<br><br>proc "msg:tempshun hand idx text" {<br>global botnick<br>set note [lrange $text 0 end]<br>  if {[lindex $text 0] == ""} {<br>    putidx $idx "USAGE tempshun &lt;nick&gt; &lt;reason&gt;"<br>    return 1<br>  }<br>putserv "tempshun $text (tempshun Performed by $hand)"<br>putlog "$hand issued tempshun Command: $text"<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Fri Feb 27, 2009 5:19 pm</p><hr />
]]></content>
	</entry>
	</feed>
