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

	<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>2004-09-01T06:49:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[guest]]></name></author>
		<updated>2004-09-01T06:49:10-04:00</updated>

		<published>2004-09-01T06:49:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40509#p40509</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40509#p40509"/>
		<title type="html"><![CDATA[Ban type problems! + Probs with tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40509#p40509"><![CDATA[
i'm using :<br>OS:˙Linux˙2.4.26-gentoo-r9<br>running˙eggdrop˙v1.6.16+Gentoo<br>Tcl˙library:˙/usr/lib/tcl8.3<br>Tcl˙version:˙8.3.4˙(header˙version˙8.3.4)<br><br>ok i put { at the end and now it seems to work but not right<br><br>it just kicks a user not bans<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4435">guest</a> — Wed Sep 01, 2004 6:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-09-01T06:17:25-04:00</updated>

		<published>2004-09-01T06:17:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40508#p40508</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40508#p40508"/>
		<title type="html"><![CDATA[Ban type problems! + Probs with tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40508#p40508"><![CDATA[
<blockquote class="uncited"><div>What eggdrop version are you using?? and what tcl version is your machine on?!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"></div></blockquote>What's that got to do with the misplaced brace? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> (notice: no "{" at the end of that if-line)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Sep 01, 2004 6:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-01T05:38:12-04:00</updated>

		<published>2004-09-01T05:38:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40507#p40507</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40507#p40507"/>
		<title type="html"><![CDATA[Ban type problems! + Probs with tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40507#p40507"><![CDATA[
What eggdrop version are you using?? and what tcl version is your machine on?!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Sep 01, 2004 5:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guest]]></name></author>
		<updated>2004-09-01T05:21:48-04:00</updated>

		<published>2004-09-01T05:21:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40505#p40505</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40505#p40505"/>
		<title type="html"><![CDATA[Ban type problems! + Probs with tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40505#p40505"><![CDATA[
after    " .tcl set errorInfo " i get <blockquote class="uncited"><div>Tcl:wrong # args: no script following "{([matchattr $hand m" argument<br>Tcl: while compiling<br>Tcl: "if {([matchattr $hand m|m $chan]) || matchattr $hand o|o $chan])}"<br>Tcl: (compiling body of proc "pub:kick:ban", line <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><br>Tcl: invoked from within<br>Tcl: "pub:kick:ban $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4435">guest</a> — Wed Sep 01, 2004 5:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-31T08:13:39-04:00</updated>

		<published>2004-08-31T08:13:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40452#p40452</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40452#p40452"/>
		<title type="html"><![CDATA[Ban type problems! + Probs with tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40452#p40452"><![CDATA[
Try:<br><div class="codebox"><p>Code: </p><pre><code>.tcl set errorInfo</code></pre></div>In DCC with the bot, then show us the result.<br>The the code you are trying to work on is fairly simple and really looks allright to me.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Aug 31, 2004 8:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guest]]></name></author>
		<updated>2004-08-31T05:09:10-04:00</updated>

		<published>2004-08-31T05:09:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40445#p40445</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40445#p40445"/>
		<title type="html"><![CDATA[Ban type problems! + Probs with tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40445#p40445"><![CDATA[
no suggestions?   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4435">guest</a> — Tue Aug 31, 2004 5:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guest]]></name></author>
		<updated>2004-08-30T14:13:45-04:00</updated>

		<published>2004-08-30T14:13:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40420#p40420</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40420#p40420"/>
		<title type="html"><![CDATA[Ban type problems! + Probs with tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40420#p40420"><![CDATA[
when i write in chan like ban &lt;nick&gt;<br><br>i get this error in my telnet <blockquote class="uncited"><div> [21:03]˙Tcl˙error˙[pub:kick:ban]:˙wrong˙#˙args:˙no˙script˙following˙"{([matchattr˙$hand˙m"˙argument  </div></blockquote>when i write <div class="codebox"><p>Code: </p><pre><code> .tcl info args pub:kick:ban </code></pre></div> in telnet i get this answer <blockquote class="uncited"><div> Tcl:˙nick˙uhost˙hand˙chan˙text </div></blockquote>so what does it mean .... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4435">guest</a> — Mon Aug 30, 2004 2:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-08-30T06:17:57-04:00</updated>

		<published>2004-08-30T06:17:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40398#p40398</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40398#p40398"/>
		<title type="html"><![CDATA[Ban type problems! + Probs with tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40398#p40398"><![CDATA[
Tcl has a command '<strong class="text-strong">info body &lt;proc&gt;</strong>' that will list the contents of a proc. '<strong class="text-strong">info args &lt;proc&gt;</strong>' shows what you have defined as the parameters for the proc.<br><br>   Since your error is 'args' related, try to use this command in dcc to figure out what went wrong.  Example:<div class="codebox"><p>Code: </p><pre><code>.tcl info args pub:kick:ban</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Mon Aug 30, 2004 6:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guest]]></name></author>
		<updated>2004-08-30T03:59:40-04:00</updated>

		<published>2004-08-30T03:59:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40393#p40393</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40393#p40393"/>
		<title type="html"><![CDATA[Ban type problems! + Probs with tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40393#p40393"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes">  now the syntax is all right but script does nothing... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><br><br>while in telnet i see this error <blockquote class="uncited"><div> Tcl˙error˙[pub:kick:ban]:˙wrong˙#˙args:˙no˙script˙following˙"{([matchattr˙$hand˙m"˙argument </div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4435">guest</a> — Mon Aug 30, 2004 3:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-26T20:45:07-04:00</updated>

		<published>2004-08-26T20:45:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40240#p40240</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40240#p40240"/>
		<title type="html"><![CDATA[Ban type problems! + Probs with tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40240#p40240"><![CDATA[
Ok....grrr yes now I know it was calling $hand globally, as I had closed the procedure mistakenly with the rest of it being global. Damn I did a fumble with the curly brackets again, am so careless with syntax errors. Ok give this a go.<br><br>*me* keeps his fingers crossed!<br><div class="codebox"><p>Code: </p><pre><code>bind pub B|B ban pub:kick:ban proc pub:kick:ban {nick uhost hand chan text} {  set person [lindex $text 0]; set reason [lrange $text 1 end]  set host [getchanhost $person]; set handle [nick2hand $person $chan]  if {($text == "")} { putserv "NOTICE $nick :Vartojimas: cya &lt;nikas&gt; (priezhastis)"; return 0 }   if {($host == "")} { putserv "NOTICE $nick :Ko norejai?"; return 0 }    if {([matchattr $handle mn|mn $chan]) || ([matchattr $handle b|b $chan])} {     putquick "NOTICE $nick :suka zhiurek ka darai!" -next; return 0 }      if {([matchattr $hand m|m $chan]) || ([matchattr $hand o|o $chan])} {       putquick "MODE $nick -o+b $person *!*[string trimleft [lindex [split $host "@"] 0] "~"]@[lindex [split [maskhost $host] "@"] 1]" -next       putquick "KICK $chan $person :$reason" -next; return 0       } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Aug 26, 2004 8:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-26T20:39:37-04:00</updated>

		<published>2004-08-26T20:39:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40239#p40239</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40239#p40239"/>
		<title type="html"><![CDATA[Ban type problems! + Probs with tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40239#p40239"><![CDATA[
There is nothing wrong with the script works fine with my bot. The hand variable is defined locally within the script. I think its calling it global somewhere if I am not mistaken. It says line 1 in the script, whats in line 1 of this script?<br><br>What eggdrop version are you using? Is the script possibly clashing with others? Try: Moving it to the top of the script list in the .conf file so it is the first tcl to be loaded into the bot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Aug 26, 2004 8:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guest]]></name></author>
		<updated>2004-08-26T15:01:34-04:00</updated>

		<published>2004-08-26T15:01:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40228#p40228</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40228#p40228"/>
		<title type="html"><![CDATA[Ban type problems! + Probs with tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40228#p40228"><![CDATA[
doesn't it?<br>i just called it like that<blockquote class="uncited"><div> if {([matchattr $hand m|m $chan]) || ([matchattr $hand o|o $chan])} { </div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4435">guest</a> — Thu Aug 26, 2004 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-26T14:26:08-04:00</updated>

		<published>2004-08-26T14:26:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40226#p40226</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40226#p40226"/>
		<title type="html"><![CDATA[RTFEM]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40226#p40226"><![CDATA[
<blockquote class="uncited"><div>[20:58] can't read "hand": no such variable<br>    while executing<br><strong class="text-strong">"matchattr $hand m|m $chan"</strong><br>    (<strong class="text-strong">file "scripts/chancmd.tcl" line 1</strong>)</div></blockquote>Does that look like line 1 of any script you got from this thread?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Aug 26, 2004 2:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guest]]></name></author>
		<updated>2004-08-26T14:03:30-04:00</updated>

		<published>2004-08-26T14:03:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40223#p40223</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40223#p40223"/>
		<title type="html"><![CDATA[Ban type problems! + Probs with tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40223#p40223"><![CDATA[
i think it means the same ...  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <blockquote class="uncited"><div>[20:58] Tcl error in file 'eggdrop.conf':<br>[20:58] can't read "hand": no such variable<br>    while executing<br>"matchattr $hand m|m $chan"<br>    (file "scripts/chancmd.tcl" line 1)<br>    (file "eggdrop.conf" line 1)<br>[20:58] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)</div></blockquote> <br>but it also means that smth is wrong  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4435">guest</a> — Thu Aug 26, 2004 2:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-25T21:46:34-04:00</updated>

		<published>2004-08-25T21:46:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40187#p40187</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40187#p40187"/>
		<title type="html"><![CDATA[Ban type problems! + Probs with tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40187#p40187"><![CDATA[
Okay give this a go.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> <br>I have modified and optimized (reduced un-necessary lines) the code.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> <br><div class="codebox"><p>Code: </p><pre><code>bind pub B|B ban pub:kick:banproc pub:kick:ban {nick uhost hand chan text} { set person [lindex $text 0]; set reason [lrange $text 1 end]  set host [getchanhost $person]; set handle [nick2hand $person $chan] if {($text == "")} { putserv "NOTICE $nick :Vartojimas: cya &lt;nikas&gt; (priezhastis)"; return 0 }  if {($host == "")} { putserv "NOTICE $nick :Ko norejai?"; return 0 }   if {([matchattr $handle mn|mn $chan]) || ([matchattr $handle b|b $chan])}     putquick "NOTICE $nick :suka zhiurek ka darai!" -next; return 0     }      if {([matchattr $hand m|m $chan]) || ([matchattr $hand o|o $chan])} {       putquick "MODE $nick -o+b $person *!*[string trimleft [lindex [split $host "@"] 0] "~"]@[lindex [split [maskhost $host] "@"] 1]" -next      putquick "KICK $chan $person :$reason" -next; return 0      } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Aug 25, 2004 9:46 pm</p><hr />
]]></content>
	</entry>
	</feed>
