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

	<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>2010-06-21T08:40:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[thommey]]></name></author>
		<updated>2010-06-21T08:40:49-04:00</updated>

		<published>2010-06-21T08:40:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93395#p93395</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93395#p93395"/>
		<title type="html"><![CDATA[my eggdrop can not join in channel with ascii codes :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93395#p93395"><![CDATA[
The Utf-8 in that other forum post isn't complete, it doesn't yet enable eggdrop to join (or rather.. it can't save those channels properly to the chanfile and restore later) utf8 chans.<br>The fix (on top of the other one) to fix that issue is:<br>(that means you need <strong class="text-strong">both</strong>)<div class="codebox"><p>Code: </p><pre><code>diff -urN eggdrop1.6.19.original/src/chanprog.c eggdrop1.6.19.modified/src/chanprog.c--- eggdrop1.6.19.original/src/chanprog.c       2008-02-16 22:41:03.000000000 +0100+++ eggdrop1.6.19.modified/src/chanprog.c       2010-06-21 14:24:27.000000000 +0200@@ -444,7 +444,7 @@   protect_readonly = 0;    /* Now read it */-  if (!readtclprog(configfile))+  if (!readtclprog(configfile, 0))     fatal(MISC_NOCONFIGFILE, 0);    for (i = 0; i &lt; max_logs; i++) {diff -urN eggdrop1.6.19.original/src/mod/channels.mod/channels.c eggdrop1.6.19.modified/src/mod/channels.mod/channels.c--- eggdrop1.6.19.original/src/mod/channels.mod/channels.c      2008-02-16 22:41:06.000000000 +0100+++ eggdrop1.6.19.modified/src/mod/channels.mod/channels.c      2010-06-21 14:24:27.000000000 +0200@@ -498,7 +498,7 @@     if (!channel_static(chan))       chan-&gt;status |= CHAN_FLAGGED;   chan_hack = 1;-  if (!readtclprog(chanfile) &amp;&amp; create) {+  if (!readtclprog(chanfile, 1) &amp;&amp; create) {     FILE *f;      /* Assume file isnt there &amp; therfore make it */diff -urN eggdrop1.6.19.original/src/mod/module.h eggdrop1.6.19.modified/src/mod/module.h--- eggdrop1.6.19.original/src/mod/module.h     2008-02-16 22:41:06.000000000 +0100+++ eggdrop1.6.19.modified/src/mod/module.h     2010-06-21 14:29:54.000000000 +0200@@ -282,7 +282,7 @@ #define copyfile ((int (*) (char *, char *))global[147]) /* 148 - 151 */ #define do_tcl ((void (*)(char *, char *))global[148])-#define readtclprog ((int (*)(const char *))global[149])+#define readtclprog ((int (*)(const char *, int))global[149]) #define get_language ((char *(*)(int))global[150]) #define def_get ((void *(*)(struct userrec *, struct user_entry *))global[151]) /* 152 - 155 */diff -urN eggdrop1.6.19.original/src/proto.h eggdrop1.6.19.modified/src/proto.h--- eggdrop1.6.19.original/src/proto.h  2008-02-16 22:41:04.000000000 +0100+++ eggdrop1.6.19.modified/src/proto.h  2010-06-21 14:30:06.000000000 +0200@@ -270,7 +270,7 @@ void protect_tcl(); void unprotect_tcl(); void do_tcl(char *, char *);-int readtclprog(char *fname);+int readtclprog(char *fname, int);  /* userent.c */ void list_type_kill(struct list_type *);diff -urN eggdrop1.6.19.original/src/tcl.c eggdrop1.6.19.modified/src/tcl.c--- eggdrop1.6.19.original/src/tcl.c    2008-02-16 22:41:04.000000000 +0100+++ eggdrop1.6.19.modified/src/tcl.c    2010-06-21 14:26:57.000000000 +0200@@ -725,21 +725,34 @@  *  * returns:   1 - if everything was okay  */-int readtclprog(char *fname)+int readtclprog(char *fname, int noencoding) {   int code;   char *result; #ifdef USE_TCL_ENCODING+  char *encoding = NULL;   Tcl_DString dstr; #endif    if (!file_readable(fname))     return 0; +#ifdef USE_TCL_ENCODING+  if (noencoding &amp;&amp; Tcl_Eval(interp, "encoding system") == TCL_OK) {+    encoding = nmalloc(strlen(interp-&gt;result)+1);+    strcpy(encoding, interp-&gt;result);+    Tcl_SetSystemEncoding(interp, "identity");+  }+#endif+   code = Tcl_EvalFile(interp, fname);   result = Tcl_GetVar(interp, "errorInfo", TCL_GLOBAL_ONLY);  #ifdef USE_TCL_ENCODING+  if (noencoding &amp;&amp; encoding) {+    Tcl_SetSystemEncoding(interp, encoding);+    nfree(encoding);+  }   /* properly convert string to system encoding. */   Tcl_DStringInit(&amp;dstr);   Tcl_UtfToExternalDString(NULL, result, -1, &amp;dstr);</code></pre></div>It's a "-p1" patch.<br><br>PS: Sorry, I didn't pay attention to the date, replying to a 2 year old post is a bit futile <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=9830">thommey</a> — Mon Jun 21, 2010 8:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Syem]]></name></author>
		<updated>2008-07-16T18:17:05-04:00</updated>

		<published>2008-07-16T18:17:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84025#p84025</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84025#p84025"/>
		<title type="html"><![CDATA[my eggdrop can not join in channel with ascii codes :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84025#p84025"><![CDATA[
mda <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> ... wen bot give restart or rehash... part from #ÊžÉ”ÆžÉŸ.É™É¥Ê‡.Ê‡ÉÉ¥Ê and join to a stupid channel ex: #ÃŠÂžÃ‰Â”Ã†ÂžÃ‰ÂŸ.Ã‰Â™Ã‰Â¥ÃŠÂ‡.ÃŠÂ‡Ã‰ÂÃ‰Â¥ÃŠÂ or #ÃƒÂŠÃ‚ÂžÃƒÂ‰Ã‚Â”ÃƒÂ†Ã‚ÂžÃƒÂ‰Ã‚ÂŸ.ÃƒÂ‰Ã‚Â™ÃƒÂ‰Ã‚Â¥ÃƒÂŠÃ‚Â‡.ÃƒÂŠÃ‚Â‡ÃƒÂ‰Ã‚ÂÃƒÂ‰Ã<br>or #ÃƒÂƒÃ‚ÂŠÃƒÂ‚Ã‚ÂžÃƒÂƒÃ‚Â‰ÃƒÂ‚Ã‚Â”ÃƒÂƒÃ‚Â†ÃƒÂ‚Ã‚ÂžÃƒÂƒÃ‚Â‰ÃƒÂ‚Ã‚ÂŸ.ÃƒÂƒÃ‚Â‰ÃƒÂ‚Ã‚<br><br>etc...<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> . what is wrong to him ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10038">Syem</a> — Wed Jul 16, 2008 6:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Syem]]></name></author>
		<updated>2008-07-15T19:14:35-04:00</updated>

		<published>2008-07-15T19:14:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84002#p84002</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84002#p84002"/>
		<title type="html"><![CDATA[my eggdrop can not join in channel with ascii codes :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84002#p84002"><![CDATA[
Hmm, i dont exactly where put code "encoding = "utf-8";" <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10038">Syem</a> — Tue Jul 15, 2008 7:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-07-15T19:03:53-04:00</updated>

		<published>2008-07-15T19:03:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84001#p84001</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84001#p84001"/>
		<title type="html"><![CDATA[my eggdrop can not join in channel with ascii codes :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84001#p84001"><![CDATA[
It basically means patch was unable to make that change (remove an empty line near line 650, and add "encoding = "utf-8";" to the very same line).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jul 15, 2008 7:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Syem]]></name></author>
		<updated>2008-07-15T19:00:41-04:00</updated>

		<published>2008-07-15T19:00:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84000#p84000</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84000#p84000"/>
		<title type="html"><![CDATA[my eggdrop can not join in channel with ascii codes :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84000#p84000"><![CDATA[
But what is this error ? :<div class="codebox"><p>Code: </p><pre><code>patch -p1 &lt;eggdr.patchpatching file src/main.hpatching file src/tcl.cHunk #1 FAILED at 650.1 out of 1 hunk FAILED -- saving rejects to file src/tcl.c.rej</code></pre></div><strong class="text-strong">1 out of 1 hunk FAILED -- saving rejects to file src/tcl.c.rej</strong> ?<br><br>I open file tcl.c.rej and in this file is :<div class="codebox"><p>Code: </p><pre><code>****************** 650,656 ****    if (encoding == NULL) {      encoding = "iso8859-1";    }-    Tcl_SetSystemEncoding(NULL, encoding);--- 650,656 ----    if (encoding == NULL) {      encoding = "iso8859-1";    }+   encoding = "utf-8";    Tcl_SetSystemEncoding(NULL, encoding);</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10038">Syem</a> — Tue Jul 15, 2008 7:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Syem]]></name></author>
		<updated>2008-07-15T18:49:12-04:00</updated>

		<published>2008-07-15T18:49:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83999#p83999</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83999#p83999"/>
		<title type="html"><![CDATA[my eggdrop can not join in channel with ascii codes :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83999#p83999"><![CDATA[
Eggdrop join to #ÊžÉ”ÆžÉŸ.É™É¥Ê‡.Ê‡ÉÉ¥Ê after install this patch with command you said to me. And its work fine momentarily... Thanx.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10038">Syem</a> — Tue Jul 15, 2008 6:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Syem]]></name></author>
		<updated>2008-07-15T18:45:56-04:00</updated>

		<published>2008-07-15T18:45:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83998#p83998</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83998#p83998"/>
		<title type="html"><![CDATA[my eggdrop can not join in channel with ascii codes :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83998#p83998"><![CDATA[
thx man, its work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">. Thanx so much.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10038">Syem</a> — Tue Jul 15, 2008 6:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-07-15T18:39:25-04:00</updated>

		<published>2008-07-15T18:39:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83997#p83997</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83997#p83997"/>
		<title type="html"><![CDATA[my eggdrop can not join in channel with ascii codes :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83997#p83997"><![CDATA[
What was the content of the src/tcl.c.rej file?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jul 15, 2008 6:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Syem]]></name></author>
		<updated>2008-07-15T18:36:01-04:00</updated>

		<published>2008-07-15T18:36:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83996#p83996</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83996#p83996"/>
		<title type="html"><![CDATA[my eggdrop can not join in channel with ascii codes :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83996#p83996"><![CDATA[
I downloaded eggdrop.1.6.18, and i put patch (eggdr.patch) in folder base, and i have install patch with this command "patch -p1 &lt;eggdr.patch" , and result this :<div class="codebox"><p>Code: </p><pre><code>patch -p1 &lt;eggdr.patchpatching file src/main.hReversed (or previously applied) patch detected!  Assume -R? [n] yespatching file src/tcl.cHunk #1 FAILED at 650.1 out of 1 hunk FAILED -- saving rejects to file src/tcl.c.rej</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10038">Syem</a> — Tue Jul 15, 2008 6:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-07-15T18:15:54-04:00</updated>

		<published>2008-07-15T18:15:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83994#p83994</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83994#p83994"/>
		<title type="html"><![CDATA[my eggdrop can not join in channel with ascii codes :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83994#p83994"><![CDATA[
Well, you could always apply the patch manually...<br><br>The -p switch simply tells "patch" how much of the file-paths to trim off..<br>0 means keep as is, 1 means drop the first folder in the path, and so on..<br><br>From what you posted, patch looks for the file "main.h" at the relative location of "eggdrop1.6.18.original/src/" (translates to "/dev/shm/eggdrop1.6.19/eggdrop1.6.18.original/src/main.h"). Most likely, it should look for "src/main.h", and this is where -p1 comes in... It tells "patch" to drop the "eggdrop1.6.18.original" part...<br><br>Also make sure you're in the correct directory yourself when you issue the command (where you unpacked the source).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jul 15, 2008 6:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Syem]]></name></author>
		<updated>2008-07-15T18:09:30-04:00</updated>

		<published>2008-07-15T18:09:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83993#p83993</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83993#p83993"/>
		<title type="html"><![CDATA[my eggdrop can not join in channel with ascii codes :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83993#p83993"><![CDATA[
Dont work, same error <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> . Maibe its another command for install this patch.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10038">Syem</a> — Tue Jul 15, 2008 6:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-07-15T16:19:57-04:00</updated>

		<published>2008-07-15T16:19:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83991#p83991</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83991#p83991"/>
		<title type="html"><![CDATA[my eggdrop can not join in channel with ascii codes :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83991#p83991"><![CDATA[
Try using a higher value for -p, ie 1.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jul 15, 2008 4:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Syem]]></name></author>
		<updated>2008-07-15T14:28:50-04:00</updated>

		<published>2008-07-15T14:28:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83990#p83990</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83990#p83990"/>
		<title type="html"><![CDATA[my eggdrop can not join in channel with ascii codes :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83990#p83990"><![CDATA[
Hmm.. no one can help me ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10038">Syem</a> — Tue Jul 15, 2008 2:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Syem]]></name></author>
		<updated>2008-07-12T03:33:10-04:00</updated>

		<published>2008-07-12T03:33:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83956#p83956</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83956#p83956"/>
		<title type="html"><![CDATA[my eggdrop can not join in channel with ascii codes :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83956#p83956"><![CDATA[
Hmm.. i try what you say, and result this line :<br><div class="codebox"><p>Code: </p><pre><code>root@blu:/dev/shm/eggdrop1.6.19$ patch -p0 &lt;eggdr.patchcan't find file to patch at input line 3Perhaps you used the wrong -p or --strip option?The text leading up to this was:--------------------------|--- eggdrop1.6.18.original/src/main.h   2006-03-28 04:35:50.000000000+0200|+++ eggdrop1.6.18.utf8/src/main.h       2008-04-01 20:57:29.000000000 +0200--------------------------File to patch:</code></pre></div>In src folder result same error<div class="codebox"><p>Code: </p><pre><code></code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10038">Syem</a> — Sat Jul 12, 2008 3:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2008-07-11T18:56:29-04:00</updated>

		<published>2008-07-11T18:56:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83953#p83953</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83953#p83953"/>
		<title type="html"><![CDATA[my eggdrop can not join in channel with ascii codes :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83953#p83953"><![CDATA[
Try:<div class="codebox"><p>Code: </p><pre><code>patch -p0 &lt;exemple.patch</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Fri Jul 11, 2008 6:56 pm</p><hr />
]]></content>
	</entry>
	</feed>
