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

	<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>2008-06-18T02:39:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Danik]]></name></author>
		<updated>2008-06-18T02:39:02-04:00</updated>

		<published>2008-06-18T02:39:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83606#p83606</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83606#p83606"/>
		<title type="html"><![CDATA[auto-ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83606#p83606"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>setudef flag X </code></pre></div>Did you forget to <strong class="text-strong">.chanset #yourchan +X</strong>?</div></blockquote><br>THX ... it work's now<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9992">Danik</a> — Wed Jun 18, 2008 2:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-06-17T21:12:07-04:00</updated>

		<published>2008-06-17T21:12:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83604#p83604</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83604#p83604"/>
		<title type="html"><![CDATA[auto-ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83604#p83604"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>setudef flag X </code></pre></div>Did you forget to <strong class="text-strong">.chanset #yourchan +X</strong>?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Tue Jun 17, 2008 9:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Danik]]></name></author>
		<updated>2008-06-17T16:53:05-04:00</updated>

		<published>2008-06-17T16:53:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83600#p83600</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83600#p83600"/>
		<title type="html"><![CDATA[auto-ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83600#p83600"><![CDATA[
I'm sorry .. but can someone explain how to add bans to this list ?<br>I tried to ban through telnet ( .+ban &lt;nick&gt; &lt;#chan&gt; reason ) but it doesnt work<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9992">Danik</a> — Tue Jun 17, 2008 4:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2006-10-30T03:43:07-04:00</updated>

		<published>2006-10-30T03:43:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67558#p67558</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67558#p67558"/>
		<title type="html"><![CDATA[auto-ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67558#p67558"><![CDATA[
Pointless foreach but anyway you should add a 'break' statement when a match had been found as there is no need to continue matching internal bans with his host as he in theory got banned tough X.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Oct 30, 2006 3:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mavericku]]></name></author>
		<updated>2006-10-29T19:10:42-04:00</updated>

		<published>2006-10-29T19:10:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67543#p67543</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67543#p67543"/>
		<title type="html"><![CDATA[auto-ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67543#p67543"><![CDATA[
Thank you very much... <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=6346">mavericku</a> — Sun Oct 29, 2006 7:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[edu]]></name></author>
		<updated>2006-10-29T17:25:28-04:00</updated>

		<published>2006-10-29T17:25:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67542#p67542</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67542#p67542"/>
		<title type="html"><![CDATA[auto-ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67542#p67542"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>setudef flag Xbind join - * edu:join:Xproc edu:join:X {nickname hostname handle channel} {if {![channel get $channel X]} { return }foreach ban [banlist $channel] {set ban_host [lindex $ban 0]set ban_reason [lindex $ban 1]set ban_by [lindex $ban 5]if {[string match -nocase $ban_host $nickname!$hostname]} {putquick "PRIVMSG X :ban $channel $ban_host 1 75 $ban_reason"}}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8324">edu</a> — Sun Oct 29, 2006 5:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-10-28T17:44:01-04:00</updated>

		<published>2006-10-28T17:44:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67486#p67486</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67486#p67486"/>
		<title type="html"><![CDATA[auto-ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67486#p67486"><![CDATA[
The set should be inside the proc and not outside it (logic).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Oct 28, 2006 5:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mavericku]]></name></author>
		<updated>2006-10-28T12:32:21-04:00</updated>

		<published>2006-10-28T12:32:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67479#p67479</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67479#p67479"/>
		<title type="html"><![CDATA[auto-ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67479#p67479"><![CDATA[
I just figured out that i`m doing something wrong here .. our you guys missunderstood me.<br><br>If the bot has the ban *!*@host.com in his internal banlist for channel #foo<br>and a drone with that host enters #foo i would like it to be banned trough x (the exact ban the bot has in his internal banlist not a new one (there are bans like *monster*!*@* and i don't want it to ban the host..)) <br><br>Advices ... ?<br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6346">mavericku</a> — Sat Oct 28, 2006 12:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mavericku]]></name></author>
		<updated>2006-10-28T10:48:47-04:00</updated>

		<published>2006-10-28T10:48:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67478#p67478</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67478#p67478"/>
		<title type="html"><![CDATA[auto-ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67478#p67478"><![CDATA[
<blockquote class="uncited"><div>$host = ident@host. To split it:<div class="codebox"><p>Code: </p><pre><code>set host *!*@[lindex [split $host @] 1]</code></pre></div>Replacing 1 with 0 will return the ident.</div></blockquote>Sir_Fz<br><br>at first i added your code like this <br><div class="codebox"><p>Code: </p><pre><code>setudef flag joinreban set host *!*@[lindex [split $host @] 1] #with " " and without thembind join - * joinreban proc joinreban {nick host hand chan} {    if {![channel get $chan joinreban]} { return }    if {![isban $host $chan] } { return }    if {![isban $host } { return } {     putserv "PRIVMSG X :ban $chan $host 1 100 banned"   } } </code></pre></div>but it gave me an error ... <br><div class="codebox"><p>Code: </p><pre><code>[04:38:31] (r0b0t): [17:34] script: test -- ::errorInfo: can't read "host": no such variable[04:38:31] (r0b0t): while executing[04:38:31] (r0b0t): "split $host @"[04:38:31] (r0b0t): invoked from within[04:38:31] (r0b0t): "lindex [split $host @] 1"[04:38:31] (r0b0t): invoked from within[04:38:31] (r0b0t): "set host "*!*@[lindex [split $host @] 1]""[04:38:31] (r0b0t): (file "scripts/test.tcl" line 2)[04:38:31] (r0b0t): invoked from within[04:38:31] (r0b0t): "source scripts/test.tcl"</code></pre></div>but then i've changed it like this <br><div class="codebox"><p>Code: </p><pre><code>setudef flag joinreban bind join - * joinreban proc joinreban {nick host hand chan} {    if {![channel get $chan joinreban]} { return }    if {![isban $host $chan] } { return }    if {![isban $host } { return } {     putserv "PRIVMSG X :ban $chan *!*@[lindex [split $host @] 1] 1 100 banned"   } } </code></pre></div>and it's still doesn't work ..<br>:-&lt; ...damn<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6346">mavericku</a> — Sat Oct 28, 2006 10:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-10-27T13:37:09-04:00</updated>

		<published>2006-10-27T13:37:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67456#p67456</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67456#p67456"/>
		<title type="html"><![CDATA[auto-ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67456#p67456"><![CDATA[
$host = ident@host. To split it:<div class="codebox"><p>Code: </p><pre><code>set host *!*@[lindex [split $host @] 1]</code></pre></div>Replacing 1 with 0 will return the ident.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Oct 27, 2006 1:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mavericku]]></name></author>
		<updated>2006-10-27T12:38:41-04:00</updated>

		<published>2006-10-27T12:38:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67454#p67454</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67454#p67454"/>
		<title type="html"><![CDATA[auto-ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67454#p67454"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>(8)  JOIN (stackable)<br>bind join &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt;<br><br>Description: triggered by someone joining the channel. The mask in<br>the bind is matched against "#channel nick!user@host" and can<br>contain wildcards.<br>Module: irc</div></blockquote></div></blockquote><br>first i had $hostname instead of $host .. but it have me this error<div class="codebox"><p>Code: </p><pre><code>[06:59:33] (r0b0t): [19:55] Tcl error [joinreban]: can't read "hostname": no such variable</code></pre></div>after i have changed it in $host .... it doesn't give me nothing .. <br>pfff<br><div class="codebox"><p>Code: </p><pre><code>setudef flag joinreban bind join - * joinreban proc joinreban {nick host hand chan} {    if {![channel get $chan joinreban]} { return }    if {![isban $host $chan] } { return }    if {![isban $host } { return } {     putserv "PRIVMSG X :ban $chan $host 1 100 banned"   } } </code></pre></div>O_O<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6346">mavericku</a> — Fri Oct 27, 2006 12:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-10-27T11:49:34-04:00</updated>

		<published>2006-10-27T11:49:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67452#p67452</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67452#p67452"/>
		<title type="html"><![CDATA[auto-ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67452#p67452"><![CDATA[
<blockquote class="uncited"><div>(8)  JOIN (stackable)<br>bind join &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt;<br><br>Description: triggered by someone joining the channel. The mask in<br>the bind is matched against "#channel nick!user@host" and can<br>contain wildcards.<br>Module: irc</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Oct 27, 2006 11:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mavericku]]></name></author>
		<updated>2006-10-26T21:15:17-04:00</updated>

		<published>2006-10-26T21:15:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67443#p67443</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67443#p67443"/>
		<title type="html"><![CDATA[auto-ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67443#p67443"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>if {[botisop $chan ||  ![channel get $chan joinreban]} { return }</div></blockquote>you need to close the bracket after $chan in the [botisop] cmd. That means if the bot is oped in the chan, it won't msg x anything.</div></blockquote>ok , fixed the bracket but it still doesn't work ... but i think i've got it wrong<br><br> I WANT it to ban the host IF it has it in the internal banlist, i don't think ifisop will be needed .. because the ban will be trough the service bot ..<br><br>so the code will be <div class="codebox"><p>Code: </p><pre><code>setudef flag joinreban bind join -|- joinreban proc joinreban {chan hand nick uhost} {   globan botnick joinread    if {![channel get $chan joinreban]} { return }    if {![isban $hostname $chan] } { return }    if {![isban $hostname] } { return } {     putserv "PRIVMSG X :ban $chan $hostname 1 100 banned"   } } </code></pre></div>but still nothing ... please help me understand this ...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6346">mavericku</a> — Thu Oct 26, 2006 9:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-10-26T14:49:18-04:00</updated>

		<published>2006-10-26T14:49:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67428#p67428</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67428#p67428"/>
		<title type="html"><![CDATA[auto-ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67428#p67428"><![CDATA[
<blockquote class="uncited"><div>if {[botisop $chan ||  ![channel get $chan joinreban]} { return }</div></blockquote>you need to close the bracket after $chan in the [botisop] cmd. That means if the bot is oped in the chan, it won't msg x anything.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Oct 26, 2006 2:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mavericku]]></name></author>
		<updated>2006-10-26T10:33:52-04:00</updated>

		<published>2006-10-26T10:33:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67424#p67424</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67424#p67424"/>
		<title type="html"><![CDATA[auto-ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67424#p67424"><![CDATA[
<blockquote class="uncited"><div>You forgot a {<br><br>Change:<br><div class="codebox"><p>Code: </p><pre><code>proc joinreban {chan hand nick uhost}</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>proc joinreban {chan hand nick uhost} {</code></pre></div></div></blockquote><br>Thank you Tosser^^  the script has loaded without any errors BUT .. it doesn't do nothing.. <br><br>the script is <div class="codebox"><p>Code: </p><pre><code>setudef flag joinreban bind join -|- joinreban proc joinreban {chan hand nick uhost} {  globan botnick joinread    if {[botisop $chan ||  ![channel get $chan joinreban]} { return }    if {![isban $hostname $chan] } { return }    if {![isban $hostname] } { return } {     putserv "PRIVMSG X :ban $chan $hostname 1 100 banned"   } }</code></pre></div><div class="codebox"><p>Code: </p><pre><code>[04:27:18] (r0b0t): [17:23] script: test -- loaded without error.[04:27:43] (Piglet`): .chanset #buc +joinreban[04:27:46] (r0b0t): Successfully set modes { +joinreban } on #buc.</code></pre></div><div class="codebox"><p>Code: </p><pre><code>[04:28:43] *** r0b0t sets mode: +b *!*@ACB2105C.ipt.aol.com[04:28:43] *** [#buc] Banned- piggy`[04:28:43] *** [#buc] You were banned by r0b0t[04:29:15] *** piggy` was kicked by r0b0t (Banned: (mavericku) tocmai te-ai ales de un ban idiãt :))[04:28:51] *** Piglet` sets mode: -o MApN[04:29:04] *** [#buc] Inviting piggy` to channel...[04:29:13] *** piggy` (~mave@ACB2105C.ipt.aol.com) has joined #[04:29:15] *** piggy` was kicked by r0b0t (Banned: (mavericku) tocmai te-ai ales de un ban idiãt :))[04:29:37] *** [#buc] Inviting piggy` to channel...[04:29:44] *** piggy` (~mave@ACB2105C.ipt.aol.com) has joined #[04:29:45] *** piggy` was kicked by r0b0t (Banned: (mavericku) tocmai te-ai ales de un ban idiãt :))</code></pre></div>now it should privmsg X ban that host .. but on bot party it doesn't show the answer from X (added ban to *!*@host at level 100)<br>....<br><br>anymore advices ...?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6346">mavericku</a> — Thu Oct 26, 2006 10:33 am</p><hr />
]]></content>
	</entry>
	</feed>
