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 

sysinfo tcl

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
necroslave
Voice


Joined: 13 May 2009
Posts: 9

PostPosted: Sun Jun 14, 2009 7:37 pm    Post subject: sysinfo tcl Reply with quote

So I have added sysinfo tcl to my eggdrop bot and when I type ./sysinfo in shell terminal all i work right ... but when i type !sysinfo in irc, my eggdrop shows the numbers ot terminal colours in irc. what can i do:? thanks beforely ... here a logs:


$ ./sysinfo.pl
Hostname: - OS: NetBSD 4.0/i386 - CPU: Intel Core 2 (Merom) (686-class) (1733.32 MHz) - Processes: 37 - Uptime: 1h 26m - Users: 1 - Load Average: 0.00 - Memory Usage: 39.70MB/255.56MB (15.53%) - Disk Usage: 1.03GB/6.79GB (15.25%)


[02:26:34@15/06/2009] <nt001> ~sysinfo
[02:26:34@15/06/2009] <nt001> Hostname:  - OS: NetBSD 4.0/i386 - CPU: Intel Core 2 (Merom) (686-class) (1733.32 MHz) - Processes: 36 - Uptime: 1h 15m - Users: 1 - Load Average: 0.00 - Memory Usage: 39.93MB/255.56MB (15.62%) - Disk Usage: 1.03GB/6.79GB (15.25%)
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Jun 15, 2009 1:22 pm    Post subject: Reply with quote

If you're not too afraid from modifying code, there's the stripcodes tcl command that can be used to remove ansi-codes among others.
Since I don't know which sysinfo-script you're using, I can't tell you exactly where to add/modify the code, although the change would look something like this:
Code:
puthelp "PRIVMSG $channel :$systeminfo"
##changes into
puthelp "PRIVMSG $channel :[stripcodes a $systeminfo]"

The actual variable names may vary, so the above is just a rough example as to what you should look for, and how to use the stripcodes command..
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases 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