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

	<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-07-27T14:23:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Merk0r]]></name></author>
		<updated>2005-07-27T14:23:27-04:00</updated>

		<published>2005-07-27T14:23:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53382#p53382</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53382#p53382"/>
		<title type="html"><![CDATA[swproc error in tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53382#p53382"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set banreason "Badword was detected in your text"set bantime "15"set badwords {"badword""badword1""badword2""badword3""etc"} bind pubm - * pub:badwordproc pub:badword {nick host hand chan text} {  global badwords banreason bantime  if {![matchattr $hand nmo|nmof]} {     foreach badword $badwords {       if {[string match *$badword* $text]} {         putserv "KICK $chan $nick :You are not allowed to say $badword"         newchanban $chan *![string map ~ * $host] BadWord $banreason $bantime none       }     }   } } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6526">Merk0r</a> — Wed Jul 27, 2005 2:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dizzle]]></name></author>
		<updated>2005-07-27T14:15:31-04:00</updated>

		<published>2005-07-27T14:15:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53381#p53381</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53381#p53381"/>
		<title type="html"><![CDATA[swproc error in tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53381#p53381"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set banreason "Used a badword"set badwords { "badword" "badword1" "badword2" "badword3" "etc" }   bind pubm - * pub:badword proc pub:badword {nick host hand chan text} {   global badwords banreason  if {![matchattr $hand nmo|nmof]} {      foreach badword $badwords {        if {[string match *$badword* $text]} {          putserv "KICK $chan $nick :You are not allowed to say $badword"         set ban *!*[string tolower [string range $uhost [string first @ $uhost] end]]          newchanban $chan $ban BadWord $banreason 15        }      }    }  } </code></pre></div>That with a channelban, its ban like *!*@user.domain.com<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6156">Dizzle</a> — Wed Jul 27, 2005 2:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Merk0r]]></name></author>
		<updated>2005-07-27T12:36:09-04:00</updated>

		<published>2005-07-27T12:36:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53379#p53379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53379#p53379"/>
		<title type="html"><![CDATA[swproc error in tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53379#p53379"><![CDATA[
That's all wrong.<br><div class="codebox"><p>Code: </p><pre><code>set badwords {"badword""badword1""badword2""badword3""etc"} bind pubm - * pub:badwordproc pub:badword {nick host hand chan text} {  global badwords  if {![matchattr $hand nmo|nmof]} {     foreach badword $badwords {       if {[string match *$badword* $text]} {         putserv "KICK $chan $nick :You are not allowed to say $badword"         break       }     }   } } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6526">Merk0r</a> — Wed Jul 27, 2005 12:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nucleus]]></name></author>
		<updated>2005-07-26T17:11:59-04:00</updated>

		<published>2005-07-26T17:11:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53349#p53349</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53349#p53349"/>
		<title type="html"><![CDATA[swproc error in tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53349#p53349"><![CDATA[
ban (channel ban) and then kick. Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5171">Nucleus</a> — Tue Jul 26, 2005 5:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-07-26T17:06:37-04:00</updated>

		<published>2005-07-26T17:06:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53347#p53347</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53347#p53347"/>
		<title type="html"><![CDATA[swproc error in tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53347#p53347"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set badwords { "badword""badword1""badword2""badword3""etc"} bind pub - * pub:badwordproc pub:badword {nick host hand chan text} {  if {![matchattr $hand nmo|nmof]} {    if {[string match "*$badwords*" $text]} {      set badword $text      putserv "KICK $chan $nick $badword is a badword"    }  }}</code></pre></div>Try that. Set badwords to the badwords you want. If a badword is detected, the person is kicked from the channel. <br><br>Tell me what you want in it, kick and then ban the user. Just ask me <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=6300">r0t3n</a> — Tue Jul 26, 2005 5:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nucleus]]></name></author>
		<updated>2005-07-26T16:05:19-04:00</updated>

		<published>2005-07-26T16:05:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53345#p53345</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53345#p53345"/>
		<title type="html"><![CDATA[swproc error in tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53345#p53345"><![CDATA[
i have no idea. Any suggestions on fixing it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5171">Nucleus</a> — Tue Jul 26, 2005 4:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-07-26T15:59:11-04:00</updated>

		<published>2005-07-26T15:59:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53343#p53343</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53343#p53343"/>
		<title type="html"><![CDATA[swproc error in tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53343#p53343"><![CDATA[
the proc 'swproc' does not exist maybe <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">. And why so many string match -nocase's <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=6300">r0t3n</a> — Tue Jul 26, 2005 3:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nucleus]]></name></author>
		<updated>2005-07-26T15:54:52-04:00</updated>

		<published>2005-07-26T15:54:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53342#p53342</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53342#p53342"/>
		<title type="html"><![CDATA[swproc error in tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53342#p53342"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm - "*badword1*" swprocbind pubm - "*badword2*" swprocbind pubm - "*badword3*" swprocbind pubm - "*badword4*" swproc set swdura 600set swkick "Swearing"######## CODE - DO NOT TOUCH ########bind ctcp - ACTION ctcp:badword proc ctcp:badword {nick uhost hand chan keyword text} {  if {[string match -nocase *badword* $text] || [string match -nocase *badword* $text] || [string match -nocase *badword* $text] || [string match -nocase *badword* $text] || [string match -nocase *badword* $text] || [string match -nocase *badword* $text] || [string match -nocase *badword* $text] || [string match -nocase *badword* $text] || [string match -nocase *badword* $text] || [string match -nocase *badword* $text] || [string match -nocase *badword* $text]} {   swproc $nick $uhost $hand $chan $text  } }putlog "=====&gt;&gt; Swearing Protection Loaded"</code></pre></div><br>This script gives me this error in the partyline.<br><div class="codebox"><p>Code: </p><pre><code>[22:16] Tcl error [swproc]: invalid command name "swproc"[22:23] Tcl error [swproc]: invalid command name "swproc"[22:24] Tcl error [swproc]: invalid command name "swproc"</code></pre></div>Whats wrong with it? How do i fix it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5171">Nucleus</a> — Tue Jul 26, 2005 3:54 pm</p><hr />
]]></content>
	</entry>
	</feed>
