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

	<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>2022-05-20T06:17:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user12]]></name></author>
		<updated>2022-05-20T06:17:36-04:00</updated>

		<published>2022-05-20T06:17:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111130#p111130</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111130#p111130"/>
		<title type="html"><![CDATA[Ok,]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111130#p111130"><![CDATA[
Let's see if I explain myself better XD, using eggdrop with utf-8 "emojis" when using !Say 😀 the bot copies the message well using emojis, but by adding this code, it kills the emojis when using !Say 😀 sends signs<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12972">user12</a> — Fri May 20, 2022 6:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-05-19T09:01:48-04:00</updated>

		<published>2022-05-19T09:01:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111122#p111122</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111122#p111122"/>
		<title type="html"><![CDATA[Make Eggdrop blind to control codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111122#p111122"><![CDATA[
That code has little to do with how your bot does utf-8<br><br>See these links for help with utf-8 issues with tcl/eggdrop<br><br><a href="https://github.com/eggheads/eggdrop/issues/4" class="postlink">https://github.com/eggheads/eggdrop/issues/4</a><br><br>[07:42] &lt;SergioR&gt; it's Tcl issue, not eggdrop<br>[07:43] &lt;SergioR&gt; utf-8 extended = generic/tcl.h - #define TCL_UTF_MAX 6<br>[07:45] &lt;SergioR&gt; <a href="https://snap.servx.org/-UykzuNVHJQ" class="postlink">https://snap.servx.org/-UykzuNVHJQ</a><br><br><a href="https://wiki.eggheads.org/index.php/UTF-8" class="postlink">https://wiki.eggheads.org/index.php/UTF-8</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Thu May 19, 2022 9:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user12]]></name></author>
		<updated>2022-05-19T02:37:55-04:00</updated>

		<published>2022-05-19T02:37:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111121#p111121</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111121#p111121"/>
		<title type="html"><![CDATA[Re: Make Eggdrop blind to control codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111121#p111121"><![CDATA[
<blockquote class="uncited"><div>This post is in response to the following conversation on #egghelp @ freenode.<blockquote class="uncited"><div>&lt;AlphaTech&gt; In the built-in logs how can I disable color? It making funky logs on my logging webpage<br>&lt;SpiKe^^&gt; not sure if there's a better way, but you could try a little proc i have used to remove all colorcodes from everything the bot sees<br>&lt;SpiKe^^&gt; but it will affect everything the bot sees, not just the logging stuff</div></blockquote>I'm thinking this may of use to others also...<br><div class="codebox"><p>Code: </p><pre><code>catch {unbind raw - PRIVMSG *raw:irc:msg}bind raw - PRIVMSG striprivmsgproc striprivmsg {f k a} {  set a [string map [list \017 ""] [stripcodes abcgru $a]]  *raw:irc:msg $f $k $a}</code></pre></div>This is what BogusTrivia uses to make binds trigger on text that contains control codes.<br>This code is adapted from an old egghelp.org forum post @ <a href="http://forum.egghelp.org/viewtopic.php?t=12944" class="postlink">http://forum.egghelp.org/viewtopic.php?t=12944</a><br>Please let me know if this helps, AlphaTech.</div></blockquote><br><br>that code doesn't work with utf-8 especially emojis <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12972">user12</a> — Thu May 19, 2022 2:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-03-17T08:33:10-04:00</updated>

		<published>2022-03-17T08:33:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111024#p111024</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111024#p111024"/>
		<title type="html"><![CDATA[Make Eggdrop blind to control codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111024#p111024"><![CDATA[
oh euhm yea thanks CC i posted this before i found out i had controlstrip module loaded on znc thats why i couldnt see any color codes after unloading it all was fine. <br><br>thanks again CC much apreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Mar 17, 2022 8:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2022-03-17T06:19:22-04:00</updated>

		<published>2022-03-17T06:19:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111023#p111023</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111023#p111023"/>
		<title type="html"><![CDATA[Make Eggdrop blind to control codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111023#p111023"><![CDATA[
As said on IRC:<div class="codebox"><p>Code: </p><pre><code>proc striprivmsg {f k a} {   if {$f ne "${::botnick}![getchanhost $::botnick]"} {      set a [stripcodes abcgru $a]   }   *raw:irc:msg $f $k $a   *raw:PRIVMSG $f $k $a}</code></pre></div>This will let the message unchanged if emetter is the eggdrop<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Mar 17, 2022 6:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-03-17T04:30:37-04:00</updated>

		<published>2022-03-17T04:30:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111021#p111021</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111021#p111021"/>
		<title type="html"><![CDATA[Make Eggdrop blind to control codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111021#p111021"><![CDATA[
anyway to strip incoming messages only and not outgoing ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Mar 17, 2022 4:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-03-01T04:31:12-04:00</updated>

		<published>2015-03-01T04:31:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103555#p103555</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103555#p103555"/>
		<title type="html"><![CDATA[Make Eggdrop blind to control codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103555#p103555"><![CDATA[
Oh snap. To be honest haven't checked the topic you mentioned. /facepalm<br><br>Just remembered saw something like this before and wanted to help out and made a fool of myself in the process. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Mar 01, 2015 4:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-02-28T20:26:21-04:00</updated>

		<published>2015-02-28T20:26:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103554#p103554</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103554#p103554"/>
		<title type="html"><![CDATA[Make Eggdrop blind to control codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103554#p103554"><![CDATA[
Yup, I mentioned that same prior post too.<br><br>This is a revised version of that same proc.<br>1. As of eggdrop 1.6.21, [stripcodes abcgru $string] does not strip the control code \017, an issue thommey is aware of.<br>2. For most uses, the "unbind raw - PRIVMSG *raw:PRIVMSG" is not needed.<br>3. This is a complete example of that proc, with the unbind in a catch, to keep it from killing the bot on rehash.<br><br>Thanks for pointing out the prior post I already did though.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Feb 28, 2015 8:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-02-28T17:30:44-04:00</updated>

		<published>2015-02-28T17:30:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103553#p103553</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103553#p103553"/>
		<title type="html"><![CDATA[Make Eggdrop blind to control codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103553#p103553"><![CDATA[
This has been discussed before and user offered a solution <a href="http://forum.egghelp.org/viewtopic.php?p=69588#69588" class="postlink">here</a>.<div class="codebox"><p>Code: </p><pre><code>unbind raw - PRIVMSG *raw:irc:msgunbind raw - PRIVMSG *raw:PRIVMSGbind raw - PRIVMSG striprivmsgproc striprivmsg {f k a} {   set a [stripcodes abcgru $a]   *raw:irc:msg $f $k $a   *raw:PRIVMSG $f $k $a}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Feb 28, 2015 5:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-02-28T13:54:08-04:00</updated>

		<published>2015-02-28T13:54:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103552#p103552</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103552#p103552"/>
		<title type="html"><![CDATA[Make Eggdrop blind to control codes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103552#p103552"><![CDATA[
This post is in response to the following conversation on #egghelp @ freenode.<blockquote class="uncited"><div>&lt;AlphaTech&gt; In the built-in logs how can I disable color? It making funky logs on my logging webpage<br>&lt;SpiKe^^&gt; not sure if there's a better way, but you could try a little proc i have used to remove all colorcodes from everything the bot sees<br>&lt;SpiKe^^&gt; but it will affect everything the bot sees, not just the logging stuff</div></blockquote>I'm thinking this may of use to others also...<br><div class="codebox"><p>Code: </p><pre><code>catch {unbind raw - PRIVMSG *raw:irc:msg}bind raw - PRIVMSG striprivmsgproc striprivmsg {f k a} {  set a [string map [list \017 ""] [stripcodes abcgru $a]]  *raw:irc:msg $f $k $a}</code></pre></div>This is what BogusTrivia uses to make binds trigger on text that contains control codes.<br>This code is adapted from an old egghelp.org forum post @ <a href="http://forum.egghelp.org/viewtopic.php?t=12944" class="postlink">http://forum.egghelp.org/viewtopic.php?t=12944</a><br>Please let me know if this helps, AlphaTech.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Feb 28, 2015 1:54 pm</p><hr />
]]></content>
	</entry>
	</feed>
