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

	<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>2018-08-23T16:21:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CP1832]]></name></author>
		<updated>2018-08-23T16:21:10-04:00</updated>

		<published>2018-08-23T16:21:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107005#p107005</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107005#p107005"/>
		<title type="html"><![CDATA[Help with blackmeteo]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107005#p107005"><![CDATA[
I'm aware that the code has a flood control mechanism, I just wanna add my bot's flood control mechanism, which takes into account every script on the bot. But in order to do that, I must call the <a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=1315" class="postlink">script I use</a> from within each script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12450">CP1832</a> — Thu Aug 23, 2018 4:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2018-08-23T01:45:34-04:00</updated>

		<published>2018-08-23T01:45:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107003#p107003</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107003#p107003"/>
		<title type="html"><![CDATA[Help with blackmeteo]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107003#p107003"><![CDATA[
Why do some people still try to make their code unintelligible when with a few commands (actually is just one command with two different arguments) that anyone can easily find on a Google search (if uses the right *cough* info *cough*) can get the exact code with variables and all that?<br><br>Anyway... I looked at the code and I can confirm it has some sort of flood control mechanism inside:<div class="codebox"><p>Code: </p><pre><code>set flood_protect [blackmeteo:flood:prot $chan $host]if {$flood_protect == "1"} {set get_seconds [blackmeteo:get:flood_time $host $chan]blackmeteo:say $nick $chan [list $get_seconds "6" $nick] 0return}</code></pre></div>The <em class="text-italics">blackmeteo:flood:prot</em> returns 1 if the user is listed, else the <em class="text-italics">blackmeteo:get:flood_time</em> (another anti-flood mechanism) kicks in. This returns a number of seconds that are then used to say something into the channel via <em class="text-italics">blackmeteo:say</em> function. It's too early morning for me to try to follow his logic. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><br><br>PS: @BLaCkShaDoW<div class="codebox"><p>Code: </p><pre><code>set number [scan $meteo(flood_prot) %\[^:\]]set timer [scan $meteo(flood_prot) %*\[^:\]:%s]</code></pre></div>really? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> Here's a cleaner version:<div class="codebox"><p>Code: </p><pre><code>scan $meteo(flood_prot) {%d:%d} number timer</code></pre></div>and from here you can take things one step further like:<div class="codebox"><p>Code: </p><pre><code>if {[scan $meteo(flood_prot) {%d:%d} number timer] != 2} {set number 4set timer 10}</code></pre></div>to enforce two default values in case user input something wrong, like instead of a number put a letter or whatever.<br><br>Other two ways to get the two numbers out of meteo(flood_prot) variable:<div class="codebox"><p>Code: </p><pre><code>foreach {number timer} [split $meteo(flood_prot) :] { break }lassign [split $meteo(flood_prot) :] number timer</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Aug 23, 2018 1:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ezekiel]]></name></author>
		<updated>2018-08-23T00:56:29-04:00</updated>

		<published>2018-08-23T00:56:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107002#p107002</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107002#p107002"/>
		<title type="html"><![CDATA[Help with blackmeteo]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107002#p107002"><![CDATA[
why not try and contact the author of the script?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12473">Ezekiel</a> — Thu Aug 23, 2018 12:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CP1832]]></name></author>
		<updated>2018-08-22T18:22:56-04:00</updated>

		<published>2018-08-22T18:22:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107001#p107001</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107001#p107001"/>
		<title type="html"><![CDATA[Help with blackmeteo]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107001#p107001"><![CDATA[
<blockquote class="uncited"><div>everything that needs to be changed is uncoded, so I do not see your need to decode that tcl, if the author released like that..</div></blockquote>I understand, but I wanted to add (as an example) my personal flooding control script, which checks flooding on every script on my eggdrop, and for that I must add a call to the process in the code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12450">CP1832</a> — Wed Aug 22, 2018 6:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ezekiel]]></name></author>
		<updated>2018-08-21T04:17:52-04:00</updated>

		<published>2018-08-21T04:17:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106993#p106993</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106993#p106993"/>
		<title type="html"><![CDATA[Help with blackmeteo]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106993#p106993"><![CDATA[
everything that needs to be changed is uncoded, so I do not see your need to decode that tcl, if the author released like that..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12473">Ezekiel</a> — Tue Aug 21, 2018 4:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CP1832]]></name></author>
		<updated>2018-08-16T14:40:46-04:00</updated>

		<published>2018-08-16T14:40:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106986#p106986</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106986#p106986"/>
		<title type="html"><![CDATA[Help with blackmeteo]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106986#p106986"><![CDATA[
Hi guys:<br><br>Does anyone know how to decode Blackshadow's script? I am trying to make some changes on the code but I can't figure out what encoding was used for this script and how to decode it. I tried an hex decoder but the code is still ununderstable. Does anyone know which encoding is this?<br><br><a href="http://www.tclscripts.net/files/file/6-blackmeteotcl/" class="postlink">Link to file</a>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12450">CP1832</a> — Thu Aug 16, 2018 2:40 pm</p><hr />
]]></content>
	</entry>
	</feed>
