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

	<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-05-27T15:34:53-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-05-27T15:34:53-04:00</updated>

		<published>2004-05-27T15:34:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36645#p36645</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36645#p36645"/>
		<title type="html"><![CDATA[Help with utimers and slash (\) subsitutions.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36645#p36645"><![CDATA[
Umm... this was not my intention in the first place.<br>But anyway I'll give it a try.<br><br>Most good coders I asked recommended me this method<br>rather than sticking to the one I suggested.<br><br>Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu May 27, 2004 3:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-05-27T13:57:14-04:00</updated>

		<published>2004-05-27T13:57:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36642#p36642</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36642#p36642"/>
		<title type="html"><![CDATA[Help with utimers and slash (\) subsitutions.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36642#p36642"><![CDATA[
The easiest solution is to write a proc to call from the utimer, that way you don't need to worry about escaping characters, trying to avoid having commands executed right away, etc...<br><br>ie.<div class="codebox"><p>Code: </p><pre><code>proc mycheck {mask nick user chan} {  global list  if {[string match -nocase $mask "${nick}![getchanhost $user $chan]"]} { lappend list $user }}utimer 5 [list mycheck $mask $nick $user $chan]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu May 27, 2004 1:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-05-27T09:50:00-04:00</updated>

		<published>2004-05-27T09:50:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36632#p36632</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36632#p36632"/>
		<title type="html"><![CDATA[Help with utimers and slash (\) subsitutions.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36632#p36632"><![CDATA[
Hello,<br><br>I have a script scanning user hosts, in a channel<br>and marking them as clones. Thing is I want it a bit<br>delayed, it is a bit complicated so I can't call it in another<br>procedure with a utimer, as transferring variables will be<br>alot messy.<br><br>Here is the fuction I want to set a <br>utimer on:<br><div class="codebox"><p>Code: </p><pre><code>if {[string match -nocase $mask "${nick}![getchanhost $user $chan]"]} { lappend list $user }"</code></pre></div>Here is one I came up with, its not working, if <br>anyone can correct the slash (\) subsitutions<br>maybe, I would have an idea on this, as im not<br>sure. Also do I need to add [list... in the getchanhost<br>segement as well, like I have done? is it correct?<br><div class="codebox"><p>Code: </p><pre><code>utimer 5 "if \{\[[list string match -nocase $mask \"$\{nick\}!\[[list getchanhost $user $chan]\]\"]\} \{[list lappend list $user]\}"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu May 27, 2004 9:50 am</p><hr />
]]></content>
	</entry>
	</feed>
