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

	<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>2005-08-25T12:30:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-25T12:30:26-04:00</updated>

		<published>2005-08-25T12:30:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54803#p54803</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54803#p54803"/>
		<title type="html"><![CDATA[Want to add ban to this working script (thx demond)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54803#p54803"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Try to add<div class="codebox"><p>Code: </p><pre><code>putkick [lindex [split $whoisc($n)] 0] $n "please identify or register your nick. 5 min. ban.  Please return after you have registered."</code></pre></div>after the newchanban line and see if it kicks the user out.<br><br>PS: don't double post.</div></blockquote>  Can someone please let me know how I can just ban any/all unregistered nicks which have the word {bot b0t serv sevr}  Thnx</div></blockquote>by using the above script after patching it to check if the nick contains whatever sh*tword you deemed unacceptable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Aug 25, 2005 12:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[b|_ack]]></name></author>
		<updated>2005-08-25T12:14:50-04:00</updated>

		<published>2005-08-25T12:14:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54801#p54801</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54801#p54801"/>
		<title type="html"><![CDATA[Want to add ban to this working script (thx demond)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54801#p54801"><![CDATA[
<blockquote class="uncited"><div>Try to add<div class="codebox"><p>Code: </p><pre><code>putkick [lindex [split $whoisc($n)] 0] $n "please identify or register your nick. 5 min. ban.  Please return after you have registered."</code></pre></div>after the newchanban line and see if it kicks the user out.<br><br>PS: don't double post.</div></blockquote>  Can someone please let me know how I can just ban any/all unregistered nicks which have the word {bot b0t serv sevr}  Thnx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5978">b|_ack</a> — Thu Aug 25, 2005 12:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-08-21T22:17:30-04:00</updated>

		<published>2005-08-21T22:17:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54625#p54625</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54625#p54625"/>
		<title type="html"><![CDATA[Want to add ban to this working script (thx demond)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54625#p54625"><![CDATA[
Try to add<div class="codebox"><p>Code: </p><pre><code>putkick [lindex [split $whoisc($n)] 0] $n "please identify or register your nick. 5 min. ban.  Please return after you have registered."</code></pre></div>after the newchanban line and see if it kicks the user out.<br><br>PS: don't double post.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Aug 21, 2005 10:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mikey2]]></name></author>
		<updated>2005-08-20T19:01:45-04:00</updated>

		<published>2005-08-20T19:01:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54569#p54569</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54569#p54569"/>
		<title type="html"><![CDATA[Want to add ban to this working script (thx demond)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54569#p54569"><![CDATA[
oops...this one doesn't ban at all.  gives pm to user, but no ban onjoin nor with multiple /hops.  Notice you cut out this portion of code:<div class="codebox"><p>Code: </p><pre><code> utimer $banafter(s) [list incr rejoins($n) -1]   if {[incr rejoins($n)] &gt;= $banafter(j)} {    puthelp "MODE $chan +b *!*@[lindex [split $uhost @] 1]" </code></pre></div>is this required? maybe this is the prob.<br><br>Also, I noticed this script is reversing the bans that had already been set in channel from other ops.<br><br>Thanks for your help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6613">mikey2</a> — Sat Aug 20, 2005 7:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-08-20T17:26:33-04:00</updated>

		<published>2005-08-20T17:26:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54565#p54565</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54565#p54565"/>
		<title type="html"><![CDATA[Want to add ban to this working script (thx demond)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54565#p54565"><![CDATA[
Try this:<div class="codebox"><p>Code: </p><pre><code>bind join - * foobind raw - 311 got311 ;# first WHOIS reply bind raw - 307 got307 ;# nick has identified (registered) bind raw - 318 got318 ;# End of /WHOIS list proc foo {n u h c} { global whoisc  puthelp "whois $n" set whoisc($n) "$c *!*@[lindex [split $uhost @] 1]"} proc got311 {f k t} {  set n [lindex [split $t] 1]  set ::whoised($n) 0} proc got307 {f k t} {  set n [lindex [split $t] 1]  incr ::whoised($n) } proc got318 {f k t} { global whoisc set n [lindex [split $t] 1]  if {$::whoised($n) == 0} {   puthelp "privmsg $n :Hello $n and welcome.  You MUST register your nick to join this channel."  if {[info exists whoisc($n)]} {   newchanban [lindex [split $whoisc($n)] 0] [lindex [split $whoisc($n)] 1] unreg "please identify or register your nick. 5 min. ban.  Please return after you have registered." 5  } } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Aug 20, 2005 5:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mikey2]]></name></author>
		<updated>2005-08-20T15:07:11-04:00</updated>

		<published>2005-08-20T15:07:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54562#p54562</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54562#p54562"/>
		<title type="html"><![CDATA[Want to add ban to this working script (thx demond)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54562#p54562"><![CDATA[
Script works, but only if you do a /hop in the channel.  It does not ban when the user initially joins the channel.  That's what I would like it to do.  Here's the code:<div class="codebox"><p>Code: </p><pre><code>bind join - * foo proc foo {n u h c} {    puthelp "whois $n" } bind raw - 311 got311 ;# first WHOIS reply bind raw - 307 got307 ;# nick has identified (registered) bind raw - 318 got318 ;# End of /WHOIS list proc got311 {f k t} {    set n [lindex [split $t] 1]    set ::whoised($n) 0 } proc got307 {f k t} {    set n [lindex [split $t] 1]    incr ::whoised($n) } proc got318 {f k t} {    set n [lindex [split $t] 1]    if {$::whoised($n) == 0} {       puthelp "privmsg $n :Hello $n and welcome.  You MUST register your nick to join this channel."    } }# ban after how many joins in how many seconds? set banafter(j:s) 3:60 bind join - * kick:unreg foreach {banafter(j) banafter(s)} [split $banafter(j:s) :] {break} proc kick:unreg {nick uhost hand chan} {  global banafter whoised rejoins  if {![info exists rejoins([set n [string tolower $nick]])]} { set rejoins($n) 0 }  if {!$whoised($nick)} {   newchanban $chan *!*@[lindex [split $uhost @] 1] unreg "please identify or register your nick. 5 min. ban.  Please return after you have registered." 5  utimer $banafter(s) [list incr rejoins($n) -1]   if {[incr rejoins($n)] &gt;= $banafter(j)} {    puthelp "MODE $chan +b *!*@[lindex [split $uhost @] 1]"   }  } }</code></pre></div>Any ideas???  I appreciate your help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6613">mikey2</a> — Sat Aug 20, 2005 3:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mikey2]]></name></author>
		<updated>2005-08-20T14:31:03-04:00</updated>

		<published>2005-08-20T14:31:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54559#p54559</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54559#p54559"/>
		<title type="html"><![CDATA[Want to add ban to this working script (thx demond)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54559#p54559"><![CDATA[
thanks for all your help... I'll give it a try.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6613">mikey2</a> — Sat Aug 20, 2005 2:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-08-20T00:23:35-04:00</updated>

		<published>2005-08-20T00:23:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54516#p54516</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54516#p54516"/>
		<title type="html"><![CDATA[Want to add ban to this working script (thx demond)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54516#p54516"><![CDATA[
<blockquote class="uncited"><div>Sorry for being such a bonehead, but can you include this in your code, and paste the whole script here so I can see how it's done?<br><br>Thanks.</div></blockquote>Simply replace:<div class="codebox"><p>Code: </p><pre><code>puthelp "kick $chan $nick :please identify or register your nick"</code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>newchanban $chan *!*@[lindex [split $uhost @] 1] unreg "please identify or register your nick" 5</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sat Aug 20, 2005 12:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mikey2]]></name></author>
		<updated>2005-08-19T21:04:16-04:00</updated>

		<published>2005-08-19T21:04:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54509#p54509</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54509#p54509"/>
		<title type="html"><![CDATA[Want to add ban to this working script (thx demond)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54509#p54509"><![CDATA[
Sorry for being such a bonehead, but can you include this in your code, and paste the whole script here so I can see how it's done?<br><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6613">mikey2</a> — Fri Aug 19, 2005 9:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-08-19T20:45:59-04:00</updated>

		<published>2005-08-19T20:45:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54508#p54508</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54508#p54508"/>
		<title type="html"><![CDATA[Want to add ban to this working script (thx demond)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54508#p54508"><![CDATA[
No, the code I gave will kick the first 2 times, and ban on the third join. If you want it to ban for 5 minutes on each join, then add<div class="codebox"><p>Code: </p><pre><code>newchanban $chan *!*@[lindex [split $uhost @] 1] unreg "please identify or register your nick" 5</code></pre></div>instead of the kick command.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Aug 19, 2005 8:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mikey2]]></name></author>
		<updated>2005-08-19T20:05:38-04:00</updated>

		<published>2005-08-19T20:05:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54507#p54507</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54507#p54507"/>
		<title type="html"><![CDATA[Want to add ban to this working script (thx demond)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54507#p54507"><![CDATA[
Thanks for your quick comments Sir_Fz.  And Alchera, can you give me an example of your suggestion?  Sorry I'm a newbie here.<br><br>Question for Sir_Fz:<br><br>Will this code kick/ban for 5 mins. for each join?  As this will prevent auto-join for non-reg. users. So the flow should be as follows:<br><br>1st. join - kick/ban (5 min. ban)<br>2nd. join - kick/ban (5 min. ban)<br>3rd. join - kick/ban (permanent ban)<br><br>I like how you set so I can adjust the j/s (join/sec.).<br><br>Thanks for your help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6613">mikey2</a> — Fri Aug 19, 2005 8:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-08-19T19:36:49-04:00</updated>

		<published>2005-08-19T19:36:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54501#p54501</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54501#p54501"/>
		<title type="html"><![CDATA[Want to add ban to this working script (thx demond)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54501#p54501"><![CDATA[
You could replace the 'puthelp' line in got318 with 'newchanban'<br><blockquote class="uncited"><div>  newchanban &lt;channel&gt; &lt;ban&gt; &lt;creator&gt; &lt;comment&gt; [lifetime] [options]<br>    Description: adds a ban to the ban list of a channel; creator is given<br>      credit for the ban in the ban list. lifetime is specified in<br>      minutes. If lifetime is not specified, ban-time (usually 60) is<br>      used. Setting the lifetime to 0 makes it a permanent ban.</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Fri Aug 19, 2005 7:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-08-19T19:36:59-04:00</updated>

		<published>2005-08-19T19:35:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54500#p54500</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54500#p54500"/>
		<title type="html"><![CDATA[Want to add ban to this working script (thx demond)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54500#p54500"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># ban after how many joins in how many seconds?set banafter(j:s) 3:60bind join - * kick:unregforeach {banafter(j) banafter(s)} [split $banafter(j:s) :] {break}proc kick:unreg {nick uhost hand chan} { global banafter whoised rejoins if {![info exists rejoins([set n [string tolower $nick]])]} { set rejoins($n) 0 } if {!$whoised($nick)} {   puthelp "kick $chan $nick :please identify or register your nick"   utimer $banafter(s) [list incr rejoins($n) -1]  if {[incr rejoins($n)] &gt;= $banafter(j)} {   puthelp "MODE $chan +b *!*@[lindex [split $uhost @] 1]"  } } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Aug 19, 2005 7:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mikey2]]></name></author>
		<updated>2005-08-19T17:53:16-04:00</updated>

		<published>2005-08-19T17:53:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54498#p54498</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54498#p54498"/>
		<title type="html"><![CDATA[Want to add ban to this working script (thx demond)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54498#p54498"><![CDATA[
This bit of code to check if a user's nick is registered works great (a big thanks go out to Demond for all their help:)<br><div class="codebox"><p>Code: </p><pre><code>bind join - * foo proc foo {n u h c} {    puthelp "whois $n" } bind raw - 311 got311 ;# first WHOIS reply bind raw - 307 got307 ;# nick has identified (registered) bind raw - 318 got318 ;# End of /WHOIS list proc got311 {f k t} {    set n [lindex [split $t] 1]    set ::whoised($n) 0 } proc got307 {f k t} {    set n [lindex [split $t] 1]    incr ::whoised($n) } proc got318 {f k t} {    set n [lindex [split $t] 1]    if {$::whoised($n) == 0} {       puthelp "privmsg $n :please identify or register your nick"    } } </code></pre></div>Now, I would like to add a ban to this which would kick/ban a non-reg. user for 5 mins upon joining my channel.  After 3 attempts to join channel with a non-reg. nick the user gets banned permanently.<br><br>Thanks for all your support.  This website rocks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6613">mikey2</a> — Fri Aug 19, 2005 5:53 pm</p><hr />
]]></content>
	</entry>
	</feed>
