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

	<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-01-03T13:54:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SpAwN]]></name></author>
		<updated>2005-01-03T13:54:17-04:00</updated>

		<published>2005-01-03T13:54:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44882#p44882</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44882#p44882"/>
		<title type="html"><![CDATA[Mirc script to tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44882#p44882"><![CDATA[
Ok, thanks for your time  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>I'll try to change the script and see if it works.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5852">SpAwN</a> — Mon Jan 03, 2005 1:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-01-03T13:44:11-04:00</updated>

		<published>2005-01-03T13:44:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44881#p44881</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44881#p44881"/>
		<title type="html"><![CDATA[Mirc script to tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44881#p44881"><![CDATA[
In this case I'd do a timed /who #channel instead of the whois upon join. Anyway, I can easily add a join-flood protection if that's what you want.. The ban is added normaly in the internal channel banlist, not made sticky. If you want a bot to do the check and another to do the banning then use putbot or putallbots. Either search or make yourself one, a channel locker when the channel banslist gets full or something similar.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Jan 03, 2005 1:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpAwN]]></name></author>
		<updated>2005-01-03T07:34:26-04:00</updated>

		<published>2005-01-03T07:34:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44869#p44869</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44869#p44869"/>
		<title type="html"><![CDATA[Mirc script to tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44869#p44869"><![CDATA[
Hi, Thanks, it works perfect indeed!<br><br>But i did remove this part so it only sets the bans:<div class="codebox"><p>Code: </p><pre><code>    if {[botisop $chan]} {       putquick "KICK $chan $nick :$reason" -next     }</code></pre></div>But somehow it is still kicking them out after seting the bans.<br><br>Another problem is, i got a small botnet and the other bots are using this tcl script to, the script spose to run on a leaf bot but it is still sharing.<br>is there a way to make this work only on one bot?<br><br>If i make -shared in channel settings it doesnt share its users files i think.<br>Once again thanks for your time, i really appreciate it  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>EDIT:<br>___________________________________<br>Ok i see why the other bots ban same IP because the script ads IP's as banned in user list and since the bots share the user list they ban the IP's on join<br><br>Is there a way not to add bans with this script?<br><br>The reason why ask for this is that the bot which set the bans shouldnt kick, this way it can set the bans much faster, since we have a channel with 400+ users bot has to do a lot whois onjoin, so if the bot sets the bans and another bot the enforced bans it is better.<br><br>The reason why bans shouldnt be added as (sticky) to users list is that the flooder uses a proxy list and can join with more than 100 clones with different IP's so our ban list gets full, and some other users can use same proxy to join and if its in the user list they can never join the channel anymore.<br><br>I know i ask to much  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5852">SpAwN</a> — Mon Jan 03, 2005 7:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-01-02T13:33:29-04:00</updated>

		<published>2005-01-02T13:33:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44856#p44856</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44856#p44856"/>
		<title type="html"><![CDATA[Mirc script to tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44856#p44856"><![CDATA[
This should do the trick..<div class="codebox"><p>Code: </p><pre><code>set proxy(channel) "#channel"set proxy(servers) {irc.mzima.net irc.choopa.net irc.inet.tele.dk}set proxy(stuff) {"Bad server or whatever!" 1440}bind raw - 312 proxy:checkbind join * "${proxy(channel)} *" proxy:whois# joinproc proxy:whois {nick uhost hand chan} {  if {[isbotnick $nick] || [matchattr $hand of|of]} {    return  }  puthelp "WHOIS $nick"}# rawproc proxy:check {from key txt} {   global proxy  set network [lindex [split $txt] 2]  if {[lsearch $proxy(servers) $network] != -1} {    set nick [lindex [split $txt] 1]    set chan $proxy(channel)    set host [getchanhost $nick $proxy(channel)]    set reason [lindex $proxy(stuff) 0]    set btime [lindex $proxy(stuff) 1]    if {[botisop $chan]} {      putquick "KICK $chan $nick :$reason" -next    }    newchanban $chan *!*@[lindex [split $host @] 1] Proxy $reason $btime  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Jan 02, 2005 1:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpAwN]]></name></author>
		<updated>2005-01-02T11:42:36-04:00</updated>

		<published>2005-01-02T11:42:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44852#p44852</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44852#p44852"/>
		<title type="html"><![CDATA[Mirc script to tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44852#p44852"><![CDATA[
Hi,<br><br>I am totally new to tcl, I can write little bit mirc scripts but I don’t know how to write for tcl.<br><br>Let me explain where I use this script for:<br>We have a lot floods in our channels, flooders use well-known flood script by loading the clones from a proxy list.<br>However there are only 3 irc servers which lets connect proxies.<br><br>I made a script, which does /whois on everyone joining to our channels so this way the script sees where users join from (IRC server)<br>If we get flooded I set this extra mirc client OP so it bans people joining from those servers, if the flood is over I deop the client where the script is on. It sets only the bans and my own client set the enforced bans so it doesn’t kick our regular users from our channel because they are in my friends list.<br><br>This way the flooders don’t even get the change to flood, because they get banned and kicked on their join so there is no time over to flood.<br><br>Since I have new eggdrops I thought I can use this on my bots<br>I did search in the forum and tcl scripts section and I couldn’t find any script, which does this.<br><br>If anyone will take a look for me I really appreciate it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>This is the script:<div class="codebox"><p>Code: </p><pre><code>raw 311:*.*: {   set %channelnick $2  set %channelident $3  set %channelhost $4}raw 312:*irc.mzima.net*: {  ban -ku16000 #channel %channelhost}raw 312:*irc.choopa.net*: {  ban -ku16000 #channel %channelhost}raw 312:*irc.inet.tele.dk*: {  ban -ku16000 #channel %channelhost}on *:join:#channel: {   whois $nick }</code></pre></div>Thanks  <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=5852">SpAwN</a> — Sun Jan 02, 2005 11:42 am</p><hr />
]]></content>
	</entry>
	</feed>
