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

	<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>2001-11-19T01:22:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Wcc]]></name></author>
		<updated>2001-11-19T01:22:00-04:00</updated>

		<published>2001-11-19T01:22:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1769#p1769</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1769#p1769"/>
		<title type="html"><![CDATA[I maybe stupid, but still... please help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1769#p1769"><![CDATA[
It may be that if a user doesn't have a hand, ts leaving out a list item.<br><br>Try changing<div class="codebox"><p>Code: </p><pre><code>if {[lsearch $lowtext $w] &gt; -1} { warnnick $nick $uhost $hand [lindex $lowtext [lsearch $lowtext $w]] break }</code></pre></div>to<br><div class="codebox"><p>Code: </p><pre><code>if {[lsearch $lowtext $w] &gt; -1} { warnnick [list $nick $uhost $hand [lindex $lowtext [lsearch $lowtext $w]]]break }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=270">Wcc</a> — Mon Nov 19, 2001 1:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-18T08:27:00-04:00</updated>

		<published>2001-11-18T08:27:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1755#p1755</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1755#p1755"/>
		<title type="html"><![CDATA[I maybe stupid, but still... please help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1755#p1755"><![CDATA[
TCL error [faith_pub]: no value given for parameter "word" to "warnnick"<br><br>Ffs... what the hell does that mean?<p>Statistics: Posted by Guest — Sun Nov 18, 2001 8:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-18T08:25:00-04:00</updated>

		<published>2001-11-18T08:25:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1754#p1754</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1754#p1754"/>
		<title type="html"><![CDATA[I maybe stupid, but still... please help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1754#p1754"><![CDATA[
Cheers <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br>It said can't read channel, no such variable... but don't worry, I can fix that by myself <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br><p>Statistics: Posted by Guest — Sun Nov 18, 2001 8:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-17T17:48:00-04:00</updated>

		<published>2001-11-17T17:48:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1739#p1739</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1739#p1739"/>
		<title type="html"><![CDATA[I maybe stupid, but still... please help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1739#p1739"><![CDATA[
yeah<br>search all the lines with <br><br> if {![botisop]}{return 0} <br><br>and replace them with<br><br>if {![botisop $channel]} {return 0} <br><br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br>&lt;font size=-1&gt;[ This Message was edited by: agoni on 2001-11-17 14:49 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Sat Nov 17, 2001 5:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-17T10:22:00-04:00</updated>

		<published>2001-11-17T10:22:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1725#p1725</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1725#p1725"/>
		<title type="html"><![CDATA[I maybe stupid, but still... please help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1725#p1725"><![CDATA[
It was working fine...<br>Until this: wrong # args, should be "botisop channel" ot something like that...<br>And yes, it sucks when ppl submit bad scripts...<br><br>Cheers<br><br><p>Statistics: Posted by Guest — Sat Nov 17, 2001 10:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-17T10:03:00-04:00</updated>

		<published>2001-11-17T10:03:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1724#p1724</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1724#p1724"/>
		<title type="html"><![CDATA[I maybe stupid, but still... please help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1724#p1724"><![CDATA[
cheers m8s, could u tell me all the procs that need fixing?<br><br>Thx<p>Statistics: Posted by Guest — Sat Nov 17, 2001 10:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Wcc]]></name></author>
		<updated>2001-11-17T01:17:00-04:00</updated>

		<published>2001-11-17T01:17:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1721#p1721</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1721#p1721"/>
		<title type="html"><![CDATA[I maybe stupid, but still... please help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1721#p1721"><![CDATA[
Why can't people test their scripts before releasing them? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=270">Wcc</a> — Sat Nov 17, 2001 1:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2001-11-17T01:07:00-04:00</updated>

		<published>2001-11-17T01:07:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1720#p1720</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1720#p1720"/>
		<title type="html"><![CDATA[I maybe stupid, but still... please help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1720#p1720"><![CDATA[
though that alone won't make it work, as there are many more procs declared with too few arguments.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Sat Nov 17, 2001 1:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Wcc]]></name></author>
		<updated>2001-11-16T19:57:00-04:00</updated>

		<published>2001-11-16T19:57:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1710#p1710</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1710#p1710"/>
		<title type="html"><![CDATA[I maybe stupid, but still... please help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1710#p1710"><![CDATA[
Find this line<div class="codebox"><p>Code: </p><pre><code>proc faith_pub {nick uhost hand text} {</code></pre></div>and make it<div class="codebox"><p>Code: </p><pre><code>proc faith_pub {nick uhost hand chan text} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=270">Wcc</a> — Fri Nov 16, 2001 7:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-16T12:53:00-04:00</updated>

		<published>2001-11-16T12:53:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1706#p1706</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1706#p1706"/>
		<title type="html"><![CDATA[I maybe stupid, but still... please help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1706#p1706"><![CDATA[
Here's the script:<br><br># faith.tcl : by Jay Monk<br># (named after the original irc bot from which<br># this idea was obtained)<br># If you have suggestions or just like this script,<br># please let me know at <a href="mailto:jaym@utdallas.edu">jaym@utdallas.edu</a><br><br># Don't use pico to edit this file!  (It'll<br>#break<br>#up the long<br># lines)<br><br># NOTE: this script uses <br># bind join - %<br># bind nick - %<br># bind topic - *<br># bind pubm - *<br># bind dcc m report<br># If you have other scripts which use these same bindings, you are<br># going to have to change the bindings to something different or<br># not load those other scripts<br><br># If you are cursing up a storm and your bot isn't doing anything,<br># check: 1) do you have a +m flag?  2) is the bot oped?<br># 3) is there a pattern for that word or nick in the appropriate<br># list?<br><br># COMMANDS ADDED WITH THIS SCRIPT<br># all commands require +m except .report which requires +o<br># typing any of the .add* or .del* commands with no args<br># returns the current word/nick list<br># .addword &lt;word&gt;adds word to wordlist<br># .addnick &lt;nick&gt;adds nick to nicklist<br># .delword &lt;word&gt;deletes word from wordlist<br># .delnick &lt;nick&gt;deletes nick from nicklist<br># .reportshows report of this script's activity<br># .savewordssaves words and nicks to a file<br># .clwarnkind of useless, just clears<br>#addresses from warning memory<br># note: words/nicks *must* be in lower case to correctly<br># match.  wildcards * and ? may also be used<br><br># SCRIPT BEHAVIOR<br># Word offenses:<br># +m users: nothing<br>#+f users: private warning, no logging<br># all others: warning on 1st offense, kickban on 2nd<br># Nick offenses:<br>#+m &amp; +f users: private warning, no logging<br>#all others: warning on 1st offense, kickban on 2nd<br># Topic offenses:<br># everyone: topic is changed automatically, private<br>#warning<br><br># If the bot can't find your word file (like the first time you run<br># this script) it will take these words and nicks as a default<br># and make a new word file when you use the .savewords command<br># There's really no need to mess with these 2 variables, changes<br># can be made and saved much better on-line<br># Remember!  all lower case  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br>set badwords {*[censored]* *[censored] [censored]*}<br>set badnicks {god *[censored]* *[censored] [censored]*}<br><br># What file should the words be saved in?<br>set faithwords {faith.words}<br><br># I *highly* suggest not changing anything below this line unless<br># you know what you're doing..<br>#################################################################<br><br>if [info exists faithwords] {<br>if [file exists $faithwords] {<br>  set badwords ""<br>  set badnicks ""<br>  set f [open $faithwords r]<br>  while {[gets $f line] &gt;= 0} {<br>    switch [string index $line 0] {<br>+ {append badwords " " [string trimleft $line +]}<br>= {append badnicks " " [string trimleft $line =]}<br>    }<br>  }<br>  close $f<br>  putlog "Words loaded from file: $faithwords"<br>}<br>} else {<br>set faithwords {faith.words}<br>}<br><br>bind dcc m savewords save_words<br><br>proc save_words {hand idx args} {<br>  global badwords badnicks faithwords<br>  set f [open $faithwords w]<br>  foreach w $badwords {<br>    puts $f "+[string trim $w]"<br>  }<br>  foreach w $badnicks {<br>    puts $f "=[string trim $w]"<br>  }<br>  flush $f<br>  putdcc $idx "Words saved to file: $faithwords"<br>  close $f<br>  return 1<br>}<br><br>bind pubm - * faith_pub<br><br>proc faith_pub {nick uhost hand text} {<br>  if {[matchattr $hand m]} {return 0}<br>  global badwords<br>  set lowtext [string tolower $text]<br>  foreach w $badwords {<br>    if {[lsearch $lowtext $w] &gt; -1} {<br>warnnick $nick $uhost $hand [lindex $lowtext [lsearch $lowtext $w]]<br>break<br>    }<br>  }<br>}<br><br>bind join - % faith_join<br><br>proc faith_join {nick uhost hand} {<br>  global badnicks<br>  set lownick [string tolower $nick]<br>  foreach w $badnicks {<br>    if {[string match $w $lownick]} {<br>      warnnick2 $nick $uhost $hand<br>      break<br>    }<br>  }<br>}<br><br>bind nick - % faith_nick<br><br>proc faith_nick {nick uhost hand newnick} {<br>  global badnicks<br>  set lownewnick [string tolower $newnick]<br>  foreach w $badnicks {<br>    if {[string match $w $lownewnick]} {<br>      warnnick2 $newnick $uhost $hand<br>      break<br>    }<br>  }<br>}<br><br>bind topc - * faith_topic<br><br>proc faith_topic {nick uhost hand topic} {<br>  if {![botisop]} {return 0}<br>  global badwords channel btopic<br>  set lowtopic [string tolower $topic]<br>  foreach w $badwords {<br>    if {[lsearch $lowtopic $w] &gt; -1} {<br>putserv "TOPIC $channel :02Welcome to $channel"<br>        putserv "NOTICE $nick :02Please do not use offensive language in the channel topics"<br>        incr btopic<br>break<br>    }<br>  }<br>}<br><br>proc warnnick {nick uhost hand word} {<br>  if {[matchattr $hand f]} {<br>    putserv "NOTICE $nick :02Please do not say '$word' here"<br>    return 0<br>  }<br>  if {![botisop]} {return 0}<br>  global channel badmouth kword bword<br>  if {[string length $badmouth] &gt; 400} {<br>    set badmouth ""<br>  }<br>  if {[lsearch -exact $badmouth [maskhost $uhost]] &gt; -1} {<br>    regsub {*!} [maskhost $uhost] *!* da_ban<br>    if {[isop $nick]} {<br>putserv "MODE $channel -o+b $nick $da_ban"<br>    } else {<br>putserv "MODE $channel +b $da_ban"<br>    }<br>    putserv "KICK $channel $nick :02Sorry $nick, but you were warned about your language02"<br>    incr kword<br>  } else {<br>    putserv "PRIVMSG $channel :02This is your only warning $nick!  Do not use offensive language on $channel!!"<br>    append badmouth " [maskhost $uhost]"<br>    putserv "NOTICE $nick :02You are being warned for saying: $word"<br>    incr bword<br>  }<br>}<br><br>proc warnnick2 {nick uhost hand} {<br>  if {[matchattr $hand m] || [matchattr $hand f]} {<br>    putserv "NOTICE $nick :02Please do not use offensive nicks here"<br>    return 0<br>  }<br>  if {![botisop]} {return 0}<br>  global channel badmouth knick bnick<br>  if {[string length $badmouth] &gt; 400} {<br>    set badmouth ""<br>  }<br>  if {[lsearch -exact $badmouth [maskhost $uhost]] &gt; -1} {<br>    regsub {*!} [maskhost $uhost] *!* da_ban<br>    if {[isop $nick]} {<br>putserv "MODE $channel -o+b $nick $da_ban"<br>    } else {<br>putserv "MODE $channel +b $da_ban"<br>    }<br>    putserv "KICK $channel $nick :02Sorry, but you were warned about your language02"<br>    incr knick<br>  } else {<br>    putserv "MODE $channel +b $nick"<br>    putserv "KICK $channel $nick :02You may not use that nick on $channel02"<br>    append badmouth " [maskhost $uhost]"<br>    putserv "NOTICE $nick :02Please change nicks and rejoin"<br>    incr bnick<br>  }<br>}<br><br>bind dcc m clwarn clear_warnings<br><br>proc clear_warnings {hand idx args} {<br>  global badmouth<br>  set badmouth ""<br>  putdcc $idx "Warning memory has been cleared."<br>  return 1<br>}<br><br>bind dcc m addword add_word<br><br>proc add_word {hand idx word} {<br>  global badwords<br>if {$word != ""} {<br>  set word [string tolower $word]<br>  foreach w $word {<br>    if {[lsearch -exact $badwords $w] &lt; 0} {<br>      append badwords " $w"<br>      putdcc $idx "Word added: $w"<br>    }<br>  }<br>}<br>  putdcc $idx "BADWORDS: $badwords"<br>  return 1<br>}<br><br>bind dcc m addnick add_nick<br><br>proc add_nick {hand idx nick} {<br>  global badnicks<br>if {$nick != ""} {<br>  set nick [string tolower $nick]<br>  foreach w $nick {<br>    if {[lsearch -exact $badnicks $w] &lt; 0} {<br>      append badnicks " $w"<br>      putdcc $idx "Nick added: $w"<br>    }<br>  }<br>}<br>  putdcc $idx "BADNICKS: $badnicks"<br>  return 1<br>}<br><br>bind dcc m delword del_word<br><br>proc del_word {hand idx word} {<br>  global badwords<br>if {$word != ""} {<br>  set word [lindex $word 0]<br>  set delindex [lsearch -exact $badwords $word]<br>  if {$delindex == -1} {<br>    putdcc $idx "$word was not found in the bad words list"<br>  } else {<br>    putdcc $idx "Word deleted: $word"<br>    set badwords [lreplace $badwords $delindex $delindex]<br>  }<br>}<br>  putdcc $idx "BADWORDS: $badwords"<br>  return 1<br>}<br><br>bind dcc m delnick del_nick<br><br>proc del_nick {hand idx nick} {<br>  global badnicks<br>if {$nick != ""} {<br>  set nick [lindex $nick 0]<br>  set delindex [lsearch -exact $badnicks $nick]<br>  if {$delindex == -1} {<br>    putdcc $idx "$nick was not found in the bad nicks list"<br>  } else {<br>    putdcc $idx "Nick deleted: $nick"<br>    set badnicks [lreplace $badnicks $delindex $delindex]<br>  }<br>}<br>  putdcc $idx "BADNICKS: $badnicks"<br>  return 1<br>}<br>  <br>if {![info exists bnick]} {<br>  set bnick 0<br>  set bword 0<br>  set btopic 0<br>  set kword 0<br>  set knick 0<br>  set badmouth ""<br>}<br><br>bind dcc o report give_rep<br><br>proc give_rep {hand idx args} {<br>  global botnick bnick bword btopic kword knick badmouth<br>  putdcc $idx "[string toupper $botnick]'s ON-LINE REPORT"<br>  putdcc $idx "Word warnings: $bword"<br>  putdcc $idx "Word kicks: $kword"<br>  putdcc $idx "Nick warnings: $bnick"<br>  putdcc $idx "Nick kicks: $knick"<br>  putdcc $idx "Bad topics: $btopic"<br>  putdcc $idx "  "<br>  if {$badmouth == ""} {<br>    putdcc $idx "No offenders in memory"<br>  } else {<br>    putdcc $idx "OFFENDERS([llength $badmouth]):$badmouth"<br>  }<br>  return 1<br>}<br><br><br>And this is the problem: [16:48] TCL error [faith_pub]: called "faith_pub" with too many arguments<br><br>What does that mean? (My English sucks)<br><br>Thank u...<p>Statistics: Posted by Guest — Fri Nov 16, 2001 12:53 pm</p><hr />
]]></content>
	</entry>
	</feed>
