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

	<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>2007-12-31T09:42:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[jdart]]></name></author>
		<updated>2007-12-31T09:42:50-04:00</updated>

		<published>2007-12-31T09:42:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79687#p79687</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79687#p79687"/>
		<title type="html"><![CDATA[preventing empty strings (only spaces) in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79687#p79687"><![CDATA[
Many thanks!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9354">jdart</a> — Mon Dec 31, 2007 9:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-12-28T16:35:49-04:00</updated>

		<published>2007-12-28T16:35:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79608#p79608</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79608#p79608"/>
		<title type="html"><![CDATA[preventing empty strings (only spaces) in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79608#p79608"><![CDATA[
use [string trim] on their $text, something like:<br><div class="codebox"><p>Code: </p><pre><code>proc myproc nick uhost hand chan text} {        set text [string trim $text]         if {$text == ""} {                 #punt!         }}</code></pre></div>The general idea anyway.<br><br>Would seem to me to be a flaw in the trivia script itself to even regard empty strings at all.. Might wanna send the author a bug report about it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Fri Dec 28, 2007 4:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jdart]]></name></author>
		<updated>2007-12-28T08:58:09-04:00</updated>

		<published>2007-12-28T08:58:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79600#p79600</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79600#p79600"/>
		<title type="html"><![CDATA[preventing empty strings (only spaces) in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79600#p79600"><![CDATA[
Hello guys,<br><br>..i assume this should be easy for experienced tcl wolfs. :)<br><br>Is it possible to create a tcl snippet that will temporary (say 30 minutes) kickban person from the channel in case he/she post empty string (only spaces). For example user can post "_blah___blah_" but can't post "_" or "___" or "______" etc where _ is space. If user attempts to do so he gets kickbanned from the channel for 30 minutes with message "Please don't post empty strings. ~30 minutes ban."<br><br>Another solution might be that bot puts person on ignore for 30 minutes with the notice "Please don't post empty strings. ~30 minutes timeout."<br><br>This is all related to certain trivia bot problems where posting of empty string might allow cheating.<br><br>Happy Holidays and thanks in advance. :)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9354">jdart</a> — Fri Dec 28, 2007 8:58 am</p><hr />
]]></content>
	</entry>
	</feed>
