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

	<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>2004-08-08T05:09:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-08-08T05:09:49-04:00</updated>

		<published>2004-08-08T05:09:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39595#p39595</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39595#p39595"/>
		<title type="html"><![CDATA[Character limit on bot&lt;&gt;bot communication?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39595#p39595"><![CDATA[
Is XTRA limited to 500 bytes? If yes, then you can find it in src/userent.c<br><div class="codebox"><p>Code: </p><pre><code> int xtra_tcl_set(Tcl_Interp * irp, struct userrec *u,                        struct user_entry *e, int argc, char **argv){  struct xtra_key *xk;  int l;  BADARGS(4, 5, " handle type key ?value?");  xk = user_malloc(sizeof(struct xtra_key));  l = strlen(argv[3]);  egg_bzero(xk, sizeof(struct xtra_key));  if (l &gt; 500)    l = 500;  xk-&gt;key = user_malloc(l + 1);  strncpyz(xk-&gt;key, argv[3], l + 1);  if (argc == 5) {    int k = strlen(argv[4]);    if (k &gt; 500 - l)      k = 500 - l;    xk-&gt;data = user_malloc(k + 1);    strncpyz(xk-&gt;data, argv[4], k + 1);  }  xtra_set(u, e, xk);  return TCL_OK;}</code></pre></div>Just change 500 to higher value (in 4 places as you see) , then find function <strong class="text-strong">xtra_gotshare</strong> and change 500 (also in 4 places) to same value as in xtra_tcl_set <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I posted it in wrong topic last time <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Sun Aug 08, 2004 5:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ClubCX]]></name></author>
		<updated>2004-08-06T20:16:32-04:00</updated>

		<published>2004-08-06T20:16:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39556#p39556</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39556#p39556"/>
		<title type="html"><![CDATA[Character limit on bot&lt;&gt;bot communication?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39556#p39556"><![CDATA[
Thanks, KrzychuG.   Can I also change the length of XTRA fields in user records?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=398">ClubCX</a> — Fri Aug 06, 2004 8:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-08-06T17:51:59-04:00</updated>

		<published>2004-08-06T17:51:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39555#p39555</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39555#p39555"/>
		<title type="html"><![CDATA[Character limit on bot&lt;&gt;bot communication?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39555#p39555"><![CDATA[
Possibly eggdrop author(s) doesn't need longer. You can always change it in:<br>src/tcldcc.c<br><div class="codebox"><p>Code: </p><pre><code>static int tcl_putbot STDVAR{  int i;  char msg[1001];  BADARGS(3, 3, " botnick message");  i = nextbot(argv[1]);  if (i &lt; 0) {    Tcl_AppendResult(irp, "bot is not on the botnet", NULL);    return TCL_ERROR;  }  strncpyz(msg, argv[2], sizeof msg);  botnet_send_zapf(i, botnetnick, argv[1], msg);  return TCL_OK;}</code></pre></div>Now you can use 1000 bytes <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> You can do the same for tcl_putallbots <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=3672">KrzychuG</a> — Fri Aug 06, 2004 5:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ClubCX]]></name></author>
		<updated>2004-08-06T15:56:10-04:00</updated>

		<published>2004-08-06T15:56:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39550#p39550</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39550#p39550"/>
		<title type="html"><![CDATA[Character limit on bot&lt;&gt;bot communication?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39550#p39550"><![CDATA[
Why is putbot limited to 400 bytes?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=398">ClubCX</a> — Fri Aug 06, 2004 3:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-06T08:57:24-04:00</updated>

		<published>2004-08-06T08:57:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39544#p39544</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39544#p39544"/>
		<title type="html"><![CDATA[Character limit on bot&lt;&gt;bot communication?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39544#p39544"><![CDATA[
putbot has a limit of 400 bytes (including the keyword + trailing space)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Aug 06, 2004 8:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-08-06T08:33:09-04:00</updated>

		<published>2004-08-06T08:33:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39543#p39543</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39543#p39543"/>
		<title type="html"><![CDATA[Character limit on bot&lt;&gt;bot communication?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39543#p39543"><![CDATA[
Why not use putbot/putallbots ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Fri Aug 06, 2004 8:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2004-08-06T05:54:25-04:00</updated>

		<published>2004-08-06T05:54:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39542#p39542</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39542#p39542"/>
		<title type="html"><![CDATA[Character limit on bot&lt;&gt;bot communication?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39542#p39542"><![CDATA[
if you really use privmsg: the IRCD's of nearly all networks limit the number of chars you can send. <br>For botnet communication: i dont know if there is a limit, if there is then just split the line and send it in smaller parts<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Fri Aug 06, 2004 5:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ClubCX]]></name></author>
		<updated>2004-08-05T22:10:00-04:00</updated>

		<published>2004-08-05T22:10:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39536#p39536</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39536#p39536"/>
		<title type="html"><![CDATA[Character limit on bot&lt;&gt;bot communication?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39536#p39536"><![CDATA[
I've increasingly been using the botnet for transferring of information between bots, allowing workloads to be shared or delegated. However, I've run into a problem sending long lines, such as a 500 character privmsg.  It seems to get truncated somewhere around 300 characters before the remote bot can parse it.<br><br>I've had the same problem when trying to store a lot of information in an XTRA user record, with the limit also being around 300 characters.  Is there a reason for these restrictions?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=398">ClubCX</a> — Thu Aug 05, 2004 10:10 pm</p><hr />
]]></content>
	</entry>
	</feed>
