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

	<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-11-07T14:46:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-11-07T14:46:17-04:00</updated>

		<published>2002-11-07T14:46:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12926#p12926</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12926#p12926"/>
		<title type="html"><![CDATA[bind flud]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12926#p12926"><![CDATA[
I've figured out my question <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Nov 07, 2002 2:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-11-02T09:23:24-04:00</updated>

		<published>2002-11-02T09:23:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12716#p12716</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12716#p12716"/>
		<title type="html"><![CDATA[bind flud]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12716#p12716"><![CDATA[
thx but i prefer my code <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><div class="codebox"><p>Code: </p><pre><code>bind flud - pub chanfludproc chanflud {nick uhost handle pub chan} {if {[matchattr $nick mo|mo $chan] || [isop $nick $chan] || [isvoice $nick $chan] || [matchattr $nick o|o $chan] || ([string tolower $nick] == "someexemptnick")} {return 1}putserv "KICK $chan $nick :public flood detected!"}</code></pre></div>it works! It doesn't kick for public msg flood channel ops/channel voices even if they don't exist in bot userfile <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>cheers<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Sat Nov 02, 2002 9:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-11-01T14:40:53-04:00</updated>

		<published>2002-11-01T14:40:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12694#p12694</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12694#p12694"/>
		<title type="html"><![CDATA[bind flud]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12694#p12694"><![CDATA[
Hi. Quote from the tcl-commands.doc file: "If the proc returns 1, no further action is taken on the flood; if the proc returns 0, the bot will do its normal "punishment" for the flood."<br><br>Instead of checking his flags, why don't you test if he is an user, for this use [validuser $handle] and return 1 at the end. Here is an tcl that I use, it dosen't kick/ban users and channel operators.<br><br>bind flud - * flud_ban <br><br>proc flud_ban {nick host hand type channel {dest ""}} { <br>global botnick reasons<br>set mask "*!*@[lindex [split $host @] 1]" <br>if {$dest == ""} { set dest $botnick; return 0 } <br>if {[isop $nick $channel]} { return 1 } <br>if {[validchan $channel] &amp;&amp; [botisop $channel]} { <br>putserv "KICK $channel $nick :Channel flood." <br>putserv "MODE $channel +b $mask"<br>return 1 } <br>}<br><br>If you would like to make it not kick/ban the voiced users just add this line in the script: if {[isvoice $nick $channel]} { return 1 }<br><br>Hope this helps.<br><br>PS: I guess the problem with your's is that you haven't set the destination of the flud, to channel or to the bot. Use in your proc this: {nick host hand type channel {dest ""}} {<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Nov 01, 2002 2:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-11-01T13:31:51-04:00</updated>

		<published>2002-11-01T13:31:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12692#p12692</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12692#p12692"/>
		<title type="html"><![CDATA[bind flud]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12692#p12692"><![CDATA[
lo, I wanted to write a simple tcl which would kick for public flood, based on .chanset #channel flood-chan settings, 'cause without tcl bot kicks channel ops who are not bot users. <br><div class="codebox"><p>Code: </p><pre><code>bind flud - pub chanfludproc chanflud {nick uhost handle pub chan} {if {[matchattr $nick mo|mo $chan] || [isop $nick $chan] || [isvoice $nick $chan] || [matchattr $nick o|o $chan] || ([string tolower $nick] == "someexemptnick")} {return 0}putserv "KICK $chan $nick :public flood detected!"return 1}</code></pre></div>return 0 in this case causes that bot acts normally so kicks with reason "flood" even if user is channel op (but doesn't exist in bot userfile) I want it to do nothing if user is channel voice or op. <div class="codebox"><p>Code: </p><pre><code>if {(![matchattr $nick mo|mo $chan]) &amp;&amp; (![isop $nick $chan]) &amp;&amp; (![isvoice $nick $chan]) &amp;&amp; (![matchattr $nick o|o $chan]) &amp;&amp; ([string tolower $nick] != "exempt")} {...proc </code></pre></div> doesn't work neither.<br>Any ideas?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Fri Nov 01, 2002 1:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
