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

	<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-12-21T12:57:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-17T11:38:19-04:00</updated>

		<published>2004-12-17T11:38:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44098#p44098</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44098#p44098"/>
		<title type="html"><![CDATA[problems compiling stats.mod on eggdrop1.7]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44098#p44098"><![CDATA[
in 1.6, maskhost() is merely a macro:<div class="codebox"><p>Code: </p><pre><code>src/mod/module.h:#define maskhost(a,b) _maskhost((a),(b),1)src/mod/module.h:#define maskban(a,b) _maskhost((a),(b),0)</code></pre></div>now, the meaning of the third parameter is that when it's 1, the username is not prepended with '*', when it's 0, it is (however, if you have strict-host set to 1, it will always be prepended with '?'); of course, that takes place only if the username begins with [~+-^=]<br><br>you decide what suits you, 0 or 1<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Dec 17, 2004 11:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2004-12-21T12:57:43-04:00</updated>

		<published>2004-12-17T04:19:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44089#p44089</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44089#p44089"/>
		<title type="html"><![CDATA[problems compiling stats.mod on eggdrop1.7]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44089#p44089"><![CDATA[
thx, at least it compiles without warnings in stats.mod now, but itll take some more time till I can test it live <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> (DNS Modul doesn't want to compile, but looks more like a Cygwin enviroment problem, so doesn't belong to here ^^).<br><br>Update: couldnt test it yet, because bot crashes on load, bugzilla ticket submitted ^^.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Dec 17, 2004 4:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-12-17T04:02:39-04:00</updated>

		<published>2004-12-17T04:02:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44088#p44088</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44088#p44088"/>
		<title type="html"><![CDATA[problems compiling stats.mod on eggdrop1.7]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44088#p44088"><![CDATA[
Change it to:<br>  maskhost(s, host, 1);<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Fri Dec 17, 2004 4:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2004-12-17T01:08:58-04:00</updated>

		<published>2004-12-17T01:08:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44086#p44086</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44086#p44086"/>
		<title type="html"><![CDATA[problems compiling stats.mod on eggdrop1.7]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44086#p44086"><![CDATA[
after gettnig along with the moved parts cmdt.h for botnetop it stuck at this:<blockquote class="uncited"><div>make[2]: Entering directory `/home/De Kus/eggdrop1.7/src/mod/stats.mod'<br>gcc -pipe -mwin32 -g -O2 -Wall -I. -I../../.. -I../../.. -I../../../src/mod -DHA<br>VE_CONFIG_H -DSTATIC  -DMAKING_MODS -c stats.c<br>In file included from stats.c:144:<br>user.c: In function `stats_autoadd':<br>user.c:58: error: too few arguments to function<br>make[2]: *** [../stats.o] Error 1<br>make[2]: Leaving directory `/home/De Kus/eggdrop1.7/src/mod/stats.mod'<br>make[1]: *** [stats.mod_o] Error 2</div></blockquote>I compiled exact the same mod (its simply a copy from the folder of eggdrop1.6/...) without such an error.<br><br>Ah, I just figured out some more:<br>user.c:58:  maskhost(s, host);<br>function maskhost is declared in misc.c in 1.7, but i can find only a _maskhost (void _maskhost(const char *s, char *nw, int host)) in the 1.6 version (but it must be somewhere, since it would have given an error about a non declared function <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">).<br>This function needs 3 arguments (void maskhost(const char *s, char *new, int host)), LOL. what shall I add in user.c? ^^<br>Just adding "", seems to satisfy the compiler, but it gives me a warning that leaves the question to me, if it is really a good idea ^^.<blockquote class="uncited"><div>make[2]: Entering directory `/home/De Kus/eggdrop1.7/src/mod/stats.mod'<br>gcc -pipe -mwin32 -g -O2 -Wall -I. -I../../.. -I../../.. -I../../../src/mod -DHA<br>VE_CONFIG_H -DSTATIC  -DMAKING_MODS -c stats.c<br>In file included from stats.c:144:<br>user.c: In function `stats_autoadd':<br>user.c:58: warning: passing arg 3 of pointer to function makes integer from poin<br>ter without a cast<br>rm -f ../stats.o<br>mv stats.o ../<br>make[2]: Leaving directory `/home/De Kus/eggdrop1.7/src/mod/stats.mod'</div></blockquote>OS: CYGWIN_NT-5.1 1.5.12(0.116/4/2)<br>stats version: 1.3.3.dev1 (edited MAKEFILE with .so -&gt; .$(MOD_EXT) and added $(XLIBS) in $(LD) line of course)<br>last know success eggdrop version: latest 1.6 cvs nightly snapshot aka v1.6.18+asuka<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Dec 17, 2004 1:08 am</p><hr />
]]></content>
	</entry>
	</feed>
