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

	<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>2003-10-26T16:42:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[UmbraSG]]></name></author>
		<updated>2003-10-26T16:42:38-04:00</updated>

		<published>2003-10-26T16:42:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29033#p29033</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29033#p29033"/>
		<title type="html"><![CDATA[*frustrated, anuerisming, and postal*]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29033#p29033"><![CDATA[
Well, I can't seem to get my module to check if the user is on the channel is op/voice.  When I've tested it with putlog() function, it doesn't post any of the comments.  Super, ultramega, uber frustrating!!!!  Am I missing something?????<br><br>I've stolen this lil'snippet from the banpub module:<div class="codebox"><p>Code: </p><pre><code>static int isov (char *nick, char *channel) {  memberlist *m;  char s[UHOSTLEN];  struct chanset_t *chan = findchan(channel);  struct flag_record fr = { FR_GLOBAL | FR_CHAN, 0, 0, 0, 0, 0 };  if (match_my_nick (nick)) return 0;  if ((m = ismember(chan, nick)) &amp;&amp; ((chan_hasop(m)) || (chan_hasvoice(m))))    return 1;  return 0;}</code></pre></div>Of course, I modified it a little (removed !kbop &amp; !kbvoice int vars).  However, it's still unresponsive.  <br><br>Basically, I'm trying to make an fserver voice module for a channel that I'm on, however, I've been very unsuccessful.  I don't like TCL, or any scrpts for that matter, but it seems that's all I'm left with since those work near perfectly.<br><br>Umbra<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2047">UmbraSG</a> — Sun Oct 26, 2003 4:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[UmbraSG]]></name></author>
		<updated>2003-10-23T02:52:11-04:00</updated>

		<published>2003-10-23T02:52:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28819#p28819</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28819#p28819"/>
		<title type="html"><![CDATA[TCL commands imported.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28819#p28819"><![CDATA[
Thanks!  I got the timers to work perfectly.   Still learning my way around the eggy's code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2047">UmbraSG</a> — Thu Oct 23, 2003 2:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BarkerJr]]></name></author>
		<updated>2003-10-23T00:10:44-04:00</updated>

		<published>2003-10-23T00:10:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28810#p28810</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28810#p28810"/>
		<title type="html"><![CDATA[TCL commands imported.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28810#p28810"><![CDATA[
There's some interesting hooks for timers.<br><br>You can make a function get called every second.  Add the hook where you bind stuff and delete it where you unbind.<br><div class="codebox"><p>Code: </p><pre><code>add_hook(HOOK_SECONDLY, (Function)megahal_hook_secondly);static void megahal_hook_secondly(void){whatever}del_hook(HOOK_SECONDLY, (Function)megahal_hook_secondly);</code></pre></div>Of course, if you only want it to happen every 5 seconds, you could do something easy like.<br><div class="codebox"><p>Code: </p><pre><code>static void mymod_hook_secondly(void){  static unsigned char ctr;  if (ctr &gt;= 5) ctr=0;  else  {    ctr++;    return;  }whatever}</code></pre></div><br>         HOOK_SECONDLY   - called every second<br>         HOOK_MINUTELY   - called every minute<br>         HOOK_5MINUTELY  - called every 5 minutes<br>         HOOK_HOURLY     - called every hour (hourly-updates minutes past)<br>         HOOK_DAILY      - called when the logfiles are switched<br><br>See doc/MODULES.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2933">BarkerJr</a> — Thu Oct 23, 2003 12:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[UmbraSG]]></name></author>
		<updated>2003-10-22T05:23:46-04:00</updated>

		<published>2003-10-22T05:23:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28778#p28778</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28778#p28778"/>
		<title type="html"><![CDATA[TCL commands imported.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28778#p28778"><![CDATA[
hehe, yah I found out that space wasn't good, as well as the args for 'notc_hook'  Learning C all over again, well, the more advanced parts of C like queues and linked lists.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"> <br><br>Currently, I need to implement a timer so I can track bans, since this too will be added to the module or another one.<br><br>Thanks for your comment.  Any other suggestions/comments are welcome!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2047">UmbraSG</a> — Wed Oct 22, 2003 5:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BarkerJr]]></name></author>
		<updated>2003-10-22T00:43:49-04:00</updated>

		<published>2003-10-22T00:43:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28772#p28772</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28772#p28772"/>
		<title type="html"><![CDATA[Re: TCL commands imported.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28772#p28772"><![CDATA[
<blockquote class="uncited"><div>Context;</div></blockquote>Don't use Context anymore.  It just wastes CPU and doesn't give any useful output.<br><blockquote class="uncited"><div>dprintf(DP_SERVER, "PRIVMSG %s : !list\n", sv_channel);</div></blockquote>I don't think you want the space after the colon.  I don't think any file servers respond to <em class="text-italics">!list</em> if it's prefixed with a space.<br><blockquote class="uncited"><div>static void notc_hook(char* nick, char* uhost, char* hand, char* msg)</div></blockquote>Are you sure that's the right arguments?  tcl-commands.doc shows: &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;text&gt; &lt;dest&gt;<br><br>Of course, if it works...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2933">BarkerJr</a> — Wed Oct 22, 2003 12:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[UmbraSG]]></name></author>
		<updated>2003-10-26T16:35:47-04:00</updated>

		<published>2003-10-20T02:34:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28692#p28692</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28692#p28692"/>
		<title type="html"><![CDATA[TCL commands imported.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28692#p28692"><![CDATA[
Can I get tcl commands imported into my module, like isop, isbotop, etc, etc., etc.?<br><br>TIA<br><br>*edited* <br>Nevermind, I have seemed to find the answer to the above question, but I have another if you all don't mind.  I"m currently working on an fserver voicing module, but I can't seem to get it to processes what I'm looking for.  I'll post the code below.  Forgive me, it's been a while since  I have programmed in depth in C (~3yrs).  <br><br>*NOTE* 'char sv_channel[31]' is set by a tcl script.<br><br>UmbraSG<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2047">UmbraSG</a> — Mon Oct 20, 2003 2:34 am</p><hr />
]]></content>
	</entry>
	</feed>
