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

	<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>2009-05-25T01:19:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[boehmi]]></name></author>
		<updated>2009-05-25T01:19:42-04:00</updated>

		<published>2009-05-25T01:19:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88929#p88929</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88929#p88929"/>
		<title type="html"><![CDATA[Bind: same proc, different arguments]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88929#p88929"><![CDATA[
Ah ok... i thougth the <ul> <li>version would overwrite the default parameters.<br><br>Thanks a lot</li></ul><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10592">boehmi</a> — Mon May 25, 2009 1:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-05-24T18:11:10-04:00</updated>

		<published>2009-05-24T18:11:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88927#p88927</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88927#p88927"/>
		<title type="html"><![CDATA[Bind: same proc, different arguments]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88927#p88927"><![CDATA[
You just use the last variable (arg in user's example):<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !test1 proc1proc proc1 {nick host handle channel arg} {  puthelp "PRIVMSG $channel :Hey $nick, thanks for the $arg"}</code></pre></div>The above example will make your eggie echo back whatever people pass as an argument with !test1. If we were to extend this with the previous code, it'd probably look a little like this:<div class="codebox"><p>Code: </p><pre><code>bind pub - !test1 [list "proc1" "test1"]bind pub - !test2 [list "proc1" "test2"]proc proc1 {custom nick host handle channel arg} {  if {$custom == "test1"} {    puthelp "PRIVMSG $channel :Hey $nick, thanks for the $arg"  }  puthelp "PRIVMSG $channel :*waves*"}</code></pre></div>Here with the added feature that it'll do the echo only for !test1, but the *waves* for both !test1 and !test2.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun May 24, 2009 6:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[boehmi]]></name></author>
		<updated>2009-05-24T17:53:26-04:00</updated>

		<published>2009-05-24T17:53:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88926#p88926</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88926#p88926"/>
		<title type="html"><![CDATA[Bind: same proc, different arguments]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88926#p88926"><![CDATA[
thank you very much, but what if i additionally want to get the arguments?<br><br>e.g.<br>!test1 10<br>!test1 20<br>!test2 20<br><br>something like<br>bind pub - !test1 [list proc1 $args test1] <br>bind pub - !test2 [list proc1 $args "something else"]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10592">boehmi</a> — Sun May 24, 2009 5:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2009-04-22T07:00:18-04:00</updated>

		<published>2009-04-22T07:00:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88531#p88531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88531#p88531"/>
		<title type="html"><![CDATA[Re: Bind: same proc, different arguments]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88531#p88531"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !test1 [list proc1 test1]bind pub - !test2 [list proc1 "something else"]proc proc1 {addedArg nick uhost hand chan arg} {...}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Apr 22, 2009 7:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[boehmi]]></name></author>
		<updated>2009-04-22T05:52:37-04:00</updated>

		<published>2009-04-22T05:52:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88530#p88530</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88530#p88530"/>
		<title type="html"><![CDATA[Bind: same proc, different arguments]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88530#p88530"><![CDATA[
Hi,<br><br>is there a possibility for calling the same procedure with different arguments with bind pub?<br><br>Like:<br>bind pub "-|-" !test1 proc1 "test1"<br>bind pub "-|-" !test2 proc1 "something else"<br>bind pub "-|-" !test3 proc1 "lalala"<br><br>Thanks for your help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10592">boehmi</a> — Wed Apr 22, 2009 5:52 am</p><hr />
]]></content>
	</entry>
	</feed>
