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

	<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>2003-11-08T20:58:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-11-08T20:58:05-04:00</updated>

		<published>2003-11-08T20:58:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29740#p29740</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29740#p29740"/>
		<title type="html"><![CDATA[global variable to return pub trigger?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29740#p29740"><![CDATA[
ahhhhhhhhhh,<br>thanks strikelight<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Sat Nov 08, 2003 8:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-11-08T20:51:06-04:00</updated>

		<published>2003-11-08T20:51:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29739#p29739</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29739#p29739"/>
		<title type="html"><![CDATA[global variable to return pub trigger?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29739#p29739"><![CDATA[
<blockquote class="uncited"><div>ok, this is the correct structure?<br><br>bind pub -|- aaa [list pri:trigger aaa]<br><br>proc pri:trigger {nick uhost handle channel text trigger} {<br><br># $trigger == aaa  ???<br><br>}</div></blockquote>no.. as user said, it is aaa +  the regular arguments...<br><br>so... more explicit:<br><div class="codebox"><p>Code: </p><pre><code>proc pri:trigger {trigger nick uhost hand chan text} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Nov 08, 2003 8:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-11-08T20:32:04-04:00</updated>

		<published>2003-11-08T20:32:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29737#p29737</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29737#p29737"/>
		<title type="html"><![CDATA[global variable to return pub trigger?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29737#p29737"><![CDATA[
ok, this is the correct structure?<br><br>bind pub -|- aaa [list pri:trigger aaa]<br><br>proc pri:trigger {nick uhost handle channel text trigger} {<br><br># $trigger == aaa  ???<br><br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Sat Nov 08, 2003 8:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-11-08T20:26:35-04:00</updated>

		<published>2003-11-08T20:26:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29736#p29736</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29736#p29736"/>
		<title type="html"><![CDATA[global variable to return pub trigger?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29736#p29736"><![CDATA[
thanks User  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Sat Nov 08, 2003 8:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-11-04T10:35:41-04:00</updated>

		<published>2003-11-04T10:35:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29472#p29472</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29472#p29472"/>
		<title type="html"><![CDATA[global variable to return pub trigger?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29472#p29472"><![CDATA[
Check the global variable 'lastbind', like caesar said or, if you want some other additional argument passed along from the bind, pass a list of command +argument(s) to 'bind' like this:<div class="codebox"><p>Code: </p><pre><code>bind pub -|- aaa [list pri:trigger aaa]</code></pre></div>Now pri:trigger will be called with 6 arguments; the string "aaa" + the default ones (nick, uhost, hand, chan and arg)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Nov 04, 2003 10:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-11-03T12:34:25-04:00</updated>

		<published>2003-11-03T12:34:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29429#p29429</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29429#p29429"/>
		<title type="html"><![CDATA[global variable to return pub trigger?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29429#p29429"><![CDATA[
Check the lastbind thing, maybe will help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Nov 03, 2003 12:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-11-03T11:30:26-04:00</updated>

		<published>2003-11-03T11:30:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29420#p29420</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29420#p29420"/>
		<title type="html"><![CDATA[global variable to return pub trigger?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29420#p29420"><![CDATA[
why won't you use pubm ? use pubm and length to check if = 3 letter, then you won't use more than 1 proc or 2.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Nov 03, 2003 11:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-11-03T10:45:37-04:00</updated>

		<published>2003-11-03T10:45:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29413#p29413</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29413#p29413"/>
		<title type="html"><![CDATA[global variable to return pub trigger?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29413#p29413"><![CDATA[
that's the problem,<br>i am trying to cut the code down.<br>as is i have like 15 procs all steaming from<br>the channel text trigger.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Mon Nov 03, 2003 10:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2003-11-03T10:29:59-04:00</updated>

		<published>2003-11-03T10:29:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29409#p29409</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29409#p29409"/>
		<title type="html"><![CDATA[global variable to return pub trigger?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29409#p29409"><![CDATA[
I dont know any, but you could make something like<br>bind pub -|- aaa pri:trigger:aaa<br>bind pub -|- bbb pri:trigger:bbb<br>bind pub -|- ccc pri:trigger:ccc<br><br><br>proc pri:trigger:aaa {stuff} {<br>  pri:tigger $stuff aaa<br>}<br>proc pri:trigger:bbb {stuff} {<br>  pri:tigger $stuff bbb<br>}<br>proc pri:trigger:ccc {stuff} {<br>  pri:tigger $stuff ccc<br>}<br><br>proc pri:trigger {stuff xxx} {<br>}<br><br>no nice code, but you will need only 1 main proc and you will be able to check $xxx to see from where it was called.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Nov 03, 2003 10:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-11-03T10:22:14-04:00</updated>

		<published>2003-11-03T10:22:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29407#p29407</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29407#p29407"/>
		<title type="html"><![CDATA[global variable to return pub trigger?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29407#p29407"><![CDATA[
what global variable will return the word that triggered the proc?<br>eg. aaa bbb ccc<br>I need to use pub instead of pubm<br>Is this possible?<br><br>bind pub -|- aaa pri:trigger<br>bind pub -|- bbb pri:trigger<br>bind pub -|- ccc pri:trigger<br><br><br>proc pri:trigger {stuff} {<br><br><br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Mon Nov 03, 2003 10:22 am</p><hr />
]]></content>
	</entry>
	</feed>
