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

	<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>2021-04-25T03:15:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[geek]]></name></author>
		<updated>2021-04-25T03:15:32-04:00</updated>

		<published>2021-04-25T03:15:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109792#p109792</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109792#p109792"/>
		<title type="html"><![CDATA[about bind flud]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109792#p109792"><![CDATA[
ok, thanks CrazyCat<br><br><br>I read <strong class="text-strong"><a href="http://forum.egghelp.org/viewtopic.php?p=88219" class="postlink">this thread</a></strong><br><br>very well explained<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10286">geek</a> — Sun Apr 25, 2021 3:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-04-24T18:05:37-04:00</updated>

		<published>2021-04-24T18:05:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109790#p109790</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109790#p109790"/>
		<title type="html"><![CDATA[about bind flud]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109790#p109790"><![CDATA[
It's normal. You create an anonymous procedure, so variables from the main proc which are not global are unknown from it.<br><br>You'd better create a proc "unlock" and call it from utimer whith the relevant arguments ($chan) to get ride of this trouble<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sat Apr 24, 2021 6:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[geek]]></name></author>
		<updated>2021-04-24T13:20:18-04:00</updated>

		<published>2021-04-24T13:20:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109789#p109789</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109789#p109789"/>
		<title type="html"><![CDATA[about bind flud]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109789#p109789"><![CDATA[
thanks CrazyCat<br><br>your code resolve error 1) but still have error 2) can't read "chan": no such variable<br><br><br>edit:<br><br>it's VERY VERY strange<br><br><br>if I use:<div class="codebox"><p>Code: </p><pre><code> utimer $unlocktime { set islock 0 } utimer $unlocktime [list putquick "MODE $chan -$joinlockmodes"]</code></pre></div><br>works!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10286">geek</a> — Sat Apr 24, 2021 1:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-04-24T12:59:48-04:00</updated>

		<published>2021-04-24T12:59:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109788#p109788</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109788#p109788"/>
		<title type="html"><![CDATA[about bind flud]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109788#p109788"><![CDATA[
You'd better not unset islock and have it global:<div class="codebox"><p>Code: </p><pre><code>set joinlockmodes "i" # eggdrop will unlock the channel after the specified time in seconds you will set belowset unlocktime "60" # set the reason you wantset jreason "test test" set islock 0 bind flud - join joinflood:mytest proc joinflood:mytest {nick uhost hand type chan} {   global joinlockmodes unlocktime jreason botnick islock   if {![botisop $chan] || [matchattr $hand "of|of" $chan]} { return 0 }   if { $islock &lt; 1 } {      putquick "MODE $chan +$joinlockmodes"      set islock 1   }   set banmask "*!*@[lindex [split $uhost @] 1]"   # set banmask "*!*@[lindex [split [maskhost $uhost] "@"] 1]"   putquick "MODE $chan +b $banmask"   # putquick "KICK $chan $nick $jreason"   utimer $unlocktime {      set islock 0      if {[string match *i* [lindex [split [getchanmode $chan]] 0]]} {         [list putquick "MODE $chan -$joinlockmodes"]      }   }   return 1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sat Apr 24, 2021 12:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[geek]]></name></author>
		<updated>2021-04-24T12:40:40-04:00</updated>

		<published>2021-04-24T12:40:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109787#p109787</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109787#p109787"/>
		<title type="html"><![CDATA[about bind flud]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109787#p109787"><![CDATA[
<blockquote class="uncited"><div>Try this<div class="codebox"><p>Code: </p><pre><code>...    set islock 1    if { $islock &lt; 1 } {...</code></pre></div></div></blockquote>this can't work :)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10286">geek</a> — Sat Apr 24, 2021 12:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-04-24T12:04:20-04:00</updated>

		<published>2021-04-24T12:04:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109786#p109786</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109786#p109786"/>
		<title type="html"><![CDATA[about bind flud]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109786#p109786"><![CDATA[
Try this<div class="codebox"><p>Code: </p><pre><code>set joinlockmodes "i" # eggdrop will unlock the channel after the specified time in seconds you will set belowset unlocktime "60" # set the reason you wantset jreason "test test"  bind flud - join joinflood:mytest proc joinflood:mytest {nick uhost hand type chan} {    global joinlockmodes unlocktime jreason botnick    if {![botisop $chan] || [matchattr $hand "of|of" $chan]} { return 0 }    set islock 1    if { $islock &lt; 1 } {        putquick "MODE $chan +$joinlockmodes"    }    set banmask "*!*@[lindex [split $uhost @] 1]"#   set banmask "*!*@[lindex [split [maskhost $uhost] "@"] 1]"    putquick "MODE $chan +b $banmask"#   putquick "KICK $chan $nick $jreason"    utimer $unlocktime {        unset islock        if {[string match *i* [lindex [split [getchanmode $chan]] 0]]} {            putquick "MODE $chan -$joinlockmodes"        }    }     return 1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Sat Apr 24, 2021 12:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[geek]]></name></author>
		<updated>2021-04-24T11:33:50-04:00</updated>

		<published>2021-04-24T11:33:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109784#p109784</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109784#p109784"/>
		<title type="html"><![CDATA[about bind flud]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109784#p109784"><![CDATA[
I write this:<br><div class="codebox"><p>Code: </p><pre><code>set joinlockmodes "i" # eggdrop will unlock the channel after the specified time in seconds you will set belowset unlocktime "60" # set the reason you wantset jreason "test test"  bind flud - join joinflood:mytest proc joinflood:mytest {nick uhost hand type chan {islock 0}} {    global joinlockmodes unlocktime jreason botnick    if {![botisop $chan] || [matchattr $hand "of|of" $chan]} { return 0 }    if { $islock &lt; 1 } {        putquick "MODE $chan +$joinlockmodes"        set islock 1    }    set banmask "*!*@[lindex [split $uhost @] 1]"#   set banmask "*!*@[lindex [split [maskhost $uhost] "@"] 1]"    putquick "MODE $chan +b $banmask"#   putquick "KICK $chan $nick $jreason"    utimer $unlocktime {        unset islock        if {[string match *i* [lindex [split [getchanmode $chan]] 0]]} {            [list putquick "MODE $chan -$joinlockmodes"]        }    }     return 1}</code></pre></div><br>lock works fine but I got two errors when it try to execute utimer:<br>1)    Tcl error in script for 'timer':      can't unset "islock": no such variable<br>2)    Tcl error in script for 'timer':      can't read "chan": no such variable<br><br><br>how can i fix it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10286">geek</a> — Sat Apr 24, 2021 11:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2021-04-24T08:37:14-04:00</updated>

		<published>2021-04-24T08:37:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109782#p109782</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109782#p109782"/>
		<title type="html"><![CDATA[Re: about bind flud]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109782#p109782"><![CDATA[
<blockquote class="uncited"><div>...<br>what is the normal punishment? <br>...</div></blockquote>I think it is kick only.<br><br>As to whether even that is on or off - and if on, the config -  do:<br>.chaninfo #channel<br>in the partyline and see the flood settings at the bottom of the info returned.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Apr 24, 2021 8:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[geek]]></name></author>
		<updated>2021-04-24T07:18:10-04:00</updated>

		<published>2021-04-24T07:18:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109781#p109781</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109781#p109781"/>
		<title type="html"><![CDATA[about bind flud]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109781#p109781"><![CDATA[
thanks @ComputerTech<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10286">geek</a> — Sat Apr 24, 2021 7:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-04-24T03:56:46-04:00</updated>

		<published>2021-04-24T03:56:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109779#p109779</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109779#p109779"/>
		<title type="html"><![CDATA[about bind flud]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109779#p109779"><![CDATA[
Yeah, you need return 1 to prevent the "normal punishments"<br><br>Read more on bind flud here<br> <a href="https://docs.eggheads.org/mainDocs/tcl-commands.html" class="postlink">https://docs.eggheads.org/mainDocs/tcl-commands.html</a><br><div class="codebox"><p>Code: </p><pre><code>bind FLUD - join jo:inproc jo:in {nick host hand type chan} {  if {![botisop $chan] || [matchattr $hand ofmn|ofmn]} {return}      set banmask "*!*@[lindex [split $host @] 1]"         newchanban $chan $banmask $::botnick flood            putquick "KICK $chan $nick flood"            putquick "MODE $chan +i"                   utimer 90 [list putquick "MODE $chan -i"]            return 1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Sat Apr 24, 2021 3:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[geek]]></name></author>
		<updated>2021-04-24T03:42:19-04:00</updated>

		<published>2021-04-24T03:42:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109778#p109778</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109778#p109778"/>
		<title type="html"><![CDATA[about bind flud]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109778#p109778"><![CDATA[
I read the documentation about this kind of bind<br><br><br>I have two questions:<br><br>1) <em class="text-italics">"if the proc returns 0, the bot will do its normal punishment for the flood"</em><br>what is the normal punishment? ban+kick maybe?<br><br>2) I would like add an additional behavior to normal punishment, I want set the channel +i<br>how can I write this tcl?<br><br>I think something like:<div class="codebox"><p>Code: </p><pre><code>bind flud - join mytestproc mytest {nick uhost hand type chan} {if {![botisop $chan] || [matchattr $hand "of|of" $chan]} { return 0 }#set banmask "*!*@[lindex [split $uhost @] 1]"#newchanban $chan $banmask $botnick flood#putquick "KICK $chan $nick flood"putquick "MODE $chan +i"utimer 90 [list putquick "MODE $chan -i"]  return 0}</code></pre></div>it's correct?<br>and with this code the channel is set +i every time for every bad user in flood? or only once?<br>and if I want to overwrite eggdrop default behavior, can I uncomment ban and kick line, and set return 1? right?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10286">geek</a> — Sat Apr 24, 2021 3:42 am</p><hr />
]]></content>
	</entry>
	</feed>
