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

	<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-15T19:44:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Wcc]]></name></author>
		<updated>2001-11-15T19:44:00-04:00</updated>

		<published>2001-11-15T19:44:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1698#p1698</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1698#p1698"/>
		<title type="html"><![CDATA[wordbk.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1698#p1698"><![CDATA[
its the "set banwords {stuff here}"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=270">Wcc</a> — Thu Nov 15, 2001 7:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-15T11:48:00-04:00</updated>

		<published>2001-11-15T11:48:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1693#p1693</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1693#p1693"/>
		<title type="html"><![CDATA[wordbk.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1693#p1693"><![CDATA[
# WORD TEMPRARY BAN-KICK v0.2<br># eggdrop/tcl script by _Trojan_ (<a href="mailto:trojan@trojan.res.wpi.edu">trojan@trojan.res.wpi.edu</a>)<br>#       inspired by all the lamers that say banned words to be kicked.<br>#<br># This script will automatically bankick someone if they say the banned <br># word, they will be banned for $btime minutes (define below)<br>#<br># how long should they be banned? (mins)<br>set btime 1<br>#<br># bind the command (as many times as you want)<br>set banwords { lesta lestat putrid [censored] peelox xiit ziit xi17 x117 x1i7 x11t xi1t xi1t huara }<br><br>foreach bw $banwords {<br>  bind pubm - "*${bw}*" wordbk<br>  <br>}<br><br>proc wordbk {nick uhost hand arg} {<br>  global channel btime banwords<br>  if {[botisop]} {<br>    set target [finduser ${nick}!${uhost}]<br>    if {$target != "*"} {<br>      if {([matchattr $target n] || [matchattr $target m])} {<br>        return 0<br>      }<br>    }<br>### find out which word they said, so they know not to say it again.<br>    set bword ""<br>    foreach bw $banwords {<br>      if {[string match $bw $arg]} {<br>append bword "${bw}, "<br>      }<br>    }<br>### SOMETHING must have gone wrong... hrmmm...<br>    if {$bword == ""} { putlog bleh ; return 0 }<br>### if the person is already banned, don't add another one, just KICK!<br>### this should only be neccessary when enforce-ban is set to 0<br>    if {[matchban ${nick}!${uhost}]} {<br>      putserv "KICK $channel $nick " you said the following banned word(s): ${bword}buh-bye!"<br>    } else {<br>###   get the ban ready<br>      set banaddr [maskhost ${nick}!${uhost}]<br>###   add the ban<br>      addban $banaddr " you said the following banned word(s): ${bword}buh-bye!"<br>###   in btime minute(s) unban the lamer<br>      timer $btime [putserv "MODE $channel -b $banaddr"]<br>    }<br>    return 0<br>  }<br>  return 0<br>}<br><br>Now, I don't understand what I'm sposed to do! It says bind the cmd etc.<br>What cmd? The bind pubm? I can't get that script working <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":sad:" title="Sad"><p>Statistics: Posted by Guest — Thu Nov 15, 2001 11:48 am</p><hr />
]]></content>
	</entry>
	</feed>
