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

	<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>2012-03-23T15:30:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-03-23T15:30:19-04:00</updated>

		<published>2012-03-23T15:30:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99107#p99107</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99107#p99107"/>
		<title type="html"><![CDATA[Simple invite script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99107#p99107"><![CDATA[
Visual,<br>Your script should work well enough, though you don't need the "global botnick" part. The first reason I could think of, for this to not work, is that your eggdrop does not recognize you as an owner. The second I could think of, would be if your eggdrop isn't opped on the channel.<br><br>Clubber,<br>$text does not hold a valid tcl-list, so you cannot use lindex here. You'd atleast have to split the string into a list first (using split).<br>Also, matching against a litteral nick is not the best practise for security.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Mar 23, 2012 3:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[visual]]></name></author>
		<updated>2012-03-23T12:28:19-04:00</updated>

		<published>2012-03-23T12:28:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99106#p99106</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99106#p99106"/>
		<title type="html"><![CDATA[Simple invite script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99106#p99106"><![CDATA[
Thanks but if i'm correct wouldn't this just be inviting me? the owner? Or whatever nick i'll be putting on the "Rootnick"?<br><br>What i wanted is, that i can command the bot to invite whichever or whoever person/nick i specify after the ~invite command. Thanks again.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11922">visual</a> — Fri Mar 23, 2012 12:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Regex]]></name></author>
		<updated>2012-03-23T05:45:14-04:00</updated>

		<published>2012-03-23T05:45:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99104#p99104</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99104#p99104"/>
		<title type="html"><![CDATA[Simple invite script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99104#p99104"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - ~invite do_invite proc do_invite {nick uhost hand chan text} {   global botnick   if {![string match -nocase "Rootnick" $nick]} { return }  set inv(nick) [lindex $text 0]  set inv(chan) [lindex $text 1]  putserv "INVITE $inv(nick) $inv(chan)" }</code></pre></div>"Rootnick" is your nick. Please change it.<br>You may use this script like that ~invite nick #channel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11617">Regex</a> — Fri Mar 23, 2012 5:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[visual]]></name></author>
		<updated>2012-03-23T04:34:21-04:00</updated>

		<published>2012-03-23T04:34:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99100#p99100</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99100#p99100"/>
		<title type="html"><![CDATA[Simple invite script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99100#p99100"><![CDATA[
Hi, i have tried making this script which will trigger the bot to invite the given nick but it seems to be not responding. What did i miss here? Thanks in advance.<div class="codebox"><p>Code: </p><pre><code>bind pub n ~invite pub_do_inviteproc pub_do_invite {nick uhost hand chan arg} {global botnickputserv "INVITE $arg $chan"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11922">visual</a> — Fri Mar 23, 2012 4:34 am</p><hr />
]]></content>
	</entry>
	</feed>
