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

	<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-01-02T19:10:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[pelefanten]]></name></author>
		<updated>2004-01-02T19:10:39-04:00</updated>

		<published>2004-01-02T19:10:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32095#p32095</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32095#p32095"/>
		<title type="html"><![CDATA[How i can .....]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32095#p32095"><![CDATA[
What you're looking for is probably not a public-command trigger, but rather a public message trigger. <br><div class="codebox"><p>Code: </p><pre><code>static int mymod_pubm(char *nick, char *host, char *handle, char *channel, char *text) {  return 0;}static cmd_t mymod_pubm_tbl[] = {  {"*", "",   mymod_pubm, NULL},  {NULL,  NULL, NULL,       NULL}};</code></pre></div>And then register your function with<div class="codebox"><p>Code: </p><pre><code>add_builtins(H_pubm, mymod_pubm_tbl);</code></pre></div>Think you will need to do a module_depend() call first tho. Dont remeber which module this depends on but a guess is either the irc or server module.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3028">pelefanten</a> — Fri Jan 02, 2004 7:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-12-21T12:05:49-04:00</updated>

		<published>2003-12-21T12:05:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31667#p31667</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31667#p31667"/>
		<title type="html"><![CDATA[How i can .....]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31667#p31667"><![CDATA[
How can i call a function when user type any text ?<br>static cmd_t mtxhi_pub[] = {<br> {"!hi", "", pub_hi, NULL},<br> {NULL,NULL, NULL  , NULL}<br>};<br>This will call pub_hi, when user type !hi, but how can i get any typed text ??<br>i try with "", but ........... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>(sorry for my bad english)<br><br>Any ideas ?<p>Statistics: Posted by Guest — Sun Dec 21, 2003 12:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
