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

	<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-28T15:27:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[BCyo+8C4]]></name></author>
		<updated>2007-01-28T15:27:43-04:00</updated>

		<published>2007-01-28T15:27:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70018#p70018</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70018#p70018"/>
		<title type="html"><![CDATA[first warn, then kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70018#p70018"><![CDATA[
thanks, that one works better <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8166">BCyo+8C4</a> — Sun Jan 28, 2007 3:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-01-28T10:08:38-04:00</updated>

		<published>2007-01-28T10:08:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70010#p70010</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70010#p70010"/>
		<title type="html"><![CDATA[first warn, then kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70010#p70010"><![CDATA[
Although it is fine as is, you can use [string match] instead.<div class="codebox"><p>Code: </p><pre><code>if {![string match {*[ðóñ]*} $text]} {return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Jan 28, 2007 10:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BCyo+8C4]]></name></author>
		<updated>2007-01-28T09:27:01-04:00</updated>

		<published>2007-01-28T09:27:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70008#p70008</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70008#p70008"/>
		<title type="html"><![CDATA[first warn, then kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70008#p70008"><![CDATA[
i tried it and cpu usage went up 2% <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":-(" title="Sad"> any other ideas to prevent this? isn't there some setting/command/whatever to tell eggdrop to perform one action per line in chat only?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8166">BCyo+8C4</a> — Sun Jan 28, 2007 9:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2007-01-28T08:42:38-04:00</updated>

		<published>2007-01-28T08:42:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70007#p70007</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70007#p70007"/>
		<title type="html"><![CDATA[first warn, then kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70007#p70007"><![CDATA[
I wouldn't count on it. It will work fine.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Sun Jan 28, 2007 8:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BCyo+8C4]]></name></author>
		<updated>2007-01-28T08:41:04-04:00</updated>

		<published>2007-01-28T08:41:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70006#p70006</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70006#p70006"/>
		<title type="html"><![CDATA[first warn, then kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70006#p70006"><![CDATA[
won't that require way more ressources as it has to regexp every single line said on chat? it's not like this is a quite chat, a days log is about 1-2mb and i fear this would kill the bot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8166">BCyo+8C4</a> — Sun Jan 28, 2007 8:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-01-28T08:01:52-04:00</updated>

		<published>2007-01-28T08:01:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70002#p70002</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70002#p70002"/>
		<title type="html"><![CDATA[first warn, then kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70002#p70002"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm - * englishproc english {nick host hand chan text} {   if {([isop $nick $chan]) || ([ishalfop $nick $chan]) || ([isvoice $nick $chan])} {      return 1   }   if {![regexp {[ðóñ]} $text]} {return 0}   if {[throttled $nick,$chan 90]} {      putkick $chan $nick "speak english (autokick)"   } else {      putserv "PRIVMSG $chan :$nick - Please speak english in this channel!"   }}proc throttled {id time} {   global throttled   if {[info exists throttled($id)]} {      return 1   } else {      set throttled($id) [clock sec]      utimer $time [list unset throttled($id)]      return 0   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Jan 28, 2007 8:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BCyo+8C4]]></name></author>
		<updated>2007-01-28T07:49:17-04:00</updated>

		<published>2007-01-28T07:49:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70001#p70001</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70001#p70001"/>
		<title type="html"><![CDATA[first warn, then kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70001#p70001"><![CDATA[
Hi,<br>I got this to work in some parts, but there's still problems.<br>I check for certain russian letters and then warn the users. If the line contains only one of those letters it works fine, but if there's more than one in the line the script warns + kicks.<br><div class="codebox"><p>Code: </p><pre><code>bind pubm - "*ð*"englishbind pubm - "*ó*"englishbind pubm - "*ñ*"englishproc english {nick host hand chan text} {if {([isop $nick $chan]) || ([ishalfop $nick $chan]) || ([isvoice $nick $chan])} {return 1;}if {[throttled $nick,$chan 90]} {putkick $chan $nick "speak english (autokick)"} else {putserv "PRIVMSG $chan :$nick - Please speak english in this channel!"}}proc throttled {id time} {global throttledif {[info exists throttled($id)]} {return 1;} else { set throttled($id) [clock sec] utimer $time [list unset throttled($id)]return 0;}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8166">BCyo+8C4</a> — Sun Jan 28, 2007 7:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-01-27T20:25:01-04:00</updated>

		<published>2007-01-27T20:25:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69992#p69992</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69992#p69992"/>
		<title type="html"><![CDATA[first warn, then kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69992#p69992"><![CDATA[
Perhaps <a href="http://forum.egghelp.org/viewtopic.php?t=9009" class="postlink">this</a> might be useful.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jan 27, 2007 8:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BCyo+8C4]]></name></author>
		<updated>2007-01-27T20:07:59-04:00</updated>

		<published>2007-01-27T20:07:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69991#p69991</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69991#p69991"/>
		<title type="html"><![CDATA[first warn, then kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69991#p69991"><![CDATA[
How would I go if I wanted to first warn a user and if he does it again in less then x seconds kick him?<br>I guess I'd need to create a timer when warning and then check whether such a time exists, but I don't really know how I'd do that. Could someone provide me with an short example please?<br><br>Sorry if this was asked before, couldn't find anything<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8166">BCyo+8C4</a> — Sat Jan 27, 2007 8:07 pm</p><hr />
]]></content>
	</entry>
	</feed>
