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

	<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>2006-02-14T18:21:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2006-02-14T18:21:51-04:00</updated>

		<published>2006-02-14T18:21:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60430#p60430</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60430#p60430"/>
		<title type="html"><![CDATA[catch users on channel using list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60430#p60430"><![CDATA[
Thanks rt <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=6300">r0t3n</a> — Tue Feb 14, 2006 6:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rt]]></name></author>
		<updated>2006-02-14T15:24:14-04:00</updated>

		<published>2006-02-14T15:24:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60426#p60426</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60426#p60426"/>
		<title type="html"><![CDATA[catch users on channel using list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60426#p60426"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># cal(cal@e-frag.net) script# purpose: bans all users that are in 3 channels or less.# updated: fixed a on start bug + added support to ignore hosts.# to-do: # add a $delete command(just remove the hosts manually in your eggdrop folder hosts.db if nesssesary)# to make sure hosts aren't added twicenamespace eval minchan {          bind JOIN -|-  "*"        [namespace current]::auth    bind RAW  -|-  319        [namespace current]::raw    bind PUB  m    "\$add"    [namespace current]::add    bind PUB  m    "\$delete" [namespace current]::deleteif {![file exists "hosts.db"]} {        set fs [open "hosts.db" w]         puts $fs "Hi, you loaded a script created by cal."          set hostname *![getchanhost $::botnick]        set hostname [lindex [split $hostname @] 1]        puts $fs "$hostname"        close $fs    }  }proc minchan::add {nickname hostname handle channel arguments} {      set hostname [lindex [split $hostname @] 1]     minchan::valid $hostname     if {[string match -nocase $arguments ""]} {          putserv "NOTICE $nickname :Syntax: \$add &lt;hostname&gt;"         return 0    }     set fs [open "hosts.db" a+]      puts $fs "$arguments"     close $fs     putserv "NOTICE $nickname :Done. Added '$arguments' to the hostlist."}proc minchan::delete {nickname hostname handle channel arguments} {      putserv "NOTICE $nickname :It isnt possible to remove host entries at the moment."}proc minchan::valid {arguments} {       global test     set fd [open "hosts.db" r]     set lines [split [read $fd]]     close $fd     set arguments [lindex [split $arguments @] 1]     foreach line $lines {        if {[string match -nocase $line "$arguments"]} {              set test(question) "Yes"       } else {               set test(question) "No"       }    }}proc minchan::gogo { } {      global test       utimer 5 [list unset test(question)]        if {![info exists test(question)]} { return 0 }         if {[string match -nocase $test(question) "Yes"]} {               return 1           } else {             return 0             }}proc minchan::auth {nickname hostname handle channel} {     putquick "WHOIS $nickname"    set hostname [lindex [split $hostname @] 1]    minchan::valid $hostname}proc minchan::raw {server raw arguments} {    global test   set doo [lrange $arguments 2 end]   set nick [lindex $arguments 1]   if {[string match -nocase $nick "Pro"]} { return 0 }    foreach chan [channels] {                if {[onchan [lindex $arguments 1] $chan] &amp;&amp; [llength $doo] &lt; 3 &amp;&amp; [string match -nocase [minchan::gogo] "0"]} {              putquick "KICK $chan $nick :You don't meet certain criteria to be allowed into this channel."             putquick "MODE $chan +b *![getchanhost [lindex $arguments 1]]"             }    }}</code></pre></div><br>There you go, you can use that, I don't mind if you rip my script but it'll just proove a point if you did. Lifes goes on, enjoy  <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=6457">rt</a> — Tue Feb 14, 2006 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-01-26T21:51:54-04:00</updated>

		<published>2006-01-26T21:51:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59771#p59771</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59771#p59771"/>
		<title type="html"><![CDATA[catch users on channel using list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59771#p59771"><![CDATA[
<blockquote class="uncited"><div>... as im crap with raws</div></blockquote>Visit the <a href="http://www.alien.net.au/irc/irc2numerics.html" class="postlink">IRC/2 Numeric List</a> site.<br><blockquote class="uncited"><div>Its because im busy doing other stuff that i asked if someone could make it.</div></blockquote>Do what we all do and make the time to do it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Thu Jan 26, 2006 9:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2006-01-26T12:16:23-04:00</updated>

		<published>2006-01-26T12:16:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59751#p59751</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59751#p59751"/>
		<title type="html"><![CDATA[catch users on channel using list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59751#p59751"><![CDATA[
Metroid i already have made a simular script, but i mucked it up, if you think i can't make this script, think again. Its because im busy doing other stuff that i asked if someone could make it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Thu Jan 26, 2006 12:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-01-26T05:27:23-04:00</updated>

		<published>2006-01-26T05:27:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59741#p59741</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59741#p59741"/>
		<title type="html"><![CDATA[catch users on channel using list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59741#p59741"><![CDATA[
I have the feeling that if someone was so kind to do this that it would have your name above it and that you mysteriously made it all by yourself  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Thu Jan 26, 2006 5:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2006-01-25T13:03:08-04:00</updated>

		<published>2006-01-25T13:03:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59714#p59714</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59714#p59714"/>
		<title type="html"><![CDATA[catch users on channel using list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59714#p59714"><![CDATA[
Ok guys, i have tryied to make a script which onjoin catchs raw 319 to get the channels the user is on. I then did a foreach loop to list the channel to get the ammount of users on each channel, and if they were on 3 or more channels with 100+ users, then the user will be kicked and banned.<br><br>Now, i failed badly, as im crap with raws, and mucked up some variables and its a mess. oh well, enough about my attempt to do it.<br><br>Could anyone here make this script. The user joins, do a raw 319, then for each channel the user is, do a list (raw 322) and catch the ammount of users on each channel. If the user is on 3 or more channels with 100+ users then the user if to be kickbanned from the channel.<br><br>Lots of thanks in advance,<br>Chris <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=6300">r0t3n</a> — Wed Jan 25, 2006 1:03 pm</p><hr />
]]></content>
	</entry>
	</feed>
