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

	<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>2011-10-24T11:34:31-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-10-24T11:34:31-04:00</updated>

		<published>2011-10-24T11:34:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98009#p98009</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98009#p98009"/>
		<title type="html"><![CDATA[Auto join on invite]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98009#p98009"><![CDATA[
Hi matt932,<br>This will require a custom script, as there is no native function for this:<br><br>To trigger on the invite, you'll need to use a raw binding, looking for the INVITE keyword.<br>To make your eggdrop join the channel, you'll need to use the "channel add" command.<br><br>A rough (rather unsafe) script would look somewhat like follows. Be adviced this script does no permission-checks whatsoever - You'll probably want to add something to restrict who may use it...<div class="codebox"><p>Code: </p><pre><code>bind raw - INVITE checkInvitesproc checkInvites {from keyword text} {  set args [split $text]  set channel [lindex $args 1]  channel add $channel  return 0}</code></pre></div>A version with some safetychecks, though it requires the inviter to have op privileges and be in a channel where your eggdrop can see them before accepting the invite:<div class="codebox"><p>Code: </p><pre><code>bind raw - INVITE checkInvitesproc checkInvites {from keyword text} {  set args [split $text]  set channel [lindex $args 1]  set handle [nick2hand $from]  if {$handle == "" || ![matchattr $handle +mno]} {    return 0  }  channel add $channel  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Oct 24, 2011 11:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[matt932]]></name></author>
		<updated>2011-10-23T23:52:58-04:00</updated>

		<published>2011-10-23T23:52:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98004#p98004</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98004#p98004"/>
		<title type="html"><![CDATA[Auto join on invite]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98004#p98004"><![CDATA[
How can i make eggdrop auto join a channel when its invited to it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11819">matt932</a> — Sun Oct 23, 2011 11:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
