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

	<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-06T22:22:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-11-06T22:22:00-04:00</updated>

		<published>2001-11-06T22:22:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1422#p1422</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1422#p1422"/>
		<title type="html"><![CDATA[Expl Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1422#p1422"><![CDATA[
This seems a rather complex script, for such a simple task.<br><br>it would be simple enogugh to use split and lindex to get each section of text.<br><div class="codebox"><p>Code: </p><pre><code>proc pxexpl:get {term chan} { set fd [open $chan.define r] while {![eof $fd]} { set input [gets $fd] if {[pxexpl:term $input] == [string tolower $term]} { close $fd return [lindex [split $input ";"] 2]} } close $fd return 0 } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Nov 06, 2001 10:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-06T21:58:00-04:00</updated>

		<published>2001-11-06T21:58:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1421#p1421</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1421#p1421"/>
		<title type="html"><![CDATA[Expl Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1421#p1421"><![CDATA[
It writes to a file like:<br>test1;testing 1..2..3;BoB<br>test2;testing 1..2..3;Fred<br><br>This code gets the test1 test2 out of that<br><br>proc pxexpl:get {term chan} {<br>  set fd [open $chan.define r]<br>  while {![eof $fd]} {<br>    set input [gets $fd]<br>    if {[pxexpl:term $input] == [string tolower $term]} { <br>      close $fd<br>      return "[string range $input [expr [string last ";" $input]+1] end] [string range $input [expr [string first ";" $input]+1] [expr [string last ";" $input]-1]]"<br>    }<br>  }<br>  close $fd<br>  return 0<br>}<br><br>proc pxexpl:term {fstring} {<br>  set term [string range $fstring 0 [expr [string first ";" $fstring]-1]]<br>  if {$term != ""} { return $term } else { return 0 }<br>}<br><br>but i want it to get the nickname out just the nickname on its own like BoB, Fred<br>how can i do this?, Thanks<br><br><p>Statistics: Posted by Guest — Tue Nov 06, 2001 9:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
