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

	<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>2011-07-27T16:17:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[No_Miau]]></name></author>
		<updated>2011-07-27T16:17:10-04:00</updated>

		<published>2011-07-27T16:17:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97290#p97290</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97290#p97290"/>
		<title type="html"><![CDATA[Addban Script - mIRC to TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97290#p97290"><![CDATA[
Hi! This is the script on mIRC and i would like get it on TCL:<br><div class="codebox"><p>Code: </p><pre><code>ON *:JOIN:#Channel: {  var %filelistban = addban.txt  var %Tenl = 1  while %Tenl &lt;= $lines(%filelistban) {    var %MascB = $gettok($read -l $+ %Tenl %filelistban,1,32)    if %MascB iswm $address($nick,5) {      set %BaNCompM $remtok($read(%filelistban,$readn),%MascB,1,32)      mode $chan -Q+b %MascB      mode $chan -Q | kick $chan $nick Banned: %BaNCompM      goto fin    }    inc %Tenl  }  :fin}ON *:TEXT:*:#Channel: {if ( $1 == !addban ) &amp;&amp; ( $2 != $null ) {        var %filelistban = addban.txt        .write -iL1 %filelistban $2- | .notice $nick Dirección $2 añadida a la lista de bans :) | savereg En $chan $nick el $date a las $time $1-      }if ( $1 == !remban ) &amp;&amp; ( $2 != $null ) {        var %filelistban = addban.txt        .write -ds $2 %filelistban | .notice $nick Dirección $2 eliminada de la lista de bans :) | savereg En $chan $nick el $date a las $time $1-      }}</code></pre></div>When anybody join on #Channel the Bot read if his mask (like *!*@whatever) is on addban.txt. If this is so, Bot ban him with reason.<br>With !addban mask reason, the Bot add a line on addban.txt and with !remban mask, the bot remove that line <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Thank you a lot and sorry i speak only a bit english  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11740">No_Miau</a> — Wed Jul 27, 2011 4:17 pm</p><hr />
]]></content>
	</entry>
	</feed>
