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

	<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>2002-09-18T03:30:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-18T03:30:15-04:00</updated>

		<published>2002-09-18T03:30:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11043#p11043</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11043#p11043"/>
		<title type="html"><![CDATA[Eggdrop crashes when i load the module ive written]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11043#p11043"><![CDATA[
Try to change <br><br>#define MAKING_AWAY<br><br>to<br><br>#define MAKING_COCACOLA<br><br>and see if that makes it.<br><br>If I remember correctly, I had the same problem with my module in the beginning. I think it has todo with the function tables or something.<br><br>stdragon: Thanx for that debug tip, gona try it when I get home.<br><br>// M0dj0<p>Statistics: Posted by Guest — Wed Sep 18, 2002 3:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-16T13:19:24-04:00</updated>

		<published>2002-09-16T13:19:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10967#p10967</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10967#p10967"/>
		<title type="html"><![CDATA[Eggdrop crashes when i load the module ive written]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10967#p10967"><![CDATA[
The best way to figure out crash problems with modules is to use gdb.<br><br>First, make sure you compile eggdrop with debugguing enabled.<br><br>Then, when it crashes, you should have a core file in the bot's directory. Usually it's called core or core.pid. In that dir, type "gdb eggdrop core". It will tell you what code made the eggdrop crash.<br><br>And of course the obvious things: Are the necessary modules already loaded? What error message does it print when it crashes?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Sep 16, 2002 1:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-16T10:19:10-04:00</updated>

		<published>2002-09-16T10:19:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10955#p10955</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10955#p10955"/>
		<title type="html"><![CDATA[Eggdrop crashes when i load the module ive written]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10955#p10955"><![CDATA[
Ive written a module (modified away.mod),<br>but when i load it,<br>eggdrop crashes.<br><br>it compiles fine..<br><br>here is the code:<br><div class="codebox"><p>Code: </p><pre><code>/* * Away.mod * Version 1.0 * By Wcc * http://www.dawgtcl.com:81/ * wcc@techmonkeys.org * * This module makes the bot go away on IRC. * * Copyright © 2000 - 2002 |DAWG| Scripting Group. All rights reserved. * */#define MODULE_NAME "cocacola"#define MAKING_AWAY#define cocacola_MAJORV 1#define cocacola_MINORV 0#include "../module.h"#include "../irc.mod/irc.h"#include "../server.mod/server.h"#include "../channels.mod/channels.h"#include &lt;stdlib.h&gt;#undef globalstatic Function *irc_funcs = NULL, *server_funcs = NULL, *channels_funcs = NULL;static Function *global = NULL;char *cocacola_start();static int cocacola_expmem(){  return 0;}static void cocacola_report(int idx, int details){  if (details)    dprintf(idx, "CocaCola Mod Loaded\n");}static void cmd_view(char *nick, char *uhost, struct userrec *u, char *rest){  if (!rest[0]) {    dprintf(DP_SERVER, "PRIVMSG %s :http://home.no.net/sammot/user.cgi\n");  }  else {    dprintf(DP_SERVER, "PRIVMSG %s :http://home.no.net/sammot/user.cgi?page=view&amp;nick=%s\n", nick, rest);  }}static cmd_t cocacola_msg[] ={  {"cocacola",     "",    (Function) cmd_view,       NULL},  {NULL,        NULL,   NULL,                       NULL}};static char *cocacola_close(){  module_undepend(MODULE_NAME);  rem_builtins(H_msg, cocacola_msg);  return NULL;}static Function cocacola_table[] ={  (Function) cocacola_start,  (Function) cocacola_close,  (Function) cocacola_expmem,  (Function) cocacola_report,};char *cocacola_start(Function *global_funcs){  global = global_funcs;  module_register(MODULE_NAME, cocacola_table, cocacola_MAJORV, cocacola_MINORV);  add_builtins(H_msg, cocacola_msg);  return NULL;}</code></pre></div>[/code]<p>Statistics: Posted by Guest — Mon Sep 16, 2002 10:19 am</p><hr />
]]></content>
	</entry>
	</feed>
