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

	<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-03-18T05:25:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-03-18T05:25:56-04:00</updated>

		<published>2003-03-18T05:25:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17959#p17959</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17959#p17959"/>
		<title type="html"><![CDATA[same problem with prioritets]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17959#p17959"><![CDATA[
Scrap the first reply, I noticed I hadn't read things properly.<br><br>The reason is because of your "JOIN" message in the script.<br><br>You have to remember that messages have to traverse a network of interconnected servers, before it finaly reaches its destination. This applies with everything from servers, to nicknames, to services.<br><br>Look at how how it needs to traverse before it reaches the destination.<br><br>JOIN - This goes to the local server, which will process the command.<br><br>PRIVMSG to chanserv - This goes to the local server, then traverses each server between the link to chanserv services.<br><br>Allthough you are sending the PRIVMSG before the JOIN, its 99% likely that the JOIN is being processed before the INVITE gets back to eggdrop.<br><br>The quickest way to solve this, is to force send the JOIN later than the PRIVMSG, possibly using a timer<div class="codebox"><p>Code: </p><pre><code>proc need_unban {chan type} {   global chanserv channel   putquick "PRIVMSG $chanserv :invite $chan"   utimer 2 [list putserv "JOIN $chan"]  puthelp "PRIVMSG $chanserv :unban $chan me" }</code></pre></div>This will wait 2 seconds before even attempting to place the message in the queue<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Mar 18, 2003 5:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fox17]]></name></author>
		<updated>2003-03-18T04:49:12-04:00</updated>

		<published>2003-03-18T04:49:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17958#p17958</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17958#p17958"/>
		<title type="html"><![CDATA[same problem with prioritets]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17958#p17958"><![CDATA[
When my bot needs unban, then this script start work:<blockquote class="uncited"><div>proc need_unban {chan type} {<br>global chanserv channel<br>    putquick "PRIVMSG $chanserv :invite $chan"<br>    putserv "JOIN $chan"<br>    puthelp "PRIVMSG $chanserv :unban $chan me"<br>}</div></blockquote>1) Invite bot<br>2) Bot join $chan<br>3) Unban bot<br><br>On first kickban, when on channel set +k (key) mode, we see this:<blockquote class="uncited"><div>mode: (da|Fire_FoX) sets (-o+b TestBot *!*@atlant.vescom.ru)<br>kick: (TestBot) was kicked by (da|Fire_FoX) <br><br> -vescom.dal.net.ru@#TestBot- ChanServ invited TestBot into the channel.<br> join: (TestBot) (~<a href="mailto:TestBot@atlant.vescom.ru">TestBot@atlant.vescom.ru</a>)<br>mode: (ChanServ) sets (+o TestBot)<br>mode: (ChanServ) sets (-b *!*@atlant.vescom.ru)</div></blockquote>It's ok, but on second kickban<blockquote class="uncited"><div>mode: (da|Fire_FoX) sets (-o+b TestBot *!*@atlant.vescom.ru)<br>kick: (TestBot) was kicked by (da|Fire_FoX) <br><br>-vescom.dal.net.ru@#TestBot- ChanServ invited TestBot into the channel.<br>mode: (ChanServ) sets (-b *!*@atlant.vescom.ru)</div></blockquote>problem with join on channel <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>How to fix it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2288">fox17</a> — Tue Mar 18, 2003 4:49 am</p><hr />
]]></content>
	</entry>
	</feed>
