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

	<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>2015-05-02T13:13:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-05-02T13:13:18-04:00</updated>

		<published>2015-05-02T13:13:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103994#p103994</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103994#p103994"/>
		<title type="html"><![CDATA[Re: string match in text help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103994#p103994"><![CDATA[
<blockquote class="uncited"><div>I need to get the text that follows the word 'Founder:' and the word 'Registered:'</div></blockquote>This is one way.<br>Play around with this.  You'll get the idea.<br><div class="codebox"><p>Code: </p><pre><code>proc info:channel {nick CHaN!-@- hand text} {global canal_admin        if {[lindex [split $text] 0] eq "Founder:"} {                putmsg $canal_admin "Founder is: [lindex [split $text] 1]"          }        if {[lindex [split $text] 0] eq "Registered:"} {                putmsg $canal_admin "Registered is: [lindex [split $text] 1]"        }        return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat May 02, 2015 1:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-05-02T01:21:38-04:00</updated>

		<published>2015-05-02T01:21:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103987#p103987</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103987#p103987"/>
		<title type="html"><![CDATA[string match in text help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103987#p103987"><![CDATA[
I need to get the text that follows the word 'Founder:' and the word 'Registered:'<br><div class="codebox"><p>Code: </p><pre><code>set canal_admin "#channel1"set canal_radio "#channel2" bind pub * !request ver_chanbind msgm - * info:channel proc ver_chan {nick uhost hand chan text} {   global canal_admin canal_djs canal_radio   if {[string tolower $chan] != [string tolower $canal_radio]} {return 0}    if {[llength $text] != 1} { putmsg $canal_radio "canal invalido XD"; return }set canal [lindex [split $text] 0] ##Send your query to the bot CHaN by the channel info. putserv "PRIVMSG chan :info $canal"}proc info:channel {nick CHaN!-@- hand text} {global canal_admin  if {[lsearch -exact -nocase "*Founder:*" $text]} {###set founder ?????????###set dateregistred ?????????  putmsg $canal_admin "$text"   } else {return}}</code></pre></div> &lt;oper&gt; !request #test<br>result:<blockquote class="uncited"><div>02:03 @mybot ¦ Channel information #test:<br>02:03 @mybot ¦ Status: ACTIVE<br>02:03 @mybot ¦ Founder: Susan<br>02:03 @mybot ¦ Description: Private channel testing<br>02:03 @mybot ¦ Registered: 19:57:24 09/Feb/2015 CET<br>02:03 @mybot ¦ Last used: 05:52:26 02/May/2015 CEST<br>02:03 @mybot ¦ Opcion: Retention topic,Secure<br>02:03 @mybot ¦ Lock modes: +s-i<br>02:03 @mybot ¦ End INFO channel #test.</div></blockquote>I need to find in the text the nick of the founder and the date of registration of the channel.<br>Then, store the data in variables, which then will store in a file.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sat May 02, 2015 1:21 am</p><hr />
]]></content>
	</entry>
	</feed>
