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

	<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>2002-07-04T16:03:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Wcc]]></name></author>
		<updated>2002-07-04T16:03:42-04:00</updated>

		<published>2002-07-04T16:03:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8594#p8594</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8594#p8594"/>
		<title type="html"><![CDATA[need help with TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8594#p8594"><![CDATA[
This should do it. I assume the last line was meant to msg the rules to the channel upon connect..<br><div class="codebox"><p>Code: </p><pre><code>set chanrules {   "First Read FAQ before you are going to ask in the channel!"   "Don't pm ops unless they want it!"   "Obey!!"   "Greetz http://www.newmp3hits.com Crew" }bind pub o !rules pub:rulesproc pub:rules {nick uhost hand chan text} {   if {[string compare $text ""] == 0} {    putserv "NOTICE $nick :Usage: !rules &lt;nick&gt;"    return  }  if {![onchan [set rulenick [lindex [split $text ] 0]]]} {    putserv "NOTICE $nick :$rulenick is not on $chan."    return  }  puthelp "PRIVMSG $rulenick :These are the rules of our channel. Pay attention!"   foreach line $::chanrules {    puthelp "NOTICE $rulenick :$line"  }   return 0 }# Comment this next section out if you don't want the bot to msg the# channel rules to the channel upon joining it.bind join - * join:msgrulesproc join:msgrules {nick uhost hand chan} {  if {![isbotnick $nick]} {    return  }  foreach line $::chanrules {    puthelp "PRIVMSG $chan :$line"  }}</code></pre></div>Wcc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=270">Wcc</a> — Thu Jul 04, 2002 4:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-03T12:03:37-04:00</updated>

		<published>2002-07-03T12:03:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8555#p8555</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8555#p8555"/>
		<title type="html"><![CDATA[need help with TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8555#p8555"><![CDATA[
<blockquote class="uncited"><div>for the private msg part you need<br><br>puthelp "PRIVMSG $rulesnick :blah blah etc yadda"<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>for specific channel you could do<br><br>if {$chan == "#mychan"} {<br>do something<br>} else {<br>return 0<br>}<br><br>I think that would work but there's probably a more simple way to do it, I always do everything the hard way  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"></div></blockquote>can you fix it in the script for me<br>i'm a n00b at this:)<p>Statistics: Posted by Guest — Wed Jul 03, 2002 12:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-02T15:45:58-04:00</updated>

		<published>2002-07-02T15:45:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8527#p8527</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8527#p8527"/>
		<title type="html"><![CDATA[need help with TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8527#p8527"><![CDATA[
for the private msg part you need<br><br>puthelp "PRIVMSG $rulesnick :blah blah etc yadda"<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>for specific channel you could do<br><br>if {$chan == "#mychan"} {<br>do something<br>} else {<br>return 0<br>}<br><br>I think that would work but there's probably a more simple way to do it, I always do everything the hard way  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by Guest — Tue Jul 02, 2002 3:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-02T12:20:15-04:00</updated>

		<published>2002-07-02T12:20:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8524#p8524</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8524#p8524"/>
		<title type="html"><![CDATA[need help with TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8524#p8524"><![CDATA[
set chanrules {<br>"First Read FAQ before you are going to ask in the channel!"<br>"Don't pm ops unless they want it!"<br>"Obey!!"<br>"Greetz <a href="http://www.newmp3hits.com" class="postlink">http://www.newmp3hits.com</a> Crew"<br>}<br>bind pub o !rules pub:t<br>proc pub:t {nick uhost hand chan text} {<br>global chanrules<br>set rulenick [lindex [split $text " "] 0]<br>if {$text != "" &amp;&amp; [onchan $rulenick $chan]} {<br>puthelp "NOTICE $rulenick :these are the rules of our channel. Pay attention!"<br>foreach line $chanrules { puthelp "NOTICE $rulenick :$line" }<br>return 0<br>}<br>foreach line $chanrules {puthelp "PRIVMSG $chan :$line" }<br><br><br><br>i want to bind this to a specific channel and i want it that it says the rules in a private message!<p>Statistics: Posted by Guest — Tue Jul 02, 2002 12:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
