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

	<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-07-23T18:02:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-23T18:02:10-04:00</updated>

		<published>2003-07-23T18:02:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23867#p23867</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23867#p23867"/>
		<title type="html"><![CDATA[Help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23867#p23867"><![CDATA[
thanx "* *\\~*@*" worked <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jul 23, 2003 6:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-23T09:29:29-04:00</updated>

		<published>2003-07-23T09:29:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23846#p23846</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23846#p23846"/>
		<title type="html"><![CDATA[Help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23846#p23846"><![CDATA[
\\~<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Jul 23, 2003 9:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-23T07:36:27-04:00</updated>

		<published>2003-07-23T07:36:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23844#p23844</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23844#p23844"/>
		<title type="html"><![CDATA[Help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23844#p23844"><![CDATA[
<blockquote class="uncited"><div>~  matches 1 or more space characters (can be used for whitespace between words)</div></blockquote>ok so it should be "* *\~\*@*" or what ??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jul 23, 2003 7:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-23T06:38:02-04:00</updated>

		<published>2003-07-23T06:38:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23843#p23843</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23843#p23843"/>
		<title type="html"><![CDATA[Help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23843#p23843"><![CDATA[
<blockquote class="uncited"><div>but are u sure that the "* *~*@*" will <span style="text-decoration:underline">check</span> for only users with "~" in there idents ??</div></blockquote>I'm sure it won't. Read the part about match chars in binds at the bottom of tcl-commands.doc<br>(escape with two backslashes)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Jul 23, 2003 6:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-23T05:22:39-04:00</updated>

		<published>2003-07-23T05:22:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23837#p23837</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23837#p23837"/>
		<title type="html"><![CDATA[Help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23837#p23837"><![CDATA[
ok, I new it was a missin bracket, but i didn't notice it lol, thanx for your good observation <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>but are u sure that the "* *~*@*" will <span style="text-decoration:underline">check</span> for only users with "~" in there idents ??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jul 23, 2003 5:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-23T05:02:32-04:00</updated>

		<published>2003-07-23T05:02:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23836#p23836</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23836#p23836"/>
		<title type="html"><![CDATA[Help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23836#p23836"><![CDATA[
If you'd read your error messages you'd know. (missing close bracket in the string eq-line.)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Jul 23, 2003 5:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-23T04:52:35-04:00</updated>

		<published>2003-07-23T04:52:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23834#p23834</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23834#p23834"/>
		<title type="html"><![CDATA[Help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23834#p23834"><![CDATA[
anybody ? why didn't it work ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jul 23, 2003 4:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-22T15:31:55-04:00</updated>

		<published>2003-07-22T15:31:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23794#p23794</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23794#p23794"/>
		<title type="html"><![CDATA[Help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23794#p23794"><![CDATA[
using:<div class="codebox"><p>Code: </p><pre><code>bind part - "* *~*@*" partchkproc partchk {nick uhost hand chan rsn} {if {[string eq -nocase $chan $rsn} { if {[getchanjoin $nick $chan] &gt;= [expr {[clock seconds]-4}]} {  set ban "*!~*@[lindex [split $uhost @] end]"  newban $ban $::botnick "spammer." 0  } }}</code></pre></div>didn't work, any reasons why ?<br><span style="text-decoration:underline">Note</span>: the user joined and parted with reason "$chan" within 2 or 3 seconds.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jul 22, 2003 3:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-22T07:01:11-04:00</updated>

		<published>2003-07-22T07:01:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23780#p23780</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23780#p23780"/>
		<title type="html"><![CDATA[Help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23780#p23780"><![CDATA[
okay, thanx <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jul 22, 2003 7:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-22T05:49:42-04:00</updated>

		<published>2003-07-22T05:49:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23778#p23778</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23778#p23778"/>
		<title type="html"><![CDATA[Help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23778#p23778"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>[snip]... for more than 7 ...[/snip]</div></blockquote>this will kick the user if he stays for mor than 7secs or it wil ban the uhost if he parts after he join in these 7secs ?</div></blockquote>Sorry about adding misleading comments <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> (I meant "for LESS than 7 seconds").<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Jul 22, 2003 5:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-07-22T03:53:54-04:00</updated>

		<published>2003-07-22T03:53:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23777#p23777</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23777#p23777"/>
		<title type="html"><![CDATA[Help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23777#p23777"><![CDATA[
yes.<br>yes... although the right syntax would be <strong class="text-strong">bind part - "* *~*@*" &lt;procname&gt;</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Tue Jul 22, 2003 3:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-21T15:49:04-04:00</updated>

		<published>2003-07-21T15:49:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23757#p23757</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23757#p23757"/>
		<title type="html"><![CDATA[Help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23757#p23757"><![CDATA[
<blockquote class="uncited"><div>[snip]<br># did this luser stay for more than 7 seconds? <br>      if {[getchanjoin $n $c]&gt;=[expr {[clock seconds]-7}]}<br>[snip]</div></blockquote>this will kick the user if he stays for mor than 7secs or it wil ban the uhost if he parts after he join in these 7secs ?<br><br>also if i do <strong class="text-strong">bind part - "*!~*@*" &lt;proc-name&gt;</strong> then it will check only for users with ~ in their ident ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jul 21, 2003 3:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-22T05:50:22-04:00</updated>

		<published>2003-07-21T10:03:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23747#p23747</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23747#p23747"/>
		<title type="html"><![CDATA[Help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23747#p23747"><![CDATA[
<blockquote class="uncited"><div>what it would be like ??<br>if {[getchanjoin * $chan] &gt;= -7} {.... ??</div></blockquote>No. Not unless your current time is 23:59:53 12/31/1969 and the nick of your parter is '*'. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>Fetch the current time in seconds since 1970 using 'clock seconds' or 'unixtime'.<br><br>Here's some code to get you started:<div class="codebox"><p>Code: </p><pre><code>bind part - "#test *" partchkproc partchk {n u h c a} {# was the part reason == the channel name?if {[string eq -nocase $c $a]} {# did this luser stay for less than 7 seconds?if {[getchanjoin $n $c]&gt;=[expr {[clock seconds]-7}]} {# yup...ban *!*@[lindex [split $u @] end] or whatever}}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Jul 21, 2003 10:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-21T02:14:50-04:00</updated>

		<published>2003-07-21T02:14:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23730#p23730</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23730#p23730"/>
		<title type="html"><![CDATA[Help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23730#p23730"><![CDATA[
what it would be like ??<br>if {[getchanjoin * $chan] &gt;= -7} {.... ??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jul 21, 2003 2:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-20T19:49:27-04:00</updated>

		<published>2003-07-20T19:49:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23727#p23727</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23727#p23727"/>
		<title type="html"><![CDATA[Help with a script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23727#p23727"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>getchanjoin &lt;nickname&gt; &lt;channel&gt;<br>    Returns: timestamp (unixtime format) of when the specified nickname<br>      joined the channel<br>    Module: irc</div></blockquote>how do I use it ? and explain more to me how the time is measured plz.</div></blockquote>Use getchanjoin in the proc triggered by the part bind to find out when the person parting joined... if that time &gt;= (current time - 7) ban the user.<br><br>'unixtime' is the number of seconds since 00:00:00 01/01/1970<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Sun Jul 20, 2003 7:49 pm</p><hr />
]]></content>
	</entry>
	</feed>
