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

	<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-09-23T16:30:31-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Galadhrim]]></name></author>
		<updated>2004-09-23T16:30:31-04:00</updated>

		<published>2004-09-23T16:30:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41156#p41156</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41156#p41156"/>
		<title type="html"><![CDATA[module programming - step 2]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41156#p41156"><![CDATA[
compile your bot with debug: 'make debug' and use gdb to see where it failed ('gdb eggdrop core').<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2999">Galadhrim</a> — Thu Sep 23, 2004 4:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-07-06T10:34:22-04:00</updated>

		<published>2003-07-06T10:34:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23135#p23135</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23135#p23135"/>
		<title type="html"><![CDATA[module programming - step 2]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23135#p23135"><![CDATA[
<blockquote class="uncited"><div>Look in module.h for dprintf, copy the line, and do the same thing I did with putlog, in your module after you include module.h.</div></blockquote>Now I have a problem with the nmalloc and nfree macros. What should I to to be usable in C++? The problem is the same as with putlog and dprintf.<p>Statistics: Posted by Guest — Sun Jul 06, 2003 10:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-03-29T17:20:06-04:00</updated>

		<published>2003-03-29T17:20:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18327#p18327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18327#p18327"/>
		<title type="html"><![CDATA[module programming - step 2]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18327#p18327"><![CDATA[
Are you sure get_user_by_nick is crashing? It returns NULL if the nick doesn't match any user. Use putlog() to figure out exactly where it is crashing. You can even add putlogs into userrec.c. This will help a lot in debugging.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Mar 29, 2003 5:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[serra]]></name></author>
		<updated>2003-03-15T12:40:32-04:00</updated>

		<published>2003-03-15T12:40:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17866#p17866</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17866#p17866"/>
		<title type="html"><![CDATA[user entry]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17866#p17866"><![CDATA[
Well, i've been looking deep in module.h, and I did realy found some usefull funcions.<br>However i havent found how do I get a user entry (struct userrec *) by a string containig the nick, or how to get the handle by the nick like in TCL (nick2hand).<br>i've found function get_user_by_nick(char *nick); in userrec.c but this one is not working, i always get a segment violation.<br><br>why do i need this? Well im working with a H_raw, i need to check the flags of the user and i only now his nick (in a string). Am I thinking well? Is there another way to do this?<br><br>greetings<br>pedro<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2745">serra</a> — Sat Mar 15, 2003 12:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-03-09T18:24:02-04:00</updated>

		<published>2003-03-09T18:24:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17607#p17607</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17607#p17607"/>
		<title type="html"><![CDATA[module programming - step 2]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17607#p17607"><![CDATA[
Look in module.h for dprintf, copy the line, and do the same thing I did with putlog, in your module after you include module.h.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sun Mar 09, 2003 6:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-03-09T12:10:21-04:00</updated>

		<published>2003-03-09T12:10:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17597#p17597</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17597#p17597"/>
		<title type="html"><![CDATA[Re: module loading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17597#p17597"><![CDATA[
<blockquote class="uncited"><div>Another problem: when compiling the file with .c extension the module loads fine but compiled with .cpp it sais:<br>base: Error loading module: base.so: undefined symbol: base_start__Fv<br><br>The module's name is "base"</div></blockquote>I solved thisone. I put the base_start function's declaration in extern "C" {}<br><br>The previous problem is still unsolved:)<p>Statistics: Posted by Guest — Sun Mar 09, 2003 12:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-03-08T18:08:40-04:00</updated>

		<published>2003-03-08T18:08:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17575#p17575</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17575#p17575"/>
		<title type="html"><![CDATA[module loading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17575#p17575"><![CDATA[
Another problem: when compiling the file with .c extension the module loads fine but compiled with .cpp it sais:<br>base: Error loading module: base.so: undefined symbol: base_start__Fv<br><br>The module's name is "base"<p>Statistics: Posted by Guest — Sat Mar 08, 2003 6:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-03-07T15:30:19-04:00</updated>

		<published>2003-03-07T15:30:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17527#p17527</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17527#p17527"/>
		<title type="html"><![CDATA[module programming - step 2]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17527#p17527"><![CDATA[
Ok, I did the same thing with dprintf. Is there a global way to do this for all functions?<p>Statistics: Posted by Guest — Fri Mar 07, 2003 3:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-03-07T15:23:58-04:00</updated>

		<published>2003-03-07T15:23:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17525#p17525</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17525#p17525"/>
		<title type="html"><![CDATA[module programming - step 2]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17525#p17525"><![CDATA[
<blockquote class="uncited"><div>2. Right after you include module.h, try these lines:<br><br>#undef putlog<br>#define putlog ((int(*)(...))global[197])</div></blockquote>That solved the problem, but i get the same error with dprintf. Is this a global problem with functions having "..." in the parameter list?<br><br>I'm using now gcc but i renamed the file to &lt;name&gt;.cpp<p>Statistics: Posted by Guest — Fri Mar 07, 2003 3:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-03-07T15:04:19-04:00</updated>

		<published>2003-03-07T15:04:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17524#p17524</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17524#p17524"/>
		<title type="html"><![CDATA[module programming - step 2]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17524#p17524"><![CDATA[
In module.h, putlog isn't defined with EGG_VARARGS_DEF.<br><br>#define putlog (global[197])<br><br>Try one of these:<br><br>1. Change putlog in your program to (*putlog)<br><br>2. Right after you include module.h, try these lines:<br><br>#undef putlog<br>#define putlog ((int(*)(...))global[197])<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Mar 07, 2003 3:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-03-07T08:55:09-04:00</updated>

		<published>2003-03-07T08:55:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17514#p17514</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17514#p17514"/>
		<title type="html"><![CDATA[module programming - step 2]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17514#p17514"><![CDATA[
It should work fine but I dont understand why the EGG_VARARGS_DEF macro doesnt get expanded or how do you call that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Fri Mar 07, 2003 8:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-03-07T08:52:47-04:00</updated>

		<published>2003-03-07T08:52:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17513#p17513</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17513#p17513"/>
		<title type="html"><![CDATA[module programming - step 2]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17513#p17513"><![CDATA[
<blockquote class="uncited"><div>by that I presume you mean C++...</div></blockquote>g++ is the compiler, c++ the language. I tried compiling it with gcc but it does not take the file as a c++ one so I used g++ but I got the error above.<p>Statistics: Posted by Guest — Fri Mar 07, 2003 8:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2003-03-07T08:19:53-04:00</updated>

		<published>2003-03-07T08:19:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17512#p17512</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17512#p17512"/>
		<title type="html"><![CDATA[module programming - step 2]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17512#p17512"><![CDATA[
<blockquote class="uncited"><div>Real programmers use C anyway <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"></div></blockquote>hehe... either you use c++ or assembler <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> *g*<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Fri Mar 07, 2003 8:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Photon]]></name></author>
		<updated>2003-03-06T15:49:12-04:00</updated>

		<published>2003-03-06T15:49:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17483#p17483</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17483#p17483"/>
		<title type="html"><![CDATA[module programming - step 2]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17483#p17483"><![CDATA[
by that I presume you mean C++...<br><br>I've never tried it .. I know gcc does c++ if you just change the extension of the file to .cpp but I also know this does affect a number of things.<br><br>My question is this, does it compile as C - if it does, then you have your answer. Dont use C++.<br><br>Real programmers use C anyway <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=1824">Photon</a> — Thu Mar 06, 2003 3:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-03-05T17:52:23-04:00</updated>

		<published>2003-03-05T17:52:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17458#p17458</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17458#p17458"/>
		<title type="html"><![CDATA[module and c++]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17458#p17458"><![CDATA[
Is it possible to use some classes in an eggdrop module? I'm trying to compile the module with g++ but I get "too many arguments" error when using functions like putlog as if EGG_VARARGS_DEF in the function's definition would not be expanded or something.<p>Statistics: Posted by Guest — Wed Mar 05, 2003 5:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
