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

	<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-01-12T10:49:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ShavdApe]]></name></author>
		<updated>2004-01-12T10:49:40-04:00</updated>

		<published>2004-01-12T10:49:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32464#p32464</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32464#p32464"/>
		<title type="html"><![CDATA[please help me fix this]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32464#p32464"><![CDATA[
ok i removed the $arg and it still doesnt work.<br><br>I am not exactly sure what you mean by the well defined statement (did I mention im a noob to tcl <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> )<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4266">ShavdApe</a> — Mon Jan 12, 2004 10:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2004-01-12T06:09:02-04:00</updated>

		<published>2004-01-12T06:09:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32457#p32457</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32457#p32457"/>
		<title type="html"><![CDATA[please help me fix this]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32457#p32457"><![CDATA[
<blockquote class="uncited"><div>...<br>warauto $arg<br>...<br>proc warauto {} {<br>...</div></blockquote>first, you send arguments to warauto, but it doesn't take any arguments in its definition.<br>So, just call warauto, without any argument.<br>If the problem persists, verify that your proc is well defined.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Jan 12, 2004 6:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ShavdApe]]></name></author>
		<updated>2004-01-12T03:51:52-04:00</updated>

		<published>2004-01-12T03:51:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32455#p32455</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32455#p32455"/>
		<title type="html"><![CDATA[please help me fix this]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32455#p32455"><![CDATA[
I have tried fo the last 2 days to get this to work and now for some strange reason i recieve this error.<br><br>Tcl error [pub:waron]: invalid command name "warauto"<br><br>The are probably numerous bugs but being a noob i dont know what to look for.<br><br>bind pub o "!waron"  pub:waron<br>bind pub o "!waroff"  pub:waroff<br>proc pub:waron {nick host hand chan arg} {<br>warauto $arg<br>    set warin [open warserver r]<br>    while {![eof $warin]} {<br>gets $warin warline<br>if {[lindex $warline 0]==$arg} { <br>    putquick "PRIVMSG $chan :Auto War announce is already running!"<br>    return 0<br>}<br>    }<br>   close $warin<br>    set warout [open warserver a]<br>    puts $warout "$arg"<br>    close $warout<br>    putquick "PRIVMSG $chan :Auto War announce started on $arg"<br>    return 1<br>}<br><br><br>proc getcidmap {} {<br>        set warin [open warserver r]<br>        while {![eof $warin]} {<br>            gets $warin warline<br>            set warline [split $warline]<br>            set serv [lindex $warline 0]<br>                close $warin<br>                return $serv<br>        }<br>        close $warin<br>    }<br>    return ""<br>}<br><br>proc warauto {} {<br>  global pathqstat<br>set $chan "#apey"<br><br>set serv [getcidmap]<br><br>    set stat [open "|$pathqstat/qstat -timeout 30 -q3s $serv -Ts $pathqstat/server.qstat -Tp $pathqstat/players.qstat -P " r]<br><br>  # output the result.<br>  qstat:results $chan $nick $stat<br><br>  # close fork, end program.<br>  close $stat<br>set rtime [timer 1 warauto]<br>  return 0<br>}<br><br>proc pub:waroff {nick host hand chan arg} {<br>global rtime<br>    set warout [open warserver w]<br>    puts $warout "" nonewline<br>    close $warout<br>    putquick "PRIVMSG $chan :Removed all server entries from autoannounce"<br>catch { killtimer $rtime }<br><br>return 1<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4266">ShavdApe</a> — Mon Jan 12, 2004 3:51 am</p><hr />
]]></content>
	</entry>
	</feed>
