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

	<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>2003-11-29T14:08:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Aron]]></name></author>
		<updated>2003-11-29T14:08:54-04:00</updated>

		<published>2003-11-29T14:08:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30859#p30859</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30859#p30859"/>
		<title type="html"><![CDATA[[SOLVED] Channels bans problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30859#p30859"><![CDATA[
I wrote a piece of code to show the bot's banlist, both in the channel as on a website.<br>When people type !banlist in the channel, i want to count the bans, and if its greater than 10, tell them to go to the web page, otherwise just show the bans.<br><br>I cant discover anything wrong with my code, but somehow it just shows the channel bans in the channel, and doesnt give them a link to the URL...<br><br>Here's a piece of code:<br><div class="codebox"><p>Code: </p><pre><code>  set num_bans [llength [banlist $chan]]  if {$num_bans &gt; 10} {    putserv "NOTICE $nick :I have more than 10 bans in my banlist. You can view the banlist at http://blablabla.com. This banlist is updating every 5 minutes."    return 0  }     set num 1      foreach bans [banlist $chan] {        set ban [lindex $bans 0]        set reason [lindex $bans 1]..........................................etc</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2858">Aron</a> — Sat Nov 29, 2003 2:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
