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

	<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-02-28T19:59:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-02-28T19:59:30-04:00</updated>

		<published>2007-02-28T19:59:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70838#p70838</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70838#p70838"/>
		<title type="html"><![CDATA[Hhelp with strip char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70838#p70838"><![CDATA[
<blockquote class="uncited"><div>sigh.<br>If we are truely supposed to be against helping people setting up things related to warez, why are we still helping them?</div></blockquote>Guess I didn't think of it in that light.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Wed Feb 28, 2007 7:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2007-02-28T13:50:09-04:00</updated>

		<published>2007-02-28T13:50:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70835#p70835</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70835#p70835"/>
		<title type="html"><![CDATA[Hhelp with strip char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70835#p70835"><![CDATA[
sigh.<br><br>If we are truely supposed to be against helping people setting up things related to warez, why are we still helping them?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Wed Feb 28, 2007 1:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[whittinghamj]]></name></author>
		<updated>2007-02-28T01:48:03-04:00</updated>

		<published>2007-02-28T01:48:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70823#p70823</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70823#p70823"/>
		<title type="html"><![CDATA[Hhelp with strip char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70823#p70823"><![CDATA[
I got it thank you <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>I was not thinking right - been at this tcl for 9 hours non stop lol<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7783">whittinghamj</a> — Wed Feb 28, 2007 1:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-02-28T01:24:37-04:00</updated>

		<published>2007-02-28T01:24:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70820#p70820</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70820#p70820"/>
		<title type="html"><![CDATA[Hhelp with strip char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70820#p70820"><![CDATA[
set string map [list " " "."] $arg <br><br>should be <br><br>set varname [string map {" " "."} $arg]<br><br><br>No clue what this is trying to accomplish:<br><br>set pregroup [string range [lindex $arg 0] [expr {[string last - [lindex $arg 0]] + 1}] end ] <br><br><br>Maybe try reading the manpages for 'string' and 'lindex' instead of just randomly mix-mashing these together like that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Wed Feb 28, 2007 1:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[whittinghamj]]></name></author>
		<updated>2007-02-28T00:11:54-04:00</updated>

		<published>2007-02-28T00:11:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70819#p70819</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70819#p70819"/>
		<title type="html"><![CDATA[Hhelp with strip char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70819#p70819"><![CDATA[
hi guys <br><br>I am trying to use both of those examples but running into issues - no idea how to use them<br><br><br>here is what i have so fare<br><br>maybe u can see where i going wrong<br><div class="codebox"><p>Code: </p><pre><code>proc pub:addpreannounce {nick host hand chan arg} {  global mysqlset pregroup [string range [lindex $arg 0] [expr {[string last - [lindex $arg 0]] + 1}] end ]set rlstime [unixtime]set string map [list " " "."] $argset rlsname [lindex $string 10]set rlssection [lindex $arg 6]</code></pre></div>there is some code after this but that part works fine<br><br>cheers<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7783">whittinghamj</a> — Wed Feb 28, 2007 12:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-02-20T05:30:51-04:00</updated>

		<published>2007-02-20T05:30:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70573#p70573</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70573#p70573"/>
		<title type="html"><![CDATA[Hhelp with strip char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70573#p70573"><![CDATA[
Or you can use<div class="codebox"><p>Code: </p><pre><code>join [split $string] .</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Feb 20, 2007 5:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-02-20T00:49:28-04:00</updated>

		<published>2007-02-20T00:49:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70570#p70570</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70570#p70570"/>
		<title type="html"><![CDATA[Hhelp with strip char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70570#p70570"><![CDATA[
'string map' would probably be your friend here, assuming you've got tcl8.2 or later installed.<div class="codebox"><p>Code: </p><pre><code>string map [list " " "."] $string</code></pre></div>If 'string map' is not available on your system, you could use regsub instead. Keep in mind that regular expressions can be abit "tricky" however...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Feb 20, 2007 12:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[whittinghamj]]></name></author>
		<updated>2007-02-19T22:06:29-04:00</updated>

		<published>2007-02-19T22:06:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70564#p70564</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70564#p70564"/>
		<title type="html"><![CDATA[Hhelp with strip char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70564#p70564"><![CDATA[
thank you so much for the tips - i am changing my script as needed.<br><br>One other question.<br><br>How do i take the spaces from the irc line and convert them into a period<br><br>eg<br><br>hello i am new here<br><br>would become in the log file<br><br>hello.i.am.new.here<br><br>any su8ggestions? point me in the right direction / have any sample code i can use as a base to work from please?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7783">whittinghamj</a> — Mon Feb 19, 2007 10:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-02-19T20:18:00-04:00</updated>

		<published>2007-02-19T20:18:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70560#p70560</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70560#p70560"/>
		<title type="html"><![CDATA[Hhelp with strip char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70560#p70560"><![CDATA[
First off, don't ever use lrange (or lindex for that matter) in that fashion!<br>lrange is supposed to be used on lists, not plain text. What you should be using is 'string range' or possibly 'string strip'.<br><br>As for getting correct ranges for either lrange or string range, use <em class="text-italics">end-1</em> as end-of-range argument to drop the last char (string range) or list item (lrange).<br><br>Manpage for 'string' can be found <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/string.htm" class="postlink">here</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Feb 19, 2007 8:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[whittinghamj]]></name></author>
		<updated>2007-02-19T19:42:51-04:00</updated>

		<published>2007-02-19T19:42:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70559#p70559</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70559#p70559"/>
		<title type="html"><![CDATA[Hhelp with strip char]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70559#p70559"><![CDATA[
Hi guys. when I am logging a line of text from #channel to logfile. How do I strip of the last charactor before writing the line to the logfile?<br><br>Some of my users have this dam annoying script which puts [ and ] start and end of every line they type.<br><br>Now I can miss out the first [ by lindex $text 1 end] and it works perfectly - just need to drop the VERY last char which happens to be a ]  - as its logged in the file as \] - which is very annoying and very ugly.<br><br>Any help please --- I looked around the board for the strip syntax but I am either not really understanding it right or the posted did not seem line they would help any.<br><br>Thanks guys - <br><br>PS - its about time but I am writing my own darn script and not just requesting the full script this time he he - yay Quest<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7783">whittinghamj</a> — Mon Feb 19, 2007 7:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
