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

	<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>2003-06-22T10:04:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-06-22T10:04:30-04:00</updated>

		<published>2003-06-22T10:04:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22384#p22384</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22384#p22384"/>
		<title type="html"><![CDATA[my script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22384#p22384"><![CDATA[
it doesn't work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>Help me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>bind pub o|o !news pub:msg:ver:news <br>proc pub:msg:ver:news {nick uhost hand chan arg} { <br><br>global botnick  <br>putlog "NeWS" <br>set file [open "/home/sergio/new" r] <br><br>set line [gets $file] <br><br>if {[string match "*amp;*" $line]} { <br>  puthelp "PRIVMSG $chan : \002 [removeamp $line] \002" <br>} else { <br>  puthelp "PRIVMSG $chan : \002 $line \002" <br>} <br><br> <br>proc removeamp {string} { <br>  regsub -all " " $string "" string <br>  regsub -all "amp;" $string "" string <br>  return $string <br>}<p>Statistics: Posted by Guest — Sun Jun 22, 2003 10:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-06-22T09:33:15-04:00</updated>

		<published>2003-06-22T09:33:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22383#p22383</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22383#p22383"/>
		<title type="html"><![CDATA[me again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22383#p22383"><![CDATA[
Thats <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">)<br><br>Very quick answer ehehe<br><br>but help me here with something please <br><br>this is my script:<br><br>bind pub o|o !news pub:msg:ver:news<br>proc pub:msg:ver:news {nick uhost hand chan arg} {<br><br>global botnick<br>putlog "NeWS"<br>set file [open "/home/sergio/new.txt" r]<br>while {![eof $file]} {<br>"PRIVMSG $chan : \002  [gets $file] \002"<br>}<br>close $file<br>}<br><br><br>where do i put your code ?<br><br>tks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Sun Jun 22, 2003 9:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pollar]]></name></author>
		<updated>2003-06-22T09:21:14-04:00</updated>

		<published>2003-06-22T09:21:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22382#p22382</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22382#p22382"/>
		<title type="html"><![CDATA[replace part of string]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22382#p22382"><![CDATA[
A little correction <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br><br><div class="codebox"><p>Code: </p><pre><code>proc removeamp {string} {   regsub -all " " $string "" string  regsub -all "amp;" $string "" string   return $string } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2501">pollar</a> — Sun Jun 22, 2003 9:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pollar]]></name></author>
		<updated>2003-06-22T09:18:33-04:00</updated>

		<published>2003-06-22T09:18:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22379#p22379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22379#p22379"/>
		<title type="html"><![CDATA[replace part of string]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22379#p22379"><![CDATA[
Try this:<br><div class="codebox"><p>Code: </p><pre><code>proc removeamp {string} {  regsub -all "amp;" $string "" string  return $string}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2501">pollar</a> — Sun Jun 22, 2003 9:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-06-22T09:08:59-04:00</updated>

		<published>2003-06-22T09:08:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22378#p22378</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22378#p22378"/>
		<title type="html"><![CDATA[replace part of string]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22378#p22378"><![CDATA[
hi im tryng to read a line  from a text file with my eggdrop but i have a problem with that, i need to take off a part of the string<br><br>for example ( in my text file ):<br><br><a href="http://www.xsecurity.ws/modules.php?op=modload" class="postlink">http://www.xsecurity.ws/modules.php?op=modload</a> &amp; amp ;  name=News &amp; amp ; file=article  &amp; amp ;   sid=1678<br><br><br><br>i need it like this<br><br><a href="http://www.xsecurity.ws/modules.php?op=modload&amp;name=News&amp;file=article&amp;sid=1678" class="postlink">http://www.xsecurity.ws/modules.php?op= ... e&amp;sid=1678</a><br><br>Can someone help me ?<br><br>Tks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> keep up the good work<p>Statistics: Posted by Guest — Sun Jun 22, 2003 9:08 am</p><hr />
]]></content>
	</entry>
	</feed>
