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

	<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>2007-01-12T19:15:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2007-01-12T19:15:55-04:00</updated>

		<published>2007-01-12T19:15:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69617#p69617</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69617#p69617"/>
		<title type="html"><![CDATA[Kick specific user on word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69617#p69617"><![CDATA[
I know bumping is annoying, but I was just hoping for someone to reply to my above post.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Fri Jan 12, 2007 7:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2006-12-22T04:10:30-04:00</updated>

		<published>2006-12-22T04:10:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69143#p69143</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69143#p69143"/>
		<title type="html"><![CDATA[Kick specific user on word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69143#p69143"><![CDATA[
Okay, I think I have been looking for too long at the wwrong script, but finally im getting it, and I tested it and it works perfectly, thank you so much for putting up with my n00bness.<br><br>Now, is there anyway of making it react on the added word no matter what place it has in a line?<br>Like:<br>Badword: test<br>User type: this is a test<br><br>Cause now it works only if the badword is the first word.<br>Hope this is not to much to ask.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Fri Dec 22, 2006 4:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-12-21T20:36:07-04:00</updated>

		<published>2006-12-21T20:36:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69132#p69132</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69132#p69132"/>
		<title type="html"><![CDATA[Kick specific user on word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69132#p69132"><![CDATA[
Example<div class="codebox"><p>Code: </p><pre><code>bind pub n .addnick [list addtolist nicklist]proc addtolist {t nick uhost hand chan arg} { upvar $t list if {[lsearch -exact $list [string tolower $arg]] == -1} {  lappend list [string tolower $arg]  puthelp "notice $nick :Successfully added $arg to $t." } {  puthelp "notice $nick :$arg already exists in $t." }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Dec 21, 2006 8:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-12-21T19:37:06-04:00</updated>

		<published>2006-12-21T19:37:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69126#p69126</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69126#p69126"/>
		<title type="html"><![CDATA[Kick specific user on word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69126#p69126"><![CDATA[
There's enough info to figure this out on your own. All you'd be doing is adding the above example of checking the channels from the lists, to your pub and msg proc's from the examples shown by sir_fz.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Thu Dec 21, 2006 7:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2006-12-21T00:09:52-04:00</updated>

		<published>2006-12-21T00:09:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69115#p69115</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69115#p69115"/>
		<title type="html"><![CDATA[Kick specific user on word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69115#p69115"><![CDATA[
I appriciate the help, but I am so lost here, would it be possible that you would make the complete script or is that to much to ask?<br>If so then im sorry for not being able to read me out of this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Thu Dec 21, 2006 12:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-12-18T07:00:14-04:00</updated>

		<published>2006-12-18T07:00:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69031#p69031</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69031#p69031"/>
		<title type="html"><![CDATA[Kick specific user on word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69031#p69031"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># channels we allow public use in:set dreamchans "#mychan #chan2 #etc"# out of the above channels, these will only respond by PRIVMSG:set dreamquiet "#chan2 #etc"bind pub - .dream dreamprocbind msg - .dream dreammsgproc dreammsg {nick uhost hand text} {        if {![onchan $nick]} {return}        dreamproc $nick $uhost $hand privmsg $text        return}proc dreamproc {nick uhost hand chan text} {        if {([lsearch -exact $::dreamchans $chan] == -1) &amp;&amp; ($chan != "privmsg")} {return}        if {([lsearch -exact $::dreamquiet $chan] != -1) || ($chan == "privmsg")} {set chan $nick}</code></pre></div>partial example<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Mon Dec 18, 2006 7:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2006-12-18T04:03:27-04:00</updated>

		<published>2006-12-18T04:03:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69030#p69030</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69030#p69030"/>
		<title type="html"><![CDATA[Kick specific user on word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69030#p69030"><![CDATA[
Does this look somewhat correct?<div class="codebox"><p>Code: </p><pre><code>bind pub n .addnick pub:addnick proc pub:addnick {nick uhost hand chan arg} {set chan [string tolower $chan]}</code></pre></div>Just a part of the script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Mon Dec 18, 2006 4:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-12-17T20:06:57-04:00</updated>

		<published>2006-12-17T20:06:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69022#p69022</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69022#p69022"/>
		<title type="html"><![CDATA[Kick specific user on word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69022#p69022"><![CDATA[
Maybe look at other scripts to see how pub binds are done. And as far as channels, look at how other scripts add channel support (you can make a list of channels in the script, and the use lsearch to see if the current channel matches, or you can use the channel udef flags)..  And as far as the warning stuff, take a look at the badchan script by mc_8 that's in the archive.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sun Dec 17, 2006 8:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2006-12-17T19:12:34-04:00</updated>

		<published>2006-12-17T19:12:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69019#p69019</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69019#p69019"/>
		<title type="html"><![CDATA[Kick specific user on word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69019#p69019"><![CDATA[
Yeah I read that, but I am so lost now, still reading though.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Sun Dec 17, 2006 7:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-12-17T18:28:40-04:00</updated>

		<published>2006-12-17T18:28:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69018#p69018</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69018#p69018"/>
		<title type="html"><![CDATA[Kick specific user on word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69018#p69018"><![CDATA[
<blockquote class="uncited"><div>PUB<br>         bind pub &lt;flags&gt; &lt;command&gt; &lt;proc&gt;<br>         procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;text&gt;<br><br>         Description: used for commands given on a channel. The first word<br>           becomes the command and everything else is the text argument.<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> — Sun Dec 17, 2006 6:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2006-12-17T17:54:39-04:00</updated>

		<published>2006-12-17T17:54:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69014#p69014</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69014#p69014"/>
		<title type="html"><![CDATA[Kick specific user on word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69014#p69014"><![CDATA[
<blockquote class="uncited"><div>"Do it yourself"<br><br>It wouldn't hurt people to try something once in awhile. You can almost exactly copy the DCC code and change some things so it is MSG related.</div></blockquote>Nice way to post to a newb, and I wouldnt be posting in a request section if I knew the stuff mtself, now would I?<br><br>Anyways, after been made fun of, I tried this:<div class="codebox"><p>Code: </p><pre><code>bind pubm - * kickifnickbind pub n .addnick [list addtolist nicklist]bind pub n .addword [list addtolist wordlist]bind pub n .delnick [list delfromlist nicklist]bind pub n .delword [list delfromlist wordlist]</code></pre></div>Ofcourse it didn't work, hence why I asked for help making it, the errors I got is:<div class="codebox"><p>Code: </p><pre><code>Tcl error [addtolist t hand idx arg]: wrong # args: should be "addtolist t hand idx arg"</code></pre></div>And yes errors codes are to most, often selfexplaining, but im getting confused now, so if someone would help me out I would appriciate a good answer.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Sun Dec 17, 2006 5:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-12-17T15:19:27-04:00</updated>

		<published>2006-12-17T15:19:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69011#p69011</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69011#p69011"/>
		<title type="html"><![CDATA[Kick specific user on word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69011#p69011"><![CDATA[
"Do it yourself"<br><br>It wouldn't hurt people to try something once in awhile. You can almost exactly copy the DCC code and change some things so it is MSG related.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Sun Dec 17, 2006 3:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2006-12-17T13:56:32-04:00</updated>

		<published>2006-12-17T13:56:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69007#p69007</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69007#p69007"/>
		<title type="html"><![CDATA[Kick specific user on word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69007#p69007"><![CDATA[
I just tested it, and it works exactly as I wanted it to, now I have a few requests to add to the script if possible:<br><br>Public command for adding word and nick (ofcourse keep the dcc ones)<br>Define channel in which the action should be taken in (via dcc or public command)<br>Maybe a warning before kick, and a second warning, then ban.<br><br>I don't know if this is too much to ask, but I hope it would be possible.<br>Once again, thanks for helping out.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Sun Dec 17, 2006 1:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-12-17T09:13:02-04:00</updated>

		<published>2006-12-17T09:13:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69005#p69005</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69005#p69005"/>
		<title type="html"><![CDATA[Kick specific user on word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69005#p69005"><![CDATA[
I didn't promise to do it but oh well...<div class="codebox"><p>Code: </p><pre><code># wordlist locationset wlloc scripts/wordlist.txt# nicklist locationset nlloc scripts/nicklist.txtbind pubm - * kickifnickbind DCC n addnick [list addtolist nicklist]bind DCC n addword [list addtolist wordlist]bind DCC n delnick [list delfromlist nicklist]bind DCC n delword [list delfromlist wordlist]bind time ?0* savelistsif {[file exists $wlloc]} { set wordlist [split [read [set fwl [open $wlloc]]] \n][close $fwl]} { set wordlist [list] }if {[file exists $nlloc]} { set nicklist [split [read [set fwl [open $wlloc]]] \n][close $fwl]} { set nicklist [list] }proc kickifnick {nick uhost hand chan arg} { global wordlist nicklist if {[lsearch -exact $nicklist [string tolower $nick]] != -1} {  set f 0  foreach w $wordlist {   if {[string match -nocase $w [string tolower $arg]]} {    set f 1    break   }  }  if {$f} {   putserv "kick $chan $nick :Bad word detected..."   putserv "mode $chan +b *!*@[lindex [split $uhost @] 1]"  } }}proc addtolist {t hand idx arg} { upvar $t list if {[lsearch -exact $list [string tolower $arg]] == -1} {  lappend list [string tolower $arg]  putdcc $idx "Successfully added $arg to $t." } {  putdcc $idx "$arg already exists in $t." }}proc delfromlist {t hand idx arg} { upvar $t list if {[set i [lsearch -exact $list [string tolower $arg]]] != -1} {  set list [lreplace $list $i $i]  putdcc $idx "Successfully deleted $arg from $t." } {  putdcc $idx "$arg does not exists in $t." }}proc savelists args { global nicklist wordlist nlloc wlloc set f1 [open $nlloc w] set f2 [open $wlloc w] foreach n $nicklist w $wordlist {  if {$n != ""} { puts $f1 $n }  if {$w != ""} { puts $f2 $n } } close $f1 close $f2}</code></pre></div>To add words/nick use DCC command .addword and .addnick. To remove, use .delword and .delnick.<br><br>Not tested.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Dec 17, 2006 9:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-12-16T16:23:28-04:00</updated>

		<published>2006-12-16T16:23:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68993#p68993</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68993#p68993"/>
		<title type="html"><![CDATA[Kick specific user on word]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68993#p68993"><![CDATA[
I assumed sir_fz was gonna make it. If he says he's not, I'll throw one together for you in a few days.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sat Dec 16, 2006 4:23 pm</p><hr />
]]></content>
	</entry>
	</feed>
