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

	<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>2006-01-04T14:45:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2006-01-04T14:45:14-04:00</updated>

		<published>2006-01-04T14:45:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59035#p59035</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59035#p59035"/>
		<title type="html"><![CDATA[Stats.mod Crashing Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59035#p59035"><![CDATA[
Mmmm, <br><br>Perhaps its one i downloaded a long long long time ago and just kept?<br><br>Which, is also highly likely. <br><br>Its reported in the bot as Version 1.3, however, on examination of the files i used to compile her with, it IS 1.3.3 Dev1 it seems. <br><br>Sorry for the confusion.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Wed Jan 04, 2006 2:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-01-04T14:32:56-04:00</updated>

		<published>2006-01-04T14:32:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59034#p59034</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59034#p59034"/>
		<title type="html"><![CDATA[Stats.mod Crashing Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59034#p59034"><![CDATA[
There is no stats.mod provided with any official eggdrop versions. So any package including stats.mod HAS been modified <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=2382">De Kus</a> — Wed Jan 04, 2006 2:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2006-01-04T14:16:32-04:00</updated>

		<published>2006-01-04T14:16:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59029#p59029</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59029#p59029"/>
		<title type="html"><![CDATA[Stats.mod Crashing Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59029#p59029"><![CDATA[
No, using the 1.3 version that comes with Eggdrop 1.6.16 (I didnt like all the new fangled features of the newest release).<br><br>If it helps, handlen is set to 30 on my bot. Edited the eggdrop.h to allow long handle lengths before compiling.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Wed Jan 04, 2006 2:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-01-04T14:11:45-04:00</updated>

		<published>2006-01-04T14:11:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59028#p59028</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59028#p59028"/>
		<title type="html"><![CDATA[Stats.mod Crashing Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59028#p59028"><![CDATA[
Strange thing. I checked the source code of the function, but the only thing the looked suspincious could not be confirmed by me (stats usernames bigger than HANDLEN, because it might have been lead to set a negative array element).<br><div class="codebox"><p>Code: </p><pre><code>static int cmd_schannel(struct userrec *u, int idx, char *par){  char *chname, spaces[50], *user, ubuf[2];  struct stats_chanset *chan;  struct stats_memberlist *m;  int len = 0;    ubuf[0] = '*';  ubuf[1] = 0;#if EGG_IS_MIN_VER(10500)  len = nick_len;#else  len = NICKLEN;#endif  chname = newsplit(&amp;par);  putlog(LOG_CMDS, "*", "#%s# (%s) schannel %s", dcc[idx].nick, dcc[idx].u.chat-&gt;con_chan, chname);  if (!chname[0])    chname = dcc[idx].u.chat-&gt;con_chan;  chan = findschan(chname);  if (!chan) {    if (!findchan_by_dname(chname))      dprintf(idx, "Invalid channel: %s\n", chname);    else      dprintf(idx, "Channel %s is inactive\n", chname);    return 0;  }  dprintf(idx, "%d users on channel:\n", countmembers(chan-&gt;members));  sprintf(spaces, "                                                ");  spaces[len - 4] = 0;  dprintf(idx, "NICK%s", spaces);  spaces[len - 4] = ' ';  spaces[HANDLEN - 4] = 0;  dprintf(idx, "  USER%s", spaces);  dprintf(idx, "  UHOST\n");  spaces[HANDLEN - 4] = ' ';  for (m = chan-&gt;members; m; m = m-&gt;next) {    if (m-&gt;user)      user = m-&gt;user-&gt;user;    else      user = ubuf;    spaces[len - strlen(m-&gt;nick)] = 0;    dprintf(idx, "%s%s", m-&gt;nick, spaces);    spaces[len - strlen(m-&gt;nick)] = ' ';    spaces[HANDLEN - strlen(user)] = 0;    dprintf(idx, "  %s%s", user, spaces);    spaces[HANDLEN - strlen(user)] = ' ';    dprintf(idx, "  %s\n", m-&gt;uhost);  }    return 0;}</code></pre></div>I am too lazy to unbind channels from !stats and livestats just to confirm if it is really because of such a silly thing.<br><br>Just to make sure... you are taking about stats.mod 1.3.3dev1 ?!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Jan 04, 2006 2:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2006-01-04T05:32:53-04:00</updated>

		<published>2006-01-04T05:32:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59022#p59022</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59022#p59022"/>
		<title type="html"><![CDATA[Stats.mod Crashing Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59022#p59022"><![CDATA[
What seems to have fixed it is a stats reset. <br><br>Looks like it must have been caused by a dead or corrupted file. Ill pass it on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Wed Jan 04, 2006 5:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-03T23:13:23-04:00</updated>

		<published>2006-01-03T23:13:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59013#p59013</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59013#p59013"/>
		<title type="html"><![CDATA[Stats.mod Crashing Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59013#p59013"><![CDATA[
you might want to report this to the author, although I don't believe this thing is still being developed<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jan 03, 2006 11:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2006-01-03T10:20:48-04:00</updated>

		<published>2006-01-03T10:20:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58991#p58991</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58991#p58991"/>
		<title type="html"><![CDATA[Stats.mod Crashing Error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58991#p58991"><![CDATA[
Hi, <br><br>Using eggdrop 1.6.17 and using Stats.mod 1.3 (not touched the new one yet).<br><br>Found an error, which crashes the bot completely. <br><br>.schannel &lt;channel&gt;<br><br>If i put a channel in, it dies horribly. <br><br>this is the error recorded in debug mode:<br><blockquote class="uncited"><div>[14:17] tcl: builtin dcc call: *dcc:schannel Weirdo 13 ##uno##<br>[14:17] #Weirdo# (#catgirls) schannel ##uno##<br>[14:17] * Last context: stats:userrec.c/535 []<br>[14:17] * Please REPORT this BUG!<br>[14:17] * Check doc/BUG-REPORT on how to do so.<br>[14:17] * Wrote DEBUG<br>[14:17] * BUS ERROR -- CRASHING!<br>Bus error (core dumped)</div></blockquote><br>Debug file<blockquote class="uncited"><div>Debug (eggdrop v1.6.17) written Tue Jan  3 14:17:50 2006<br>Full Patch List: <br>Tcl library: /usr/local/lib/tcl8.4<br>Tcl version: 8.4.7 (header version 8.3.5)<br>Compile flags: gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H  <br>Link flags: gcc -pipe<br>Strip flags: touch<br>Context: tclhash.c/688, []<br>         tclhash.c/680, []<br>         tclhash.c/684, [Tcl proc: *raw:<a href="irc:msg" class="postlink">irc:msg</a>, param:  $_raw1 $_raw2 $_raw3]<br>         tclhash.c/680, []<br>         tclhash.c/684, [Tcl proc: *pubm:stat, param:  $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5]<br>         stats:userrec.c/29, []<br>         stats:datahandling.c/1004, []<br>         tclhash.c/688, []<br>         tclhash.c/688, []<br>         tclhash.c/680, []<br>         tclhash.c/684, [Tcl proc: *raw:PRIVMSG, param:  $_raw1 $_raw2 $_raw3]<br>         tclhash.c/688, []<br>         tclhash.c/680, []<br>         tclhash.c/684, [Tcl proc: *dcc:schannel, param:  $_dcc1 $_dcc2 $_dcc3]<br>         stats:dcccmds.c/166, []<br>         stats:userrec.c/535 []<br><br>SOCK ADDR     PORT  NICK      HOST              TYPE<br>---- -------- ----- --------- ----------------- ----<br>3    C3F2D525  1600 (telnet)  *                 lstn  1600<br>4    00000000     0 (dns)                       dns   (ready)<br>6    DEADF00D  4060 livestats *                 lstn port<br>9    550DFB12  6667 (server)  irc.rizon.net     serv  (lag: 0)<br>13   5164F250 64443 Weirdo    broadband.ntl.com chat  flags: cpTep/0<br><br>Compiled without extensive memory debugging (sorry).<br>Open sockets: 3 (listen), 4 (passed on), 6 (listen), 9, 13, 14 (file), done.</div></blockquote>Furthermore, its occuring only on commands in channels where stats is monitored, but not outputted. IE no !stat or livestats. I am thinking it may be data corruption. <br><br>thanks,<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Tue Jan 03, 2006 10:20 am</p><hr />
]]></content>
	</entry>
	</feed>
