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

	<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>2005-10-11T03:44:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-10-11T03:44:07-04:00</updated>

		<published>2005-10-11T03:44:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56535#p56535</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56535#p56535"/>
		<title type="html"><![CDATA[Help making this script relay]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56535#p56535"><![CDATA[
Change<div class="codebox"><p>Code: </p><pre><code>global onjoin_msg onjoin_chans botnick</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>global onjoin_msg onjoin_chans botnick relaychan</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Oct 11, 2005 3:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stevegarbz]]></name></author>
		<updated>2005-10-10T18:42:58-04:00</updated>

		<published>2005-10-10T18:42:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56524#p56524</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56524#p56524"/>
		<title type="html"><![CDATA[Help making this script relay]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56524#p56524"><![CDATA[
Thanks for the effort but<br><br>[15:43] Tcl error [join_onjoin]: can't read "relaychan": no such variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5732">stevegarbz</a> — Mon Oct 10, 2005 6:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-10-09T16:52:28-04:00</updated>

		<published>2005-10-09T16:52:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56486#p56486</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56486#p56486"/>
		<title type="html"><![CDATA[Help making this script relay]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56486#p56486"><![CDATA[
Why does it message the channel. I would think that notice is alot better, otherwise it will spam the channel with welcome messages. This is better<br><div class="codebox"><p>Code: </p><pre><code>set onjoin_msg {  {   "Hello $nick, welcome to $chan. This channel is owned by Precision Effect and has moved to #PE or www.PrecisionEffect.com - Please join there for sales/support."  } } set onjoin_chans "#1.6 #6radio #advertize #adz #e-sports #esports #find #hix #radio #ringer #scrim #search #webhosting #webdesign" set relaychan "#PE-Bot"bind join - * join_onjoin putlog "Onjoin.tcl 0.1 by Banned loaded" proc join_onjoin {nick uhost hand chan} {  global onjoin_msg onjoin_chans botnick  if {(([lsearch -exact [string tolower $onjoin_chans] [string tolower $chan]] != -1) || ($onjoin_chans == "*")) &amp;&amp; (![matchattr $hand b]) &amp;&amp; ($nick != $botnick)} {   set onjoin_temp [lindex $onjoin_msg [rand [llength $onjoin_msg]]]   foreach msgline $onjoin_temp {    putquick "NOTICE $nick :[subst $msgline]"   }  putquick "PRIVMSG $relaychan :On-join message sent to $nick on $chan"  } } </code></pre></div>That will notice $nick with the welcome message, and message $relaychan with On-join message sent to $nick on $chan<br><br>If you dont want it to notice $nick with the welcome message, just change<div class="codebox"><p>Code: </p><pre><code>putquick "NOTICE $nick :[subst $msgline]" toputquick "PRIVMSG $chan :[subst $msgline]"</code></pre></div>Enjoy!!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Sun Oct 09, 2005 4:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stevegarbz]]></name></author>
		<updated>2005-10-09T16:29:30-04:00</updated>

		<published>2005-10-09T16:29:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56485#p56485</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56485#p56485"/>
		<title type="html"><![CDATA[Help making this script relay]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56485#p56485"><![CDATA[
I currently have this script:<br><div class="codebox"><p>Code: </p><pre><code>set onjoin_msg { {  "Hello $nick, welcome to $chan. This channel is owned by Precision Effect and has moved to #PE or www.PrecisionEffect.com - Please join there for sales/support." }}set onjoin_chans "#1.6 #6radio #advertize #adz #e-sports #esports #find #hix #radio #ringer #scrim #search #webhosting #webdesign"bind join - * join_onjoinputlog "Onjoin.tcl 0.1 by Banned loaded"proc join_onjoin {nick uhost hand chan} { global onjoin_msg onjoin_chans botnick if {(([lsearch -exact [string tolower $onjoin_chans] [string tolower $chan]] != -1) || ($onjoin_chans == "*")) &amp;&amp; (![matchattr $hand b]) &amp;&amp; ($nick != $botnick)} {  set onjoin_temp [lindex $onjoin_msg [rand [llength $onjoin_msg]]]  foreach msgline $onjoin_temp {   putquick "PRIVMSG $chan :[subst $msgline]"  } }}</code></pre></div>Is there anyway that when it sends the message to the certain nick that joined, it can relay something like:<br><br>Say the bot was in #PE-Bot and I wanted it to say who it messaged:<br><br>On-join message sent to $nick in $chan<br><br><br>Example: The bot is in a channel #esports<br><br>Someone joins #esports<br>Bot messages #esports with the onjoin msg stated<br><br>Bot messages #PE-Bot<br>On-join message sent to $nick in $chan<br><br><br>-Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5732">stevegarbz</a> — Sun Oct 09, 2005 4:29 pm</p><hr />
]]></content>
	</entry>
	</feed>
