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

	<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>2002-01-07T22:23:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-01-07T22:23:00-04:00</updated>

		<published>2002-01-07T22:23:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3582#p3582</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3582#p3582"/>
		<title type="html"><![CDATA[Bytes Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3582#p3582"><![CDATA[
The problems with only one line being sent to the server is a feature of eggdrop. It is designed, so that the same message doesn't need to be sent twice.<br><br>You can disable this, by correctly reading your config files.<br><br>As for the conversion script.<br><br>This is an example. Send it a intiger, and it will spit out a string.<br><div class="codebox"><p>Code: </p><pre><code>proc getbytes {int} {  set bit [list "bytes" "KB" "MB" "GB"]  set i 0  set int [expr $int + 0.0]  while {$int &gt;= 1024} {    incr i    set int [expr $int / 1024]  }  set ret "${int} [lindex $bit $i][expr ${int}&gt;1?"'s":""]"}</code></pre></div>EG<blockquote class="uncited"><div>%  getbytes 1025<br>1.0009765625 KB's<br>% getbytes 1024<br>1 KB<br>% getbytes 1048576<br>1.0 MB<br>% getbytes 1263425<br>1.2048959732 MB's</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Jan 07, 2002 10:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-07T21:11:00-04:00</updated>

		<published>2002-01-07T21:11:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3578#p3578</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3578#p3578"/>
		<title type="html"><![CDATA[Bytes Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3578#p3578"><![CDATA[
Is there a script that converts bytes into kb then into mb if its &gt; 999kb and so on like mIRC's $bytes()?<br><br>also if the line is already been sent to the server a line with the same words in the same proc will not show up<br><br>as if you had <br><br>putserv "PRIVMSG $chan :goat"<br>putserv "PRIVMSG $chan :goat"<br><br>it will only show one<br><br>&lt;font size=-1&gt;[ This Message was edited by: tclsh on 2002-01-07 18:29 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Mon Jan 07, 2002 9:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
