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

	<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>2004-10-03T12:48:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-03T12:48:28-04:00</updated>

		<published>2004-10-03T12:48:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41516#p41516</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41516#p41516"/>
		<title type="html"><![CDATA[whois script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41516#p41516"><![CDATA[
Yeah well that was a typing error, I guess he has some common sense to understand that. Well to halt it, I would recommend you use the return command.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Oct 03, 2004 12:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-10-03T08:42:26-04:00</updated>

		<published>2004-10-03T08:42:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41513#p41513</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41513#p41513"/>
		<title type="html"><![CDATA[whois script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41513#p41513"><![CDATA[
I belive it should be "my:proc" not "myproc" and don't add "return 0" just to be there just in case like you usualy do with the "global botnick" <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Oct 03, 2004 8:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-10-03T07:03:46-04:00</updated>

		<published>2004-10-03T07:03:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41509#p41509</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41509#p41509"/>
		<title type="html"><![CDATA[whois script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41509#p41509"><![CDATA[
Well i didnt write it<br>Someone else did and he asked me to fix it and seeing as i didnt know how, i asked here <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Sun Oct 03, 2004 7:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-02T08:06:03-04:00</updated>

		<published>2004-10-02T08:06:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41499#p41499</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41499#p41499"/>
		<title type="html"><![CDATA[whois script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41499#p41499"><![CDATA[
Blah.<br><br>It should be:<br><div class="codebox"><p>Code: </p><pre><code>bind pub n "!whois" my:procproc myproc {nick uhost hand chan text} { putserv "WHOIS [lindex $text 0]" return 0}</code></pre></div>Then bind raw's will automatically trigger your main proc, the long one which you showed! Use arguments {from keyword arg}.<br><br>Note: Do not 'return 0'. For all procs binding to "RAW" use 'return 1' that is better.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Oct 02, 2004 8:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-10-01T15:14:44-04:00</updated>

		<published>2004-10-01T15:14:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41490#p41490</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41490#p41490"/>
		<title type="html"><![CDATA[whois script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41490#p41490"><![CDATA[
Read the docs... (bind raw doesn't need the same args as pub does....)  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Fri Oct 01, 2004 3:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-10-01T14:52:47-04:00</updated>

		<published>2004-10-01T14:52:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41489#p41489</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41489#p41489"/>
		<title type="html"><![CDATA[whois script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41489#p41489"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>## Bindsbind raw - 311 Public:whoisbind raw - 319 Public:whoisbind raw - 312 Public:whoisbind raw - 330 Public:whoisbind raw - 318 Public:whoisbind pub o|o !whois Public:whois## Procsproc Public:whois {nick uhost hand chan text} {  set person [lindex [split $text] 0]  putserv "PRIVMSG $chan :4»» Whoise $person ..."  putserv "WHOIS $person"  if {[string match -nocase "*No such nickname*" $text]} {    putserv "PRIVMSG $chan :4»» Unbekannte Person."    return  }  if {[string match -nocase "*Whois*" $text]} {    putserv "PRIVMSG $chan :4»» Whois: [lindex [split $text] 0] [lindex [split $text] 1] [lindex [split $text] 2]"    return  }  if {[string match -nocase "*Server*" $text]} {    putserv "PRIVMSG $chan :4»» Server: [lindex [split $text] 0]"    return  }  if {[string match -nocase "*is authed as" $text]} {    putserv "PRIVMSG $chan :4»» $person is authed as [lindex [split $text] 0]."    return 0  }}</code></pre></div>I get the errormessages:<br><div class="codebox"><p>Code: </p><pre><code>[20:53:27] &lt;Q13&gt; [20:53] Tcl error [Public:whois]: wrong # args: should be "Public:whois nick uhost hand chan text"[20:53:27] &lt;Q13&gt; [20:53] Tcl error [Public:whois]: wrong # args: should be "Public:whois nick uhost hand chan text"[20:53:27] &lt;Q13&gt; [20:53] Tcl error [Public:whois]: wrong # args: should be "Public:whois nick uhost hand chan text"[20:53:27] &lt;Q13&gt; [20:53] Tcl error [Public:whois]: wrong # args: should be "Public:whois nick uhost hand chan text"[20:53:27] &lt;Q13&gt; [20:53] Tcl error [Public:whois]: wrong # args: should be "Public:whois nick uhost hand chan text"</code></pre></div>I don't understand how to fix it though <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri Oct 01, 2004 2:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
