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

	<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-01-03T08:32:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2003-01-03T08:32:55-04:00</updated>

		<published>2003-01-03T08:32:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14834#p14834</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14834#p14834"/>
		<title type="html"><![CDATA[making pubm work on only one channel? - Linked to loops thrd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14834#p14834"><![CDATA[
that works nicely, thank you very much <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=1195">Weirdo</a> — Fri Jan 03, 2003 8:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-01-03T08:28:07-04:00</updated>

		<published>2003-01-03T08:28:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14833#p14833</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14833#p14833"/>
		<title type="html"><![CDATA[making pubm work on only one channel? - Linked to loops thrd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14833#p14833"><![CDATA[
as for making it only react in one channel.... unless you have multiple channels in $chanl... you could just use <div class="codebox"><p>Code: </p><pre><code>bind pubm - "#channel *" pubm:pubnotc</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Fri Jan 03, 2003 8:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-01-02T22:50:56-04:00</updated>

		<published>2003-01-02T22:50:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14817#p14817</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14817#p14817"/>
		<title type="html"><![CDATA[Re: making pubm work on only one channel? - Linked to loops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14817#p14817"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>#bind pubm - * pubm:pubnotcproc pubm:pubnotc {nick uhost handle chan text} {global chanl network notice activeif {$active == 1} {putnotc $nick $notice(public)putlog "Notice sent to $nick" }}</code></pre></div>This is what i have so far. I want to make it so that it doesnt flood out the bot, ie, make a queue, so that multiple notices wont be queued for one person, and so that it will only read the text on the $chanl specified, instead of all channels. <br><br>Any way of doing this?<br><br>This is the option i have to the other thread i made, the figuring out loops. <br>the basic outocme of this is a way to tell people in channel, that we are moving networks. Since this is happening tomorrow night, i have to find a way through this pretty quickly <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>Are you sure you want to send a notice to someone everytime text is typed in the channel? (btw, your bind is commented out, so this won't happen anyways at the moment).<br><br>But in any event, I would recommend using 'puthelp "NOTICE $nick :text...' as opposed to putnotc.. I'm not sure, but I believe the putnotc procedure uses the putserv queue which could allow the bot to flood itself off irc.<br><br>As for a simple queue... You could either make a list or an array... I'd recommend an array, as it would be easier to maintain (ie. deletion of an element after x amount of time), such as:<br><div class="codebox"><p>Code: </p><pre><code>bind pubm - * pubm:pubnotcproc pubm:pubnotc {nick uhost handle chan text} {   global chanl network notice active netchange   if {($active == 1) &amp;&amp; (![info exists netchange($uhost)])} {     puthelp "NOTICE $nick :$notice(public)"     putlog "Notice sent to $nick"     set netchange($uhost) 1    #unset the value after an hour (i find utimers more stable than timers)     utimer 3600 [list unset netchange($uhost)]   }}</code></pre></div>Hope this helps<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Jan 02, 2003 10:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2003-01-02T16:27:20-04:00</updated>

		<published>2003-01-02T16:27:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14793#p14793</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14793#p14793"/>
		<title type="html"><![CDATA[making pubm work on only one channel? - Linked to loops thrd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14793#p14793"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>#bind pubm - * pubm:pubnotcproc pubm:pubnotc {nick uhost handle chan text} {global chanl network notice activeif {$active == 1} {putnotc $nick $notice(public)putlog "Notice sent to $nick" }}</code></pre></div>This is what i have so far. I want to make it so that it doesnt flood out the bot, ie, make a queue, so that multiple notices wont be queued for one person, and so that it will only read the text on the $chanl specified, instead of all channels. <br><br>Any way of doing this?<br><br>This is the option i have to the other thread i made, the figuring out loops. <br>the basic outocme of this is a way to tell people in channel, that we are moving networks. Since this is happening tomorrow night, i have to find a way through this pretty quickly <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=1195">Weirdo</a> — Thu Jan 02, 2003 4:27 pm</p><hr />
]]></content>
	</entry>
	</feed>
