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

	<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-08-20T10:36:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-20T10:36:55-04:00</updated>

		<published>2003-08-20T10:36:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25370#p25370</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25370#p25370"/>
		<title type="html"><![CDATA[Script not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25370#p25370"><![CDATA[
ok, ur right.. I experianced a similar problem before and didn't know why.<br><br>thanx again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Aug 20, 2003 10:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-08-20T09:54:17-04:00</updated>

		<published>2003-08-20T09:54:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25364#p25364</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25364#p25364"/>
		<title type="html"><![CDATA[Script not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25364#p25364"><![CDATA[
Well most likely your user doesn't have a username of "*". Did you mean it to be a wildcard? Because wildcards require you to use [string match *mask* text] instead of == or !=. Try the tcl manual at <a href="http://www.tcl.tk" class="postlink">www.tcl.tk</a> for more information on the "string" command.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Aug 20, 2003 9:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-20T04:43:18-04:00</updated>

		<published>2003-08-20T04:43:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25340#p25340</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25340#p25340"/>
		<title type="html"><![CDATA[Script not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25340#p25340"><![CDATA[
well it doesn't give any errors now, but it doesn't respond even though the host matches the code. what seems to be the problem new ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Aug 20, 2003 4:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-08-19T20:51:36-04:00</updated>

		<published>2003-08-19T20:51:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25331#p25331</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25331#p25331"/>
		<title type="html"><![CDATA[Script not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25331#p25331"><![CDATA[
I would set "'s around the $nick!*@[lindex [split $uhost @] 1].<br><div class="codebox"><p>Code: </p><pre><code>if { "$nick!*@[lindex [split $uhost @] 1]" != "nick!*@host"} { return 0 }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Tue Aug 19, 2003 8:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-08-19T20:16:58-04:00</updated>

		<published>2003-08-19T20:16:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25329#p25329</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25329#p25329"/>
		<title type="html"><![CDATA[Script not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25329#p25329"><![CDATA[
You forgot spaces around the !=<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Aug 19, 2003 8:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-19T16:52:08-04:00</updated>

		<published>2003-08-19T16:52:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25312#p25312</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25312#p25312"/>
		<title type="html"><![CDATA[Script not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25312#p25312"><![CDATA[
[13:48] Tcl error [sb:kick]: syntax error in expression "$nick!*@[lindex [split $uhost @] 1] != "nick!*@xx.xx.xxx.*"<br><br>why's that ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Aug 19, 2003 4:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-19T16:32:55-04:00</updated>

		<published>2003-08-19T16:32:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25311#p25311</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25311#p25311"/>
		<title type="html"><![CDATA[Script not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25311#p25311"><![CDATA[
yeah I noticed that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>thank you both <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Aug 19, 2003 4:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-08-19T15:59:52-04:00</updated>

		<published>2003-08-19T15:59:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25307#p25307</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25307#p25307"/>
		<title type="html"><![CDATA[Script not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25307#p25307"><![CDATA[
you can also use somthing like:<div class="codebox"><p>Code: </p><pre><code>if {$nick!*@[lindex [split $uhost @] 1] != "nick!*@host"} {return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Tue Aug 19, 2003 3:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-08-19T15:07:36-04:00</updated>

		<published>2003-08-19T15:07:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25304#p25304</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25304#p25304"/>
		<title type="html"><![CDATA[Script not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25304#p25304"><![CDATA[
<blockquote class="uncited"><div>oh yeah, ur right <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> I didn't understand what they ment with "mask" in tcl-commands.doc<br><br>thanx <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>so this should work ?<br><strong class="text-strong">if {$nick!*[string range $uhost [string first "@" $uhost end]] != "nick!*@host"} {return 0}</strong></div></blockquote>Should be:<div class="codebox"><p>Code: </p><pre><code>if {$nick!*[string range $uhost [string first "@" $uhost] end] != "nick!*@host"} {return 0}</code></pre></div>(you had a ] in the wrong spot)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Tue Aug 19, 2003 3:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-19T15:01:53-04:00</updated>

		<published>2003-08-19T15:01:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25301#p25301</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25301#p25301"/>
		<title type="html"><![CDATA[Script not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25301#p25301"><![CDATA[
oh yeah, ur right <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> I didn't understand what they ment with "mask" in tcl-commands.doc<br><br>thanx <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>so this should work ?<br><strong class="text-strong">if {$nick!*[string range $uhost [string first "@" $uhost end]] != "nick!*@host"} {return 0}</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Aug 19, 2003 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-08-19T13:31:49-04:00</updated>

		<published>2003-08-19T13:31:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25294#p25294</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25294#p25294"/>
		<title type="html"><![CDATA[Script not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25294#p25294"><![CDATA[
No you can't do that, just use msgm to bind to * and then check the nick!user@host yourself within the proc. Again, MSG and MSGM match what you *say*, not your nick or your user@host.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Aug 19, 2003 1:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-19T08:59:31-04:00</updated>

		<published>2003-08-19T08:59:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25266#p25266</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25266#p25266"/>
		<title type="html"><![CDATA[Script not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25266#p25266"><![CDATA[
no I meant for example if the +f spambot's nick is SpamSpy.<br><br>I make the bind like this:<br>bind msgm f SpamSpy!*@host sb:kick<br><br>or should it be:<br>bind msgm f "SpamSpy *@host" sb:kick<br><br><em class="text-italics">Note:I only want the SpamSpy to be able to order it, not every +f user.</em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Aug 19, 2003 8:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-08-18T23:34:55-04:00</updated>

		<published>2003-08-18T23:34:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25246#p25246</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25246#p25246"/>
		<title type="html"><![CDATA[Script not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25246#p25246"><![CDATA[
Put simply, MSG matches the first word only, and MSGM matches the whole line. Also, MSG doesn't let you use wildcards.<br><br>About your host question... I didn't even understand it heh. What you posted will look for the word nick!*@host, typed like that (no wildcards) and then call sb:kick when somebody types it. Is that what you want?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Aug 18, 2003 11:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-18T15:39:57-04:00</updated>

		<published>2003-08-18T15:39:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25235#p25235</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25235#p25235"/>
		<title type="html"><![CDATA[Script not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25235#p25235"><![CDATA[
<blockquote class="uncited"><div><em class="text-italics">MSG</em><br>Description: used for /msg commands. The first word of the user's<br>msg is the command, and everything else becomes the text argument.<br>Module: server<br><br><em class="text-italics">MSGM</em><br>Description: matches the entire line of text from a /msg with the<br>mask. This is useful for binding Tcl procs to words or phrases<br>spoken anywhere within a line of text.<br>Module: server</div></blockquote>didn't understand it.<br><br>as for the host question, its answer is not in tcl-commands.doc ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Aug 18, 2003 3:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-18T14:30:48-04:00</updated>

		<published>2003-08-18T14:30:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25233#p25233</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25233#p25233"/>
		<title type="html"><![CDATA[Script not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25233#p25233"><![CDATA[
how about checking doc/tcl-commands.doc?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Aug 18, 2003 2:30 pm</p><hr />
]]></content>
	</entry>
	</feed>
