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

	<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-05T14:52:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-05T14:52:55-04:00</updated>

		<published>2004-12-05T14:52:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43505#p43505</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43505#p43505"/>
		<title type="html"><![CDATA[acces to variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43505#p43505"><![CDATA[
<blockquote class="uncited"><div>another question: there is function (for use in tcl scripts) with name "logfile", declared in tclmisc.c, is there way to call such tcl functions in my module, and to get result  of this functions back to my module?<br>(i've tried to use "do_tcl" but it wasn't work, perhaps i've done somthing wrong?)<br><br>(is it all clear with my sequence of tenses? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">)</div></blockquote>do_tcl() should work, it's properly exported in modules.c and mod/module.h, but you can't get the result back to you; use Tcl_Eval() family of functions (and Tcl_SetVar()) to invoke a TCL command and get the result<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Dec 05, 2004 2:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-05T14:23:27-04:00</updated>

		<published>2004-12-05T14:23:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43500#p43500</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43500#p43500"/>
		<title type="html"><![CDATA[acces to variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43500#p43500"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>the solution is to patch eggdrop to export max_logs for module use (i.e. adding max_logs to global_table in src/modules.c and src/mod/module.h)</div></blockquote>and will my module be working if i decide to export only *.so (or *.dll for win platform) module without a source code?</div></blockquote>I don't get that, seems you are somewhat confused about the whole module thing and programming in general<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Dec 05, 2004 2:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Shmupsik]]></name></author>
		<updated>2004-12-05T14:05:23-04:00</updated>

		<published>2004-12-05T14:05:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43499#p43499</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43499#p43499"/>
		<title type="html"><![CDATA[acces to variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43499#p43499"><![CDATA[
<blockquote class="uncited"><div>the solution is to patch eggdrop to export max_logs for module use (i.e. adding max_logs to global_table in src/modules.c and src/mod/module.h)</div></blockquote>and will my module be working if i decide to export only *.so (or *.dll for win platform) module without a source code?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4946">Shmupsik</a> — Sun Dec 05, 2004 2:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Shmupsik]]></name></author>
		<updated>2004-12-05T14:02:57-04:00</updated>

		<published>2004-12-05T14:02:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43498#p43498</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43498#p43498"/>
		<title type="html"><![CDATA[acces to variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43498#p43498"><![CDATA[
another question: there is function (for use in tcl scripts) with name "logfile", declared in tclmisc.c, is there way to call such tcl functions in my module, and to get result  of this functions back to my module?<br>(i've tried to use "do_tcl" but it wasn't work, perhaps i've done somthing wrong?)<br><br>(is it all clear with my sequence of tenses? <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=4946">Shmupsik</a> — Sun Dec 05, 2004 2:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-04T17:07:33-04:00</updated>

		<published>2004-12-04T17:07:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43446#p43446</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43446#p43446"/>
		<title type="html"><![CDATA[acces to variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43446#p43446"><![CDATA[
the solution is to patch eggdrop to export max_logs for module use (i.e. adding max_logs to global_table in src/modules.c and src/mod/module.h)<br><br>it might be possible however to access such unexported vars simply by declaring them <em class="text-italics">extern</em> - albeit not recommended, you might wish to try it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Dec 04, 2004 5:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Shmupsik]]></name></author>
		<updated>2004-12-04T14:30:03-04:00</updated>

		<published>2004-12-04T14:30:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43443#p43443</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43443#p43443"/>
		<title type="html"><![CDATA[acces to variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43443#p43443"><![CDATA[
word "access" must be with 2 "s"...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4946">Shmupsik</a> — Sat Dec 04, 2004 2:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Shmupsik]]></name></author>
		<updated>2004-12-04T14:26:27-04:00</updated>

		<published>2004-12-04T14:26:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43442#p43442</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43442#p43442"/>
		<title type="html"><![CDATA[acces to variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43442#p43442"><![CDATA[
I have next problem: in my module to eggdrop i need a list of logfiles currently attached to bot (i.e. with the command "logfile" in config file). when I try to use next code:<div class="codebox"><p>Code: </p><pre><code>...extern int max_logs;extern log_t *logs;...for (i = 0; i &lt; max_logs; i++) {...}...</code></pre></div>on compilation of module i've got next errors: "undefined reference to `_max_logs'" and "undefined reference to `_logs'"<br><br>what is the solve? is there another way to get list of this logfiles?<br><br>P.S. sorry for my bad english, it's not my native language...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4946">Shmupsik</a> — Sat Dec 04, 2004 2:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
