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

	<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>2007-05-12T16:02:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-12T16:02:25-04:00</updated>

		<published>2007-05-12T16:02:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72714#p72714</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72714#p72714"/>
		<title type="html"><![CDATA[invite]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72714#p72714"><![CDATA[
Well I didn't apply that since I'm doing the check only once, however I edited the code and applied it; thanks for your suggestion <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat May 12, 2007 4:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2007-05-12T15:58:31-04:00</updated>

		<published>2007-05-12T15:58:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72712#p72712</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72712#p72712"/>
		<title type="html"><![CDATA[invite]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72712#p72712"><![CDATA[
Hi, I see you are using '[lindex [split $arg] 0]' two times and then '[lindex [split $arg] 1]' one time, and I wonder why don't you just:<div class="codebox"><p>Code: </p><pre><code>foreach (foo bar) [split $arg] {break}</code></pre></div>(if I recall corectly) or even make a variable like:<div class="codebox"><p>Code: </p><pre><code>set split [split $arg]</code></pre></div>and use 'split' variable instead of splitting it n times.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat May 12, 2007 3:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-12T16:01:06-04:00</updated>

		<published>2007-05-12T15:48:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72710#p72710</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72710#p72710"/>
		<title type="html"><![CDATA[invite]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72710#p72710"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm n|n * invite:nickproc invite:nick {nick uhost hand chan arg} { foreach {a b} [split $arg] {break} if {[string equal -nocase .invite $a]} {  set cmd .invite  set parm [join [lrange [split $arg] 1 end]] } elseif {[isbotnick $a] &amp;&amp; [string equal -nocase invite $b]} {  set cmd "$::botnick invite"  set parm [join [lrange [split $arg] 2 end]] } if {[info exists cmd]} {  if {[scan $parm {%s %s} c n]!=2} {   puthelp "notice $nick :USAGE: $cmd &lt;#chan&gt; &lt;nick&gt;"   return 0  }  puthelp "invite $n $c"  puthelp "notice $nick :Invited $n to $c" }}</code></pre></div>Edit: Applied caesar's suggestion <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=3085">Sir_Fz</a> — Sat May 12, 2007 3:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[edu]]></name></author>
		<updated>2007-05-12T14:31:15-04:00</updated>

		<published>2007-05-12T14:31:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72704#p72704</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72704#p72704"/>
		<title type="html"><![CDATA[invite]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72704#p72704"><![CDATA[
hey guys, I need some help<div class="codebox"><p>Code: </p><pre><code># Character that will be used before public querriesset edu(cmdchar) "."# Owner flag:set edu(flag.owner) "o"# Voice flagset edu(flag.voice) "V"bind pub $edu(flag.owner)|$edu(flag.voice) $edu(cmdchar)invite edu:pub:invite# .invite &lt;nickname&gt;proc edu:pub:invite {nickname hostname handle channel text} {global eduset text [split $text]set invite_nickname [join [lrange $text 0 1]]if {![channel get $channel [censored]]} {return}  if {![botisop $channel]} { putquick "NOTICE $nickname :ERROR: I'm not opped on $channel" return }if {$invite_nickname == ""} { putquick "NOTICE $nickname :SYNTAX: $edu(cmdchar)invite &lt;nickname&gt;"return }if {[onchan $invite_nickname $channel]} {putquick "NOTICE $nickname :ERROR: $invite_nickname is already in $channel"return}putquick "INVITE $invite_nickname $channel"putquick "NOTICE $nickname :*INVITE* $invite_nickname on $channel"}</code></pre></div>The things I need are the following 1) .invite [#channel] &lt;nickname&gt; and 2) $botnick invite [#channel] &lt;nickname&gt;<br><br>I need you help as soon as possible, please.<br><br>PS: please, thanks.<br><br>PS2: Sorry for my bad english<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8324">edu</a> — Sat May 12, 2007 2:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
