egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

qstat

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
Cereal-Chiller
Guest





PostPosted: Thu May 16, 2002 4:38 pm    Post subject: Reply with quote

Hi,
After downloading the qstat4egdrop script I understood it was outdated, i've been trying to adapt the script to the new version of qstat (currently 2.4e), my problem is simple (at least is seams). When I run qstat on the console, for example:

$qstat -q3s 193.126.240.139:40030
ADDRESS PLAYERS MAP RESPONSE TIME NAME
193.126.240.139:40030 8/ 8 q3dm6 12 / 0 osp IOL - Quake3 - OSP 1.01 - Clan Arena

I get two lines! the previous version only gave me the lower line, on IRC when i trigger the bot to do the command it only prints the top line! How can I make print all the lines "outputed" by that command?
I know I have to change something in this part of the scripts:


proc q3s {nick host hand chan arg} {
global url pathqstat cc nopub
if {[lsearch -exact $nopub [string tolower $chan]] >= 0} {return 0}
if {$arg == ""} {
putserv "notice $nick :Usage: ${cc}q3 <^BIP Address^B>"
return 0
}
set stat [exec $pathqstat/qstat -q3s $arg]
putserv "PRIVMSG $chan :$stat"
}
Any help would help!
Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber