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

	<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-07-05T13:42:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-07-05T13:32:58-04:00</updated>

		<published>2008-07-05T13:32:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83886#p83886</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83886#p83886"/>
		<title type="html"><![CDATA[Spam]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83886#p83886"><![CDATA[
You've got a few excessive } in there...<br>Also, drop the foreach-loop as you're using newban rather than newchanban.<br><br>The reason why the earlier versions gave you trouble, is most likely due to that the channel member list was not ready when the pv_kick2 proc got called, and hence the onchan-test would fail (and the isop/isvoice would always be true).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jul 05, 2008 1:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[asdd1]]></name></author>
		<updated>2008-07-05T13:40:39-04:00</updated>

		<published>2008-07-05T13:21:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83885#p83885</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83885#p83885"/>
		<title type="html"><![CDATA[Spam]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83885#p83885"><![CDATA[
aass<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10036">asdd1</a> — Sat Jul 05, 2008 1:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[asdd1]]></name></author>
		<updated>2008-07-05T13:40:48-04:00</updated>

		<published>2008-07-05T13:02:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83884#p83884</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83884#p83884"/>
		<title type="html"><![CDATA[Spam]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83884#p83884"><![CDATA[
aas<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10036">asdd1</a> — Sat Jul 05, 2008 1:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-07-05T13:01:01-04:00</updated>

		<published>2008-07-05T13:01:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83883#p83883</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83883#p83883"/>
		<title type="html"><![CDATA[Spam]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83883#p83883"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Oki, could you see if your test client shows up when you do .bans ?</div></blockquote><div class="codebox"><p>Code: </p><pre><code>&lt;05.07 19:58:43&gt; &lt;gather-lv&gt; [19:58] #janis# bans &lt;05.07 19:58:43&gt; &lt;gather-lv&gt; Global bans:&lt;05.07 19:58:43&gt; &lt;gather-lv&gt; Channel bans for #Botnet:  (* = not placed by bot)&lt;05.07 19:58:43&gt; &lt;gather-lv&gt; (There are no bans, permanent or otherwise.)&lt;05.07 19:58:43&gt; &lt;gather-lv&gt; Use '.bans all' to see the total list.</code></pre></div></div></blockquote>Ahh, sorry, meant .bans all<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jul 05, 2008 1:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[asdd1]]></name></author>
		<updated>2008-07-05T13:42:23-04:00</updated>

		<published>2008-07-05T12:59:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83882#p83882</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83882#p83882"/>
		<title type="html"><![CDATA[Spam]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83882#p83882"><![CDATA[
asd<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10036">asdd1</a> — Sat Jul 05, 2008 12:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-07-05T12:57:50-04:00</updated>

		<published>2008-07-05T12:57:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83881#p83881</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83881#p83881"/>
		<title type="html"><![CDATA[Spam]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83881#p83881"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div><blockquote class="uncited"><div>Ok, fixed, but my spam isn't detected ;(</div></blockquote>The change to using newchanban requires that you configured your bot to enforce bans on the channel(s) (.chanset #thechannel +enforcebans), and it will not kick or ban people identified as friends (or op if set +dontkickops) or masters/owners. Could you doublecheck these conditionals with your test bench?</div></blockquote>&lt;05.07 19:50:47&gt; &lt;gather-lv&gt; [19:50] #janis# chanset #Botnet +enforcebans <br>&lt;05.07 19:51:01&gt; &lt;gather-lv&gt; [19:51] gather-lv joined #botnet.<br>&lt;05.07 19:51:01&gt; &lt;gather-lv&gt; [19:51] #botnet: mode change '+o gather-lv' by ChanServ!<a href="mailto:service@services.irc.lv">service@services.irc.lv</a><br><br>No result. I have different IPs.</div></blockquote>Oki, could you see if your test client shows up when you do .bans ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jul 05, 2008 12:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-07-05T12:53:53-04:00</updated>

		<published>2008-07-05T12:53:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83880#p83880</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83880#p83880"/>
		<title type="html"><![CDATA[Spam]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83880#p83880"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>asdd1: If you're using the piece of code posted by me, it's meant to replace the pv_kick2 in the script posted by speechles.<br><br>Regardless which you use, you'll need to set the variable bannedwords to a list of "badwords".</div></blockquote>I'm using the speechles variant and it doesnt detect <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">.<br><blockquote class="uncited"><div>Regardless which you use, you'll need to set the variable bannedwords to a list of "badwords".</div></blockquote>What you mean ?</div></blockquote>Hadn't seen your post 'bout "fixed but not detecting" when I replied. But basically, in the top of the script, there is a line saying <strong class="text-strong">set bannedwords "# join channel klik www pussy http"</strong>. This line sets that variable to hold a set of words used to detect spam (badwords).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jul 05, 2008 12:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[asdd1]]></name></author>
		<updated>2008-07-05T13:42:13-04:00</updated>

		<published>2008-07-05T12:51:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83879#p83879</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83879#p83879"/>
		<title type="html"><![CDATA[Spam]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83879#p83879"><![CDATA[
asd<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10036">asdd1</a> — Sat Jul 05, 2008 12:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-07-05T12:50:22-04:00</updated>

		<published>2008-07-05T12:50:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83878#p83878</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83878#p83878"/>
		<title type="html"><![CDATA[Spam]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83878#p83878"><![CDATA[
<blockquote class="uncited"><div>Ok, fixed, but my spam isn't detected ;(</div></blockquote>The change to using newchanban requires that you configured your bot to enforce bans on the channel(s) (.chanset #thechannel +enforcebans), and it will not kick or ban people identified as friends (or op if set +dontkickops) or masters/owners. Could you doublecheck these conditionals with your test bench?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jul 05, 2008 12:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[asdd1]]></name></author>
		<updated>2008-07-05T12:50:22-04:00</updated>

		<published>2008-07-05T12:47:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83877#p83877</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83877#p83877"/>
		<title type="html"><![CDATA[Spam]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83877#p83877"><![CDATA[
<blockquote class="uncited"><div>asdd1: If you're using the piece of code posted by me, it's meant to replace the pv_kick2 in the script posted by speechles.<br><br>Regardless which you use, you'll need to set the variable bannedwords to a list of "badwords".</div></blockquote>I'm using the speechles variant and it doesnt detect <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">.<br><blockquote class="uncited"><div>Regardless which you use, you'll need to set the variable bannedwords to a list of "badwords".</div></blockquote>What you mean ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10036">asdd1</a> — Sat Jul 05, 2008 12:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-07-05T12:46:14-04:00</updated>

		<published>2008-07-05T12:46:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83876#p83876</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83876#p83876"/>
		<title type="html"><![CDATA[Spam]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83876#p83876"><![CDATA[
asdd1: If you're using the piece of code posted by me, it's meant to replace the pv_kick2 in the script posted by speechles.<br><br>Regardless which you use, you'll need to set the variable bannedwords to a list of "badwords".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jul 05, 2008 12:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[asdd1]]></name></author>
		<updated>2008-07-05T12:42:19-04:00</updated>

		<published>2008-07-05T12:42:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83875#p83875</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83875#p83875"/>
		<title type="html"><![CDATA[Spam]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83875#p83875"><![CDATA[
Ok, fixed, but my spam isn't detected ;(<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10036">asdd1</a> — Sat Jul 05, 2008 12:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-07-05T12:39:16-04:00</updated>

		<published>2008-07-05T12:39:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83874#p83874</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83874#p83874"/>
		<title type="html"><![CDATA[Spam]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83874#p83874"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>[19:23] Tcl error in file 'eggdrop.conf':[19:23] invalid command name "}"while executing"}"(file "scripts/Advertise.TCL" line 37)invoked from within"source scripts/Advertise.TCL"(file "eggdrop.conf" line 117)[19:23] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)</code></pre></div><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"></div></blockquote>This is due to this line:<div class="codebox"><p>Code: </p><pre><code> foreach bword [split $bannedwords]</code></pre></div>Change it to this, and you'll fix this error and another one...<div class="codebox"><p>Code: </p><pre><code> foreach bword [split $::bannedwords] {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jul 05, 2008 12:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[asdd1]]></name></author>
		<updated>2008-07-05T13:42:05-04:00</updated>

		<published>2008-07-05T12:33:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83873#p83873</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83873#p83873"/>
		<title type="html"><![CDATA[Spam]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83873#p83873"><![CDATA[
asd<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10036">asdd1</a> — Sat Jul 05, 2008 12:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-07-05T12:46:32-04:00</updated>

		<published>2008-07-05T12:32:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83872#p83872</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83872#p83872"/>
		<title type="html"><![CDATA[Spam]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83872#p83872"><![CDATA[
@Speechles: A hint, add a "break" to the bword foreach-loop when the test evaluates to true, and you don't have to test all the other patterns as you already have a match..<br><br>Or just do it like this:<div class="codebox"><p>Code: </p><pre><code>proc pv_kick2 {nick uhost hand text} { foreach bword [split $::bannedwords] {  if {[string match -nocase "*$bword*" $text]} {   foreach pvchan2 [channels] {    if {[onchan $nick $pvchan2] &amp;&amp; ![isop $nick $pvchan2] &amp;&amp; ![isvoice $nick $pvchan2]} {     set pvmask2 "*!*$uhost"     if {![ischanban $pvmask2 $pvchan2]} {      newchanban $pvchan2 $pvmask "Anti-Spam" "\002Msg Spam 30min. Ban!" "%0d0h30m"     }    }   }   break  } }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jul 05, 2008 12:32 pm</p><hr />
]]></content>
	</entry>
	</feed>
