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

	<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-10-27T12:00:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-10-27T12:00:07-04:00</updated>

		<published>2004-10-27T12:00:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42299#p42299</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42299#p42299"/>
		<title type="html"><![CDATA[Number of bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42299#p42299"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> edited for content...and I spanked myself  <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=2706">YooHoo</a> — Wed Oct 27, 2004 12:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-26T16:06:08-04:00</updated>

		<published>2004-10-26T16:06:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42246#p42246</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42246#p42246"/>
		<title type="html"><![CDATA[Number of bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42246#p42246"><![CDATA[
hehe sorry was bit short that day terrible headack usualy i would just ignore it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Oct 26, 2004 4:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-10-25T11:32:56-04:00</updated>

		<published>2004-10-25T11:32:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42223#p42223</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42223#p42223"/>
		<title type="html"><![CDATA[Number of bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42223#p42223"><![CDATA[
np  <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=24">greenbear</a> — Mon Oct 25, 2004 11:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gemeau50]]></name></author>
		<updated>2004-10-25T11:24:07-04:00</updated>

		<published>2004-10-25T11:24:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42222#p42222</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42222#p42222"/>
		<title type="html"><![CDATA[Number of bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42222#p42222"><![CDATA[
<blockquote class="uncited"><div>if that is the case maybe next time u can skip the forum right to the manual</div></blockquote><blockquote class="uncited"><div>Don't you mean, "Thank you YooHoo, Ofloo and gb for taking the time to reply to my post" ?</div></blockquote>Sorry gentlemen if I offended you. Here is my reason for such reply.  gb reply was short and sweet. I did mentioned "other than .bans all".  I was looking for an hidden command or switch. When you have more than 800 bans in the eggdrop banlist, ".bans all" can tie up your computer for a while. 3 hours later Yoohoo replied by referencing the "bans" command and that I should figure out how the use "help". I found his reply useless and out of line.<br><br>As for the help I received from you guys, believe me, it was really appreciated.<br>gemeau50<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5048">gemeau50</a> — Mon Oct 25, 2004 11:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-10-25T11:05:45-04:00</updated>

		<published>2004-10-25T11:05:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42221#p42221</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42221#p42221"/>
		<title type="html"><![CDATA[Re: Number of bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42221#p42221"><![CDATA[
<blockquote class="uncited"><div>Next time you can skip my threads or figure out how to properly read a question.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"></div></blockquote>Don't you mean, "Thank you YooHoo, Ofloo and gb for taking the time to reply to my post" ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Mon Oct 25, 2004 11:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-25T10:08:14-04:00</updated>

		<published>2004-10-25T10:08:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42219#p42219</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42219#p42219"/>
		<title type="html"><![CDATA[Number of bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42219#p42219"><![CDATA[
if that is the case maybe next time u can skip the forum right to the manual<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Oct 25, 2004 10:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gemeau50]]></name></author>
		<updated>2004-10-25T05:43:58-04:00</updated>

		<published>2004-10-25T05:43:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42208#p42208</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42208#p42208"/>
		<title type="html"><![CDATA[Re: Number of bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42208#p42208"><![CDATA[
<blockquote class="uncited"><div>Next time, you can skip the thread, and just <em class="text-italics">read</em> <a href="http://www.egghelp.org/commands/channels.htm#bans" class="postlink">egghelp's command reference</a>, or figure out how to use <strong class="text-strong">.help</strong>  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"></div></blockquote>I didn't ask how to get a listing of bans but how to get the number of bans.  When there are more than 800 bans in the banlist, receiving a listing slows down a computer for a while dishing out a lot of information which are not required.<br><br>Next time you can skip my threads or figure out how to properly read a question.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5048">gemeau50</a> — Mon Oct 25, 2004 5:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-10-24T14:48:39-04:00</updated>

		<published>2004-10-24T14:48:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42191#p42191</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42191#p42191"/>
		<title type="html"><![CDATA[Number of bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42191#p42191"><![CDATA[
incr works just fine, llength returns the exact number of hits, so you get 0 if theres' no bans, incr dont have any problems increasing 0. and why wouldn't i use incr when i want to increase a number ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Sun Oct 24, 2004 2:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-24T14:39:30-04:00</updated>

		<published>2004-10-24T14:39:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42189#p42189</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42189#p42189"/>
		<title type="html"><![CDATA[Number of bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42189#p42189"><![CDATA[
well yeah but that would not return it for a specific channel and also a loop is a thing that is slower then just llength ...  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> but sur ur right u could also do that ..  if u want it for all channels at once ..<br><br>altho i am not sur about incr, but could be tho never used it like that tho ..<br><div class="codebox"><p>Code: </p><pre><code>incr bans [llength [banlist $chan]]</code></pre></div>i am asuming ur dong it because u think .. u need to cause of 0 1 .. <br><br>thing is llength doesn't do that it returns the number of chars starting count with 1 not with 0<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Oct 24, 2004 2:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-10-24T14:14:02-04:00</updated>

		<published>2004-10-24T14:14:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42186#p42186</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42186#p42186"/>
		<title type="html"><![CDATA[Number of bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42186#p42186"><![CDATA[
hehe yea nm that .. i was testing on a bot with no bans set, so i goofed up.<br><br>You could also use a foreach<div class="codebox"><p>Code: </p><pre><code>bind dcc - nban number_bansproc number_bans {hand idx arg} {  set bans [llength [banlist]] foreach chan [channels] {  incr bans [llength [banlist $chan]] } putidx $idx "Number of bans: $bans"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Sun Oct 24, 2004 2:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-24T14:08:35-04:00</updated>

		<published>2004-10-24T14:08:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42184#p42184</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42184#p42184"/>
		<title type="html"><![CDATA[Number of bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42184#p42184"><![CDATA[
hmm it appears i am in the wrong forum i tought this was the tcl scripting forum .. lol sorry<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Oct 24, 2004 2:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-24T14:05:07-04:00</updated>

		<published>2004-10-24T14:05:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42183#p42183</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42183#p42183"/>
		<title type="html"><![CDATA[Number of bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42183#p42183"><![CDATA[
<blockquote class="uncited"><div>that would only return global bans, not channel bans, and you should use 'string length [join banlist]' or it would just return 1 ban</div></blockquote>never use string llength and never had any problems so far .. <br>also i think u should read closer .. <br><br>Treats list as a list and returns a decimal string giving the number of elements in it.<br><br>every ban is a new arg so .. it would return the number if ur talking bytelength yes then ur right but if that where the case then it wouldn't it return the right number either ..<br><blockquote class="uncited"><div>% llength "a b c d e f g"<br>7<br>%</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Oct 24, 2004 2:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-24T14:01:01-04:00</updated>

		<published>2004-10-24T14:01:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42182#p42182</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42182#p42182"/>
		<title type="html"><![CDATA[Number of bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42182#p42182"><![CDATA[
then make it banlist $chan i gues ..<br><div class="codebox"><p>Code: </p><pre><code>bind dcc - nban number_bansproc number_bans {hand idx arg} {  putdcc $idx "[llength [banlist [string map {\\ \\\\ \[ \\\[ \] \\\] \( \\\( \) \\\) \{ \\\{ \} \\\} \" \\\"} [lindex $arg 0]]]]"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Oct 24, 2004 2:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-10-24T14:01:24-04:00</updated>

		<published>2004-10-24T13:58:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42181#p42181</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42181#p42181"/>
		<title type="html"><![CDATA[Number of bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42181#p42181"><![CDATA[
that would only return global bans, not channel bans, and you should use 'string length [join banlist]' or it would just return 1 ban<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Sun Oct 24, 2004 1:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-24T13:50:37-04:00</updated>

		<published>2004-10-24T13:50:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42180#p42180</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42180#p42180"/>
		<title type="html"><![CDATA[Number of bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42180#p42180"><![CDATA[
i think this .. works<div class="codebox"><p>Code: </p><pre><code>bind dcc - nban number_bansproc number_bans {hand idx arg} {  putdcc $idx "[llength [banlist]]"}</code></pre></div>not tested tho ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Oct 24, 2004 1:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
