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

	<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>2024-07-29T22:55:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2024-07-29T22:55:57-04:00</updated>

		<published>2024-07-29T22:55:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112965#p112965</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112965#p112965"/>
		<title type="html"><![CDATA[Re: Replace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112965#p112965"><![CDATA[
Okay, thanks for the time so far<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Mon Jul 29, 2024 10:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-07-29T17:48:21-04:00</updated>

		<published>2024-07-29T17:48:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112964#p112964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112964#p112964"/>
		<title type="html"><![CDATA[Re: Replace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112964#p112964"><![CDATA[
I'll try looking for a way to do that, but it could take time... I desesperatly lack time<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Jul 29, 2024 5:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2024-07-29T07:30:46-04:00</updated>

		<published>2024-07-29T07:30:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112962#p112962</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112962#p112962"/>
		<title type="html"><![CDATA[Re: Replace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112962#p112962"><![CDATA[
Ohh damn, how do I change that?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Mon Jul 29, 2024 7:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-07-29T07:24:23-04:00</updated>

		<published>2024-07-29T07:24:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112961#p112961</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112961#p112961"/>
		<title type="html"><![CDATA[Re: Replace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112961#p112961"><![CDATA[
Well, it works only if you correct your sentences, as $nick is the user running the s/ command and not the author of the original line.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Jul 29, 2024 7:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2024-07-29T06:54:14-04:00</updated>

		<published>2024-07-29T06:54:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112960#p112960</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112960#p112960"/>
		<title type="html"><![CDATA[Re: Replace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112960#p112960"><![CDATA[
Thanks, that did it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>how hard is the format text stuff?<br><br>I mean the correction to <br><br>instead of <div class="codebox"><p>Code: </p><pre><code>Correction : &lt;nick&gt; text</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>&lt;nick&gt; meant to say : text</code></pre></div>Fixed with : <br><br>From<div class="codebox"><p>Code: </p><pre><code>::erratum::display_output help PRIVMSG $chan "${::erratum::prefix}[::tcl::string::map {"\177\177" "" "\177" "\002"} $memorized_line]"</code></pre></div>To<div class="codebox"><p>Code: </p><pre><code>::erratum::display_output help PRIVMSG $chan "$nick ${::erratum::prefix}[::tcl::string::map {"\177\177" "" "\177" "\002"} $memorized_line]"</code></pre></div>and in the erratum.cfg<br><br>changed this line<div class="codebox"><p>Code: </p><pre><code>variable prefix "something"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Mon Jul 29, 2024 6:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-07-29T06:33:49-04:00</updated>

		<published>2024-07-29T06:33:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112959#p112959</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112959#p112959"/>
		<title type="html"><![CDATA[Re: Replace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112959#p112959"><![CDATA[
Replace the following line<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">::erratum::process $nick $host $hand $chan [string range $text [string length $::erratum::erratum_cmd] end]</code></pre></div> <strong>script</strong> with<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">::erratum::process $nick $host $hand $chan [string trimleft [string range $text [string length $::erratum::erratum_cmd] end]]</code></pre></div> <strong>script</strong> <p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Jul 29, 2024 6:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2024-07-29T06:15:26-04:00</updated>

		<published>2024-07-29T06:15:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112955#p112955</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112955#p112955"/>
		<title type="html"><![CDATA[Re: Replace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112955#p112955"><![CDATA[
Hi,<br><br>I'll do that right away<br><br>Something did it do <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><div class="codebox"><p>Code: </p><pre><code>~Flame: tester bare lieg                                                                                                                                                                  ~Flame: s/lieg/lige                                                                                                                                                                       &amp;OldBoys: Correction : &lt;Flame&gt; tester bare lige </code></pre></div>kinda missing a 'space' <div class="codebox"><p>Code: </p><pre><code>~Flame: tester bare lieg                                                                                                                                                                  ~Flame: s/ lieg/lige                                                                                                                                                           &amp;OldBoys: Correction : &lt;Flame&gt; tester barelige </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Mon Jul 29, 2024 6:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-07-29T05:59:22-04:00</updated>

		<published>2024-07-29T05:59:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112954#p112954</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112954#p112954"/>
		<title type="html"><![CDATA[Re: Replace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112954#p112954"><![CDATA[
I understood the trouble:<br>Comment the following line at the end of the script:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">bind pub $::erratum::erratum_auth $::erratum::erratum_cmd ::erratum::process</code></pre></div> <strong>script</strong> This bind made the process proc called twice<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Jul 29, 2024 5:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2024-07-28T07:14:48-04:00</updated>

		<published>2024-07-28T07:14:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112952#p112952</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112952#p112952"/>
		<title type="html"><![CDATA[Re: Replace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112952#p112952"><![CDATA[
Yes I did a restart <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> I always do when loading new scripts <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Sun Jul 28, 2024 7:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-07-28T07:09:08-04:00</updated>

		<published>2024-07-28T07:09:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112951#p112951</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112951#p112951"/>
		<title type="html"><![CDATA[Re: Replace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112951#p112951"><![CDATA[
Did you restart the eggdrop (not rehash, restart) after having changed the script ?<br>Looks like a side-effect, I'll look further<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sun Jul 28, 2024 7:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2024-07-28T06:30:09-04:00</updated>

		<published>2024-07-28T06:30:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112950#p112950</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112950#p112950"/>
		<title type="html"><![CDATA[Re: Replace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112950#p112950"><![CDATA[
Thanks. It works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Small issue<br><div class="codebox"><p>Code: </p><pre><code>~Flame:  s/ red/røde                               Error : No match found.                                           Error : No match found. </code></pre></div>It kinda works but: <div class="codebox"><p>Code: </p><pre><code>~Flame: s/ bar/bareCorrection : &lt;Flame&gt; testerbareCorrection : &lt;Flame&gt; testerbaree</code></pre></div><div class="codebox"><p>Code: </p><pre><code>~Flame: s/bar/bareCorrection : &lt;OldBoys&gt; Correction : &lt;Flame&gt; testerbareee</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Sun Jul 28, 2024 6:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-07-27T12:58:26-04:00</updated>

		<published>2024-07-27T12:58:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112949#p112949</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112949#p112949"/>
		<title type="html"><![CDATA[Re: Replace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112949#p112949"><![CDATA[
Ok, I did the first part with a small hack <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Replace the <em class="text-italics">user_msg_listen</em> proc with:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">proc ::erratum::user_msg_listen {nick host hand chan text} {if {!([channel get $chan erratum])} then {      return   } elseif {([::tcl::string::match -nocase "$::erratum::erratum_cmd*" $text])} {::erratum::process $nick $host $hand $chan [string range $text [string length $::erratum::erratum_cmd] end]} else {::tcl::dict::lappend ::erratum::memory $chan "&lt;$nick&gt; $text"if { [llength [::tcl::dict::get $::erratum::memory $chan]] &gt; $::erratum::max_memory } {::tcl::dict::set ::erratum::memory $chan [lreplace [::tcl::dict::get $::erratum::memory $chan] 0 0]}}}</code></pre></div> <strong>script</strong> With that, you can use the replace by two ways:<div class="codebox"><p>Code: </p><pre><code>s/old/news/ old/new</code></pre></div>Think to change <em class="text-italics">erratum_cmd</em> to "s/" in erratum.cfg<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sat Jul 27, 2024 12:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2024-07-26T13:27:53-04:00</updated>

		<published>2024-07-26T13:27:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112944#p112944</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112944#p112944"/>
		<title type="html"><![CDATA[Re: Replace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112944#p112944"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Fri Jul 26, 2024 1:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-07-26T11:55:22-04:00</updated>

		<published>2024-07-26T11:55:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112942#p112942</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112942#p112942"/>
		<title type="html"><![CDATA[Re: Replace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112942#p112942"><![CDATA[
I promise nothing, but if I find a little time to spend on it this week-end, I'll try to do that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Jul 26, 2024 11:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2024-07-26T04:54:24-04:00</updated>

		<published>2024-07-26T04:54:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112941#p112941</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112941#p112941"/>
		<title type="html"><![CDATA[Re: Replace]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112941#p112941"><![CDATA[
Okay,<br><br>I tryed, I gave up  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Fri Jul 26, 2024 4:54 am</p><hr />
]]></content>
	</entry>
	</feed>
