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

	<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-04-09T18:35:03-04:00</updated>

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

		<entry>
		<author><name><![CDATA[LorT]]></name></author>
		<updated>2004-04-09T18:35:03-04:00</updated>

		<published>2004-04-09T18:35:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35383#p35383</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35383#p35383"/>
		<title type="html"><![CDATA[invalid commands name &quot;get&quot;?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35383#p35383"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc team:addmatch {nick uhost handle channel arg} {   global tmatch   set check [team:charfilter $arg]   if {$check!=1} {    putserv "notice $nick :Invalid Character"    return0   }   if {([lsearch $arg "team(*"]==-1) || ([lsearch $arg "date(*"]==-1) || ([lsearch $arg "map(*"]==-1)} {    putserv "notice $nick :Invalid args, your need to enter at least the team(x), date(hh:mm-dd/mm/yy) and map(x) (+ info(x))"    return 0   }  set startindex [lsearch $arg "date(*"]  set buf [lrange $arg $startindex end]  set infos [string range $buf 5 [expr [string first ")" $buf]-1]]  set errormsg [team:checkdate $infos]  if {$errormsg!=1} {    putserv "NOTICE $nick :$errormsg"    return 0   }  set infos [clock scan [string map {- { }} $infos]]  team:counter $channel  set infos [linsert $infos 0 $tmatch_counter ]</code></pre></div><div class="codebox"><p>Code: </p><pre><code>proc team:counter {channel} {   global tmatch_counter   set fileio [open [team:tmatchlist $channel] r]   set team_list [get $fileio]   close $fileio   set tmatch_counter [lindex [lindex [lsort -integer index 0 $team_list] end] 0]   if {$tmatch_counter==""} {     set tmatch_counter -1    }   incr tmatch_counter   return tmatch_counter   }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2832">LorT</a> — Fri Apr 09, 2004 6:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-04-09T18:19:59-04:00</updated>

		<published>2004-04-09T18:19:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35381#p35381</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35381#p35381"/>
		<title type="html"><![CDATA[Re: invalid commands name &quot;get&quot;?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35381#p35381"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>proc team:tmatchlist {channel} {   global tfile   if {![file readable $tfile(dir)/tmatch-$channel]} {     set fileio [open $tfile(dir)/tmatch-$channel w]     puts $fileio ""     close $fileio    }    putlog "1"   return $tfile(dir)/tmatch-$channel     putlog "123"   }</code></pre></div>the bot return <br>[17:28] 1<br>[17:28] Tcl error [team:addmatch]: invalid command name "get"<br><br>the fiel is writed in $tfile(dir) with the name tmatch-#channel_name<br><br>any help with the error message?<br>i dont see command get in my code.</div></blockquote>You didn't post the code related to the error... The message tells you that the error occurs in the procedure 'team:addmatch' (which again, you didn't post).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Fri Apr 09, 2004 6:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LorT]]></name></author>
		<updated>2004-04-09T17:53:47-04:00</updated>

		<published>2004-04-09T17:53:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35379#p35379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35379#p35379"/>
		<title type="html"><![CDATA[invalid commands name &quot;get&quot;?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35379#p35379"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc team:tmatchlist {channel} {   global tfile   if {![file readable $tfile(dir)/tmatch-$channel]} {     set fileio [open $tfile(dir)/tmatch-$channel w]     puts $fileio ""     close $fileio    }    putlog "1"   return $tfile(dir)/tmatch-$channel     putlog "123"   }</code></pre></div>the bot return <br>[17:28] 1<br>[17:28] Tcl error [team:addmatch]: invalid command name "get"<br><br>the fiel is writed in $tfile(dir) with the name tmatch-#channel_name<br><br>any help with the error message?<br>i dont see command get in my code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2832">LorT</a> — Fri Apr 09, 2004 5:53 pm</p><hr />
]]></content>
	</entry>
	</feed>
