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

	<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>2010-10-03T23:53:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[luishfer]]></name></author>
		<updated>2010-10-03T23:53:17-04:00</updated>

		<published>2010-10-03T23:53:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94641#p94641</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94641#p94641"/>
		<title type="html"><![CDATA[script to capture ip addresses and return with command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94641#p94641"><![CDATA[
I have this script in .mrc language<br><div class="codebox"><p>Code: </p><pre><code>on *:TEXT:*189.*:#: {  set %ipset $1-  set %ipnick $nick  set %iptime $time}on *:TEXT:*200.*:#: {  set %ipset $1-  set %ipnick $nick  set %iptime $time}on *:TEXT:*201.*:#: {  set %ipset $1-  set %ipnick $nick  set %iptime $time}on *:TEXT:*187.*:#: {  set %ipset $1-  set %ipnick $nick  set %iptime $time}on *:TEXT:!mix:#: {  set %timer $remove($time,:)  if %timer &gt; 235959 {    set %timer $calc(%timer - 235959)  }  if $calc(%timer2 - %timer) &gt; 15 {    set %timer2 000000  }  if %timer &gt; %timer2 {    set %timer2 $calc(%timer + 15)    if %timer2 &gt; 235959 {      set %timer2 $calc(%timer2 - 235959)    }    /msg $chan 7,1Ultimo mix enviado: %ipset   1,8[ 5Enviado por10,8 %ipnick 5,8às10,8 %iptime 1,8]  }  else {    set %left $calc(%timer2 - (%timer + 1))    /notice $nick O canal $chan limita o uso do comando !mix. Aguarde %left segundo(s) para poder usa-lo.    }}</code></pre></div>the objective of this script is capture the last message with containing some ip address and return the ip address when someone say !mix (public command), the command !mix can be used only once every 15 seconds, otherwise returns a message informing how much time remains to complete 15 seconds<br><br>would look like in tcl?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11374">luishfer</a> — Sun Oct 03, 2010 11:53 pm</p><hr />
]]></content>
	</entry>
	</feed>
