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

	<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>2004-01-23T20:29:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-01-23T20:29:40-04:00</updated>

		<published>2004-01-23T20:29:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32814#p32814</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32814#p32814"/>
		<title type="html"><![CDATA[newbie help with tcl scripting]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32814#p32814"><![CDATA[
<a href="http://www.tcl.tk/man" class="postlink">http://www.tcl.tk/man</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Jan 23, 2004 8:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-01-22T21:13:25-04:00</updated>

		<published>2004-01-22T21:13:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32799#p32799</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32799#p32799"/>
		<title type="html"><![CDATA[newbie help with tcl scripting]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32799#p32799"><![CDATA[
where exactly can i get a copy of this TCL SCRIPTS Manual???[/quote][/code]<p>Statistics: Posted by Guest — Thu Jan 22, 2004 9:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Souperman]]></name></author>
		<updated>2003-12-24T16:45:32-04:00</updated>

		<published>2003-12-24T16:45:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31767#p31767</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31767#p31767"/>
		<title type="html"><![CDATA[newbie help with tcl scripting]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31767#p31767"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind join - * procnameproc procname {nick uhost hand chan} { if {[string match "*@*.staff.*" $uhost]} {  puthelp "PRIVMSG $nick :message for people with the staff host" } else {  puthelp "PRIVMSG $nick :message for everyone else" }}</code></pre></div>Read the Tcl "string" manual page (not tcl-commands.doc, those are simply Tcl commands added by Eggdrop).  Either look at <a href="http://www.tcl.tk/man/" class="postlink">http://www.tcl.tk/man/</a> or "man n string" on your shell.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=801">Souperman</a> — Wed Dec 24, 2003 4:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-12-24T16:16:28-04:00</updated>

		<published>2003-12-24T16:16:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31766#p31766</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31766#p31766"/>
		<title type="html"><![CDATA[newbie help with tcl scripting]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31766#p31766"><![CDATA[
The thing is, I already have a <strong class="text-strong">bind join - * procname</strong> which sends a message to all users joining the channel. What I want is that if someone matches the host *@*.staff.* then a different message will be dispplayed.<p>Statistics: Posted by Guest — Wed Dec 24, 2003 4:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-12-24T08:46:23-04:00</updated>

		<published>2003-12-24T08:46:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31752#p31752</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31752#p31752"/>
		<title type="html"><![CDATA[newbie help with tcl scripting]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31752#p31752"><![CDATA[
if { [string match "*@*.staff.*" $host] } {<br>  #match<br>} {<br>  #no match<br>}<br><br>    (8)  JOIN (stackable)<br>         bind join &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>         procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt;<br><br>         Description: triggered by someone joining the channel. The mask in<br>           the bind is matched against "#channel nick!user@host" and can<br>           contain wildcards.<br>         Module: irc<br><br>is what you need to read though in tcl-commands.doc so something like <br><br>bind join - "*@*.staff.*" procname<br><br>i *think*<p>Statistics: Posted by Guest — Wed Dec 24, 2003 8:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-12-24T07:58:43-04:00</updated>

		<published>2003-12-24T07:58:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31750#p31750</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31750#p31750"/>
		<title type="html"><![CDATA[newbie help with tcl scripting]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31750#p31750"><![CDATA[
I've had a look through the tcl-commands.doc file and found:<br><div class="codebox"><p>Code: </p><pre><code>  maskhost &lt;nick!user@host&gt;    Returns: masked hostmask for the string given ("n!u@1.2.3.4" -&gt; "*!u@1.2.3.*",      "n!u@lame.com" -&gt; "*!u@lame.com", "n!u@a.b.edu" -&gt; "*!u@*.b.edu")    Module: core</code></pre></div>?<p>Statistics: Posted by Guest — Wed Dec 24, 2003 7:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-12-23T21:26:12-04:00</updated>

		<published>2003-12-23T21:26:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31739#p31739</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31739#p31739"/>
		<title type="html"><![CDATA[newbie help with tcl scripting]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31739#p31739"><![CDATA[
Read the tcl manual for the "string" command... hint: you want wildcard matching...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Dec 23, 2003 9:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-12-23T19:49:27-04:00</updated>

		<published>2003-12-23T19:49:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31737#p31737</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31737#p31737"/>
		<title type="html"><![CDATA[newbie help with tcl scripting]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31737#p31737"><![CDATA[
I have a procedure that is triggered on <strong class="text-strong">bind join - * &lt;proc name&gt;</strong>.<br><br>Inside this procudure I want to have certain if statements for different hosts.<br><br>An example of what I want to do which doesn't work:<div class="codebox"><p>Code: </p><pre><code>if {$host == "*@*.staff.*"} {&lt;body&gt;}else {&lt;body&gt;}</code></pre></div>How can I do the above?<p>Statistics: Posted by Guest — Tue Dec 23, 2003 7:49 pm</p><hr />
]]></content>
	</entry>
	</feed>
