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

	<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-08-24T17:41:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[sniegas]]></name></author>
		<updated>2006-08-24T17:41:50-04:00</updated>

		<published>2006-08-24T17:41:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65778#p65778</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65778#p65778"/>
		<title type="html"><![CDATA[qstats4eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65778#p65778"><![CDATA[
for me it happened even stranger thing:<div class="codebox"><p>Code: </p><pre><code>00:40 &lt;@SNow&gt; !cs00:41 -allstats(~allstats@help.iti.lt)- 1:00:41 -allstats(~allstats@help.iti.lt)- 2:00:41 -allstats(~allstats@help.iti.lt)- 3:00:41 -allstats(~allstats@help.iti.lt)- 4:00:41 -allstats(~allstats@help.iti.lt)- 5: TIMEOUT (193.219.1.131:27015), /          players, ,  ms00:41 -allstats(~allstats@help.iti.lt)- 6: This Server By OMONAS !!!          (193.219.1.235:27015), 21/23 players, fy_pool_day, 12 ms00:41 -allstats(~allstats@help.iti.lt)- 7: This server BY OMONAS !!!          (193.219.1.232:27015), 1/26 players, cs_deagle5, 5 ms00:41 -allstats(~allstats@help.iti.lt)- 8: cs.sniegas.lt CSDM #sniegas.lt          server by SNow (84.240.23.4:27015), 19/26 players, de_nuke, 23 ms</code></pre></div>the thing is that in the qstat4eggdrop.lst I have only 4 entries:<div class="codebox"><p>Code: </p><pre><code>debian:/home/stats/.eggdrop# cat qstat4eggdrop.lsta2s cs.iti.lta2s cs.alus.lta2s cs.sniegas.lta2s cs.police.ltdebian:/home/stats/.eggdrop#</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8125">sniegas</a> — Thu Aug 24, 2006 5:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-03-14T19:27:21-04:00</updated>

		<published>2005-03-14T19:27:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47663#p47663</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47663#p47663"/>
		<title type="html"><![CDATA[qstats4eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47663#p47663"><![CDATA[
Your problems compiling the eggdrop source is a missing dependency and not, as you so rightly stated, a missing command (I misread the post). I use tcl/tk 8.4.7 myself and haven't bothered with getting the 8.4.9 tarball as yet.<br><br>Check and see if you have these installed: gcc-mingw, mingw-runtime, minires-devel and the latest glib/glib2.<br><br>I use NT 5.1 (XP Pro) and initially had to do a bit of fiddling with the Cygwin setup before I could compile the eggdrop source error free.<br><br>PS: With some scripts that do use *nix commands it's possible to get hold of the Window ports and just place them in the windrop folder; the scripts then work usually without a drama. <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=3646">Alchera</a> — Mon Mar 14, 2005 7:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-14T08:51:57-04:00</updated>

		<published>2005-03-14T08:51:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47622#p47622</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47622#p47622"/>
		<title type="html"><![CDATA[qstats4eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47622#p47622"><![CDATA[
<blockquote class="uncited"><div>Hmmm.. I've yet to have a problem compiling a Windrop under Cygwin. You will encounter errors if not all the dependencies are installed (this also applies to Linux). Read the error output (not the last message but the first error encountered) and you might be able to determine what's missing. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>One command missing from Cygwin that comes immediately to mind is "uptime".<br><br>For a FULL list of Linux commands see the <a href="http://www.oreillynet.com/linux/cmd/" class="postlink">Alphabetical Directory of Linux Commands</a> and you'll see how much is missing.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"></div></blockquote>yeah a full list of commands... some I have never heared about and some that a cleary not meant to be installed like mail feature ^^, never I need (and I doubt eggdrop/tcl needs) text editors like vi (I am really satisfied with UltraEdit32 <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">). of course there are never DNS servers installed never quota/ssh/ssl/ip(chains|table) features @_o. So its quite difficult to find a command that might help. But from the error I think it might be a way in eggdrop the file is opened. perhaps in *nix you can open a file to read/execute at the same time, but Win NT prevents this. I don't know, but I rather think its something like this than its a missing command <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Mar 14, 2005 8:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-03-14T00:47:56-04:00</updated>

		<published>2005-03-14T00:47:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47609#p47609</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47609#p47609"/>
		<title type="html"><![CDATA[qstats4eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47609#p47609"><![CDATA[
Hmmm.. I've yet to have a problem compiling a Windrop under Cygwin. You will encounter errors if not all the dependencies are installed (this also applies to Linux). Read the error output (not the last message but the first error encountered) and you might be able to determine what's missing. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>One command missing from Cygwin that comes immediately to mind is "uptime".<br><br>For a FULL list of Linux commands see the <a href="http://www.oreillynet.com/linux/cmd/" class="postlink">Alphabetical Directory of Linux Commands</a> and you'll see how much is missing.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon Mar 14, 2005 12:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-03-13T16:05:04-04:00</updated>

		<published>2005-03-13T16:05:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47559#p47559</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47559#p47559"/>
		<title type="html"><![CDATA[qstats4eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47559#p47559"><![CDATA[
you should report this also to TCL support mailing list(s), since windrop folks won't answer<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Mar 13, 2005 4:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-13T08:07:09-04:00</updated>

		<published>2005-03-13T08:07:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47530#p47530</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47530#p47530"/>
		<title type="html"><![CDATA[qstats4eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47530#p47530"><![CDATA[
tell us some that might be missing, but Cygwin has already many *nix commands. It's quiet faszinating how much they can emulate Unix on Windows. Still I can't compile TCL directly with Cygwin, okay, but I can't with MinGW, either, even it should be possible <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">. If I could, I would try tcl8.4.9, but I am (we are) stuck with 8.4.7 (I don't know how the package from windrop page is compiled, but the one from tcl.tk is not working for me) <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">.<br><br>PS: just updated to newst coreutils for cygwin and recompiled v1.6.18+notesfix from scratch (make distclean), same ^-^. just to make it clear, if I try to execute a file that doesn't exist, I will get a file not found error even within eggdrop <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink">.<br>If I didn't encounter problems with removing bans in 1.7, I would verify it there as well.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Mar 13, 2005 8:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-03-12T22:08:22-04:00</updated>

		<published>2005-03-12T22:08:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47519#p47519</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47519#p47519"/>
		<title type="html"><![CDATA[qstats4eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47519#p47519"><![CDATA[
Your problem <em class="text-italics">may</em> be solved by getting hold of the Window ports of the missing *nix commands in Cygwin. Cygwin comes only with the basic set.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sat Mar 12, 2005 10:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-12T21:47:23-04:00</updated>

		<published>2005-03-12T21:47:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47518#p47518</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47518#p47518"/>
		<title type="html"><![CDATA[qstats4eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47518#p47518"><![CDATA[
tclsh84:<div class="codebox"><p>Code: </p><pre><code>% exec bash.exe -c "whois t-online.de"% Copyright (c)2004 by DENIC% Version: 1.00.0%% Restricted rights....% open "|bash.exe -c \"whois t-online.de\""file100bb7e8</code></pre></div>partyline:<div class="codebox"><p>Code: </p><pre><code>tcl: evaluate (.tcl): exec bash.exe -c "whois t-online.de"Tcl error: couldn't duplicate input handle: bad file numbertcl: evaluate (.tcl): open "|bash.exe -c \"whois t-online.de\""Tcl error: couldn't duplicate input handle: bad file number</code></pre></div>I haven't... but you can see the result. It's simply but plain: [exec ...] and [open |...] can't be used with eggdrop under Cygwin. If you can tell me a TCL/eggdrop version combination which works, I am sure many Cygwin users will be happy <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=2382">De Kus</a> — Sat Mar 12, 2005 9:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-03-12T14:37:20-04:00</updated>

		<published>2005-03-12T14:37:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47503#p47503</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47503#p47503"/>
		<title type="html"><![CDATA[qstats4eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47503#p47503"><![CDATA[
<blockquote class="uncited"><div>I can give a very simply answer:<br>TCL executable calls are currently not working in Eggdrop on Cygwin.<br>I have an unreplied open question on the windrop page relating to this issue:<br><a href="https://sourceforge.net/forum/forum.php?thread_id=1225162&amp;forum_id=131915" class="postlink">https://sourceforge.net/forum/forum.php ... _id=131915</a></div></blockquote>hmm thats odd<br><br>have you tried exec from tclsh under CYGWIN?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Mar 12, 2005 2:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FuE-]]></name></author>
		<updated>2005-03-12T10:46:00-04:00</updated>

		<published>2005-03-12T10:46:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47480#p47480</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47480#p47480"/>
		<title type="html"><![CDATA[qstats4eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47480#p47480"><![CDATA[
tnx <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=5711">FuE-</a> — Sat Mar 12, 2005 10:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-12T09:03:39-04:00</updated>

		<published>2005-03-12T09:03:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47465#p47465</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47465#p47465"/>
		<title type="html"><![CDATA[qstats4eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47465#p47465"><![CDATA[
I can give a very simply answer:<br>TCL executable calls are currently not working in Eggdrop on Cygwin.<br>I have an unreplied open question on the windrop page relating to this issue:<br><a href="https://sourceforge.net/forum/forum.php?thread_id=1225162&amp;forum_id=131915" class="postlink">https://sourceforge.net/forum/forum.php ... _id=131915</a><br><br>PS: [exec bla] and [open |bla] do the same in the end, so it doesnt matter. At least I get the same error in both syntax variants.<br>PPS: set pathqstat "C:/SL/scripts/srv/qstat/" + $pathqstat/qstat -&gt; C:/SL/scripts/srv/qstat<strong class="text-strong">//</strong>qstat<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sat Mar 12, 2005 9:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FuE-]]></name></author>
		<updated>2005-03-12T06:05:36-04:00</updated>

		<published>2005-03-12T06:05:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47459#p47459</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47459#p47459"/>
		<title type="html"><![CDATA[qstats4eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47459#p47459"><![CDATA[
cold you say it in more 'begginer' way <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=5711">FuE-</a> — Sat Mar 12, 2005 6:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-03-11T22:58:34-04:00</updated>

		<published>2005-03-11T22:58:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47451#p47451</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47451#p47451"/>
		<title type="html"><![CDATA[qstats4eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47451#p47451"><![CDATA[
poorly written pipeline handler - blocking, and not checking properly for errors<br><br>instead, it should be non-blocking and checking the condition of the pipe with [eof]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Mar 11, 2005 10:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FuE-]]></name></author>
		<updated>2005-03-11T20:08:11-04:00</updated>

		<published>2005-03-11T20:08:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47444#p47444</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47444#p47444"/>
		<title type="html"><![CDATA[qstats4eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47444#p47444"><![CDATA[
hi when i use !cs ip:port i get this in partyline<br><div class="codebox"><p>Code: </p><pre><code>(01:05:55) (_aLexi) [01:05] Tcl error [pub:qstat]: couldn't duplicate input handle: bad file number</code></pre></div>What can be wrong?<br><div class="codebox"><p>Code: </p><pre><code># $Id: qstat.tcl,v 1.3 2003/06/22 12:43:47 peter Exp $# Qstat script for an eggdrop, version 2.2, 22/06/2003 # # This script will query gameservers using the qstat program to# display server status and players using public commands. ## History:#  1.0 (original) by Mikael Blomqvist &lt;micke@peachpuff.com&gt;#  1.5 by ST8 &lt;st8@q3f.net&gt; and in part by Ad &lt;ad@contempt.org.uk&gt;#  1.7 by Peter Postma &lt;peter@webdeveloping.nl&gt;#    - security hole fixed. (passing bad arguments to TCL's exec)#    - display players fixed. #  1.8 Peter Postma &lt;peter@webdeveloping.nl&gt;#    - doesn't need a temp file anymore to display player info#    - use regsub for input checking #    - better error checking / error messages#    - lot of clean up#  2.0 by Peter Postma &lt;peter@webdeveloping.nl&gt;#    - very nasty bugs fixed: endless long flood and bad errors#    - wiped out alot code, rewrote the main function#  2.1 by Peter Postma &lt;peter@webdeveloping.nl&gt;#    - support for RTCW, Quake 1#    - installation steps added :^)#    - windrop fix (but still doesn't work perfect)#  2.2 by Peter Postma &lt;peter@webdeveloping.nl&gt;#    - added BF, Gamespy, QW and UT2003.#    - added '-timeout 5' option in qstat exec## Installation steps:# 1) Easiest way of installing: put all Qstat related files (players.qstat, #    server.qstat, qstat.tcl, qstat (executable)) into _ONE_ directory.#    A good choice would be something like: /home/name/eggdrop/qstat #    or c:/windrop/qstat# 2) Download the Qstat program from www.qstat.org and install it#    to some directory on your system. # 3) Change the option "set pathqstat "/home/peter/AI/scripts/my/qstat" #    and set it to the path where the Qstat related files are installed.# 4) Make sure the path you've just set also contains the files:#    players.qstat &amp; server.qstat. If not, copy them to that directory.# 5) Optionally change some other configuration settings below.# 6) Edit your eggdrop's configuration file and add the qstat.tcl script. #    If you don't how to do this, please RTFM :)# 7) Rehash# 8) Typ !qstat in the channel for a command list.# 9) Have fun :)## Configuration settings:# Flags needed to use the commandsset qstat_flag "-|-"# Path to qstat folder containing qstat stuff/scripts and the qstat programset pathqstat "C:/SL/scripts/srv/qstat/"# Channels you _dont_ want the bot to reply to public triggers on # (seperate with spaces):set nopub ""# End configuration settings################################################################# This is where the evil TCL code starts, read at your peril!  #################################################################set qversion "2.2"bind pub $qstat_flag "!ut"  pub:qstatbind pub $qstat_flag "!hl"  pub:qstat bind pub $qstat_flag "!cs"  pub:qstatbind pub $qstat_flag "!qw"  pub:qstatbind pub $qstat_flag "!q1"  pub:qstat bind pub $qstat_flag "!q2"  pub:qstat bind pub $qstat_flag "!q3"  pub:qstat bind pub $qstat_flag "!rcw" pub:qstatbind pub $qstat_flag "!bf"  pub:qstatbind pub $qstat_flag "!gs"  pub:qstatbind pub $qstat_flag "!ut2k3"  pub:qstatbind pub $qstat_flag "!ut2003" pub:qstatbind pub $qstat_flag "!utp"  pub:qstatbind pub $qstat_flag "!hlp"  pub:qstatbind pub $qstat_flag "!qwp"  pub:qstatbind pub $qstat_flag "!q1p"  pub:qstatbind pub $qstat_flag "!q3p"  pub:qstatbind pub $qstat_flag "!q2p"  pub:qstatbind pub $qstat_flag "!rcwp" pub:qstatbind pub $qstat_flag "!bfp"  pub:qstatbind pub $qstat_flag "!ut2k3p"  pub:qstatbind pub $qstat_flag "!ut2003p" pub:qstatbind pub $qstat_flag "!qstat" pub:qstat_helpproc pub:qstat_help {nick host hand chan arg} {  global pathqstat nopub  # check if channel is allowed.  if {[lsearch -exact $nopub [string tolower $chan]] &gt;= 0} {return 0}  # output qstat commands / help.  putserv "NOTICE $nick :Qstat commands:"  putserv "NOTICE $nick :\002!qw / !q1 / !q2 / !q3 / !rcw &lt;ip/host&gt;\002 - Displays status of queried Quake World, 1, 2, 3 or RTCW servers"  putserv "NOTICE $nick :\002!ut / !ut2003 / !hl / !bf / !gs &lt;ip/host&gt;\002 - Displays status of queried UT(2003), Half-life, BF1942 and GameSpy servers"  return 0}proc pub:qstat {nick host hand chan arg} {  global lastbind pathqstat nopub  # check if channel is allowed.  if {[lsearch -exact $nopub [string tolower $chan]] &gt;= 0} {return 0}  # only use one argument.  set arg [lindex $arg 0]  # check for input.  if {[string length [string trim $arg]] == 0 || [qstat:input_check $arg]} {    putquick "NOTICE $nick :Syntax: $lastbind &lt;ip/host&gt;"    return 0  }  # figure out which command was used.  switch [string tolower $lastbind] {    "!hl"     { set gametype "-hls";  set players 0 }    "!cs"     { set gametype "-hls";  set players 0 }    "!ut"     { set gametype "-uns";  set players 0 }    "!qw"     { set gametype "-qws";  set players 0 }    "!q1"     { set gametype "-qs";   set players 0 }    "!q2"     { set gametype "-q2s";  set players 0 }    "!q3"     { set gametype "-q3s";  set players 0 }    "!rcw"    { set gametype "-rwm";  set players 0 }    "!bf"     { set gametype "-gps";  set players 0 }    "!gs"     { set gametype "-gps";  set players 0 }    "!ut2k3"  { set gametype "-ut2s"; set players 0 }    "!ut2003" { set gametype "-ut2s"; set players 0 }    "!hlp"     { set gametype "-hls";  set players 1 }    "!utp"     { set gametype "-uns";  set players 1 }    "!qwp"     { set gametype "-qws";  set players 1 }    "!q1p"     { set gametype "-qs";   set players 1 }    "!q2p"     { set gametype "-q2s";  set players 1 }    "!q3p"     { set gametype "-q3s";  set players 1 }    "!rcwp"    { set gametype "-rwm";  set players 1 }    "!bfp"     { set gametype "-gps";  set players 1 }    "!ut2k3p"  { set gametype "-ut2s"; set players 1 }    "!ut2003p" { set gametype "-ut2s"; set players 1 }    default {      putquick "NOTICE $nick :Unknown command."      return 0    }  }  # run the qstat program.  if {$players} {     set stat [open "|$pathqstat/qstat -timeout 5 $gametype $arg -Ts $pathqstat/server.qstat -Tp $pathqstat/players.qstat -P" r]  } else {    set stat [open "|$pathqstat/qstat -timeout 5 $gametype $arg -Ts $pathqstat/server.qstat" r]  }  # output the result.  qstat:results $chan $nick $stat  # close fork, end program.  close $stat  return 0}# show results.proc qstat:results {chan nick pf} {  while {[gets $pf line] &gt;= 0} {     if {[string match "DOWN*" $line]} {      putquick "NOTICE $nick :Connection refused while querying server."      break    } elseif {[string match "HOSTNOTFOUND*" $line]} {      putquick "NOTICE $nick :Host not found."      break    } elseif {[string match "TIMEOUT*" $line]} {      putquick "NOTICE $nick :Timeout while querying server."      break    }    putquick "PRIVMSG $chan :$line"    }}# check for valid charsproc qstat:input_check {text} {  if {[regexp \[^\[:alnum:\]_\.\:\] $text]} { return 1 }  if {[string match "0*" $text]} { return 1 }  return 0}putlog "Qstat4Eggdrop version $qversion: Loaded!"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5711">FuE-</a> — Fri Mar 11, 2005 8:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
