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

	<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>2002-01-04T21:00:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-04T21:00:00-04:00</updated>

		<published>2002-01-04T21:00:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3463#p3463</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3463#p3463"/>
		<title type="html"><![CDATA[need some help with a script plz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3463#p3463"><![CDATA[
not sure if anyone wants this but if your using this script and want it to ban the person instead of just kicking them heres the code for it... i'm sure theres probally a better way to do it but i'm not that good at this stuff yet  : )<br><br>note: i put comments where i changed or added stuff.. : )<br><br>##############################################<br># Capslock.tcl 0.1 by #egghelp@efnet (KuNgFo0)<br>#<br># Set the next line as the kick msg you want to say<br>set capslock_msg "Please Don't Use Caps In This Room!"<br><br># Set the next line as the minimum length of text to scan<br>set capslock_len 15<br><br># Set the next line as the channels you want to run in<br>set capslock_chans "#channel1 #channel2"<br><br>#note: i added this so u have the choice of #setting it to either kick or to ban the #person<br># Do you want to kick or ban the person? set to 0 to just kick, or 1 to ban them<br>set caps_ban 1<br><br>#note: i added this so u can set how long u #want to ban the person for<br># duration of ban in minutes, set to 0 for a perm ban<br>set caps_time 2<br><br>#******************************************<br>#* Do Not Change Anythang Below Here!!!!! *<br>#******************************************<br><br>bind pubm - * pubm_capslock<br>bind ctcp - ACTION ctcp_capslock<br><br>putlog "*** Capslock.tcl 0.1 by #egghelp@efnet loaded"<br><br>proc testcapslock {arg} {<br> foreach i [string tolower [split $arg ""]] {<br>  if {[string match *$i* "abcdefghijklmnopqrstuvwxyz"]} {<br>   return 1<br>  }<br> }<br> return 0<br>}<br><br>proc pubm_capslock {nick uhost hand chan arg} {<br> global capslock_msg capslock_len capslock_chans botnick caps_ban caps_time<br> if {(([lsearch -exact [string tolower $capslock_chans] [string tolower $chan]] != -1) || ($capslock_chans == "*")) &amp;&amp; (![matchattr $hand b]) &amp;&amp; (![matchattr $hand f|f $chan]) &amp;&amp; ($nick != $botnick) &amp;&amp; ($arg == [string toupper $arg]) &amp;&amp; ([string length $arg] &gt;= $capslock_len) &amp;&amp; ([testcapslock $arg])} {<br>  putserv "KICK $chan $nick :$capslock_msg"<br>#note: i added the next line it checks to see if #u want to kick or ban the person<br>  if { $caps_ban == 1 } {<br>  newchanban $chan [string trimleft [maskhost [getchanhost $nick $chan]] ~] $capslock_msg" $caps_time<br> }<br>}<br>}<br><br>proc ctcp_capslock {nick uhost hand chan keyword arg} {<br> pubm_capslock $nick $uhost $hand $chan $arg<br>}<br><br>that's it just the 2 options and the 1 line of code and i did change the kick/ban msg to say what u have set for the set capslock_msg option <br><br>enjoy hope it helps someone out : )<br>sorry guys for being so long i should have just pasted the stuff i changed : (<br><br>SnOoP<p>Statistics: Posted by Guest — Fri Jan 04, 2002 9:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-21T02:34:00-04:00</updated>

		<published>2001-12-21T02:34:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2988#p2988</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2988#p2988"/>
		<title type="html"><![CDATA[need some help with a script plz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2988#p2988"><![CDATA[
i'm using Capslock.tcl 0.1 by #egghelp@efnet (KuNgFo0)this is what i'd like it to do if it can be done : )<br><br>i want it to be able to set it to kick or ban the person it only kicks the person right now. and i want it so i can set the ban time in the script so any help anyone can give me i'd appreciate it.<br><br>heres the code:<br><br># Set the next line as the kick msg you want to say<br>set capslock_msg "Please Don't Use Caps In This Room!"<br><br># Set the next line as the minimum length of text to scan<br>set capslock_len 15<br><br># Set the next line as the channels you want to run in<br>set capslock_chans ""<br><br>bind pubm - * pubm_capslock<br>bind ctcp - ACTION ctcp_capslock<br><br>putlog "*** Capslock.tcl 0.1 by #egghelp@efnet loaded"<br><br>proc testcapslock {arg} {<br> foreach i [string tolower [split $arg ""]] {<br>  if {[string match *$i* "abcdefghijklmnopqrstuvwxyz"]} {<br>   return 1<br>  }<br> }<br> return 0<br>}<br><br>proc pubm_capslock {nick uhost hand chan arg} {<br> global capslock_msg capslock_len capslock_chans botnick<br> if {(([lsearch -exact [string tolower $capslock_chans] [string tolower $chan]] != -1) || ($capslock_chans == "*")) &amp;&amp; (![matchattr $hand b]) &amp;&amp; (![matchattr $hand f|f $chan]) &amp;&amp; ($nick != $botnick) &amp;&amp; ($arg == [string toupper $arg]) &amp;&amp; ([string length $arg] &gt;= $capslock_len) &amp;&amp; ([testcapslock $arg])} {<br>  putserv "KICK $chan $nick :$capslock_msg"<br> }<br>}<br><br>proc ctcp_capslock {nick uhost hand chan keyword arg} {<br> pubm_capslock $nick $uhost $hand $chan $arg<br>}<br><br>thanks for the help guys : )<br><br>SnOoP<p>Statistics: Posted by Guest — Fri Dec 21, 2001 2:34 am</p><hr />
]]></content>
	</entry>
	</feed>
