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

	<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>2020-11-14T18:59:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2020-11-14T18:59:14-04:00</updated>

		<published>2020-11-14T18:59:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109174#p109174</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109174#p109174"/>
		<title type="html"><![CDATA[Re: Using Bind msg and Bind Pub for one Proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109174#p109174"><![CDATA[
<blockquote class="uncited"><div>...<br>but somehow remove the variable "text" in the proc when using bind msg?<br></div></blockquote><br>When calling the proc with a bind msg,  how is it going to know what channel to post in?     Is it fixed?.... just one channel?...  and thus you can hard code it?<br><br>In other words:  Need more info.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Nov 14, 2020 6:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-11-14T18:55:06-04:00</updated>

		<published>2020-11-14T18:55:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109173#p109173</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109173#p109173"/>
		<title type="html"><![CDATA[Using Bind msg and Bind Pub for one Proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109173#p109173"><![CDATA[
No, you can't. In msg, you don't have the channel.<br>You can just do the following to "translate" pub to msg:<div class="codebox"><p>Code: </p><pre><code>bind pub - !blah pub:blahbind msg - !blah blahproc pub:blah {nick uhost handle chan text} {   blah $nick $uhost $handle $text}proc blah {nick uhost handle text} {   putserv "PRIVMSG $nick :hello"}</code></pre></div>Or you can do the other way, but you'll have to force msg to be something like "!blah #chan hello pple":<div class="codebox"><p>Code: </p><pre><code>bind pub - !blah blahbind msg - !blah msg:blahproc blah {nick uhost handle chan text} {   putserv "PRIVMSG $chan :$text"}proc msg:blah {nick uhost handle text} {   set chan [join [lindex [split $text] 0]]   # check that $chan is really a channel or exit   set msg [join [lrange [split $text] 1 end]]   blah $nick $uhost $handle $chan $msg}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sat Nov 14, 2020 6:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-11-14T16:18:18-04:00</updated>

		<published>2020-11-14T16:18:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109172#p109172</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109172#p109172"/>
		<title type="html"><![CDATA[Using Bind msg and Bind Pub for one Proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109172#p109172"><![CDATA[
Is it possible to let Bind Msg and Bind Pub use the same proc?<br><br>Like <div class="codebox"><p>Code: </p><pre><code>bind pub - !blah blah:blahbind msg - blah blah:blahproc blah:blah {nick host hand chan text} { putserv "PRIVMSG $chan :blah"}</code></pre></div>but somehow remove the variable "text" in the proc when using bind msg?<br><br>Thanks in advanced  <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=12849">ComputerTech</a> — Sat Nov 14, 2020 4:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
