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

	<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-17T04:17:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-17T04:17:10-04:00</updated>

		<published>2003-08-17T04:17:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25142#p25142</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25142#p25142"/>
		<title type="html"><![CDATA[request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25142#p25142"><![CDATA[
mimic, the code given to you, must work and is exactly what you need.<br><br>u can add a timer of 2 mins (=120secs) and it doesn't need to be killed.<br><br>you have to figure out what's making it useless.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Aug 17, 2003 4:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mimic]]></name></author>
		<updated>2003-08-16T23:58:18-04:00</updated>

		<published>2003-08-16T23:58:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25133#p25133</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25133#p25133"/>
		<title type="html"><![CDATA[request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25133#p25133"><![CDATA[
it's not an order . i said if youre trying to write a code please do now. that's mean IF . clear enough eh?<br><br>peace<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2850">mimic</a> — Sat Aug 16, 2003 11:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-08-16T23:34:40-04:00</updated>

		<published>2003-08-16T23:34:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25132#p25132</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25132#p25132"/>
		<title type="html"><![CDATA[request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25132#p25132"><![CDATA[
<blockquote class="uncited"><div>please do now.</div></blockquote>Well atleast he gives orders with a 'please'  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Aug 16, 2003 11:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mimic]]></name></author>
		<updated>2003-08-16T22:16:20-04:00</updated>

		<published>2003-08-16T22:16:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25126#p25126</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25126#p25126"/>
		<title type="html"><![CDATA[request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25126#p25126"><![CDATA[
dunno what you mean dedan ? but if youre tryin to write the code i want with utimer and killutimer . like the mIRC code i post above . please do now . Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2850">mimic</a> — Sat Aug 16, 2003 10:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-08-16T21:47:42-04:00</updated>

		<published>2003-08-16T21:47:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25123#p25123</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25123#p25123"/>
		<title type="html"><![CDATA[request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25123#p25123"><![CDATA[
<blockquote class="uncited"><div>putserv "PRIVMSG $owner :ITS NOT WORKING : (" <br></div></blockquote>does the ":" or the "(" need to be escaped?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Sat Aug 16, 2003 9:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mimic]]></name></author>
		<updated>2003-08-16T21:42:11-04:00</updated>

		<published>2003-08-16T21:42:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25121#p25121</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25121#p25121"/>
		<title type="html"><![CDATA[request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25121#p25121"><![CDATA[
I dunno whats wrong with it ? i really dont know but as long as i really need it i will not give up, but the errors keeps buggin me . I appreciate what you did Sir_Fz i really do you and the others but with the codes you and other have wrote here. some with errors and some wasn't really work .<br><br>my last post as you can see i wrote an mIRC code which i need to convert to tcl to make it work exactly like i want with the timer and killtimer after excuting the needed cmd ..<br><br>Thanks<br>peace<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2850">mimic</a> — Sat Aug 16, 2003 9:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-16T19:15:54-04:00</updated>

		<published>2003-08-16T19:15:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25108#p25108</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25108#p25108"/>
		<title type="html"><![CDATA[request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25108#p25108"><![CDATA[
did u try using the if {[string equal $newnick $botnick] &amp;&amp;  [string equal $offnick $botnick]} { ? or the if {[string match -nocase $newnick $botnick] &amp;&amp; [string match -nocase $offnick $botnick]} { ??<br><br>please try them instead of if {$newnick == $botnick &amp;&amp; ....} {<br>else I don't see any mistakes in the code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Aug 16, 2003 7:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mimic]]></name></author>
		<updated>2003-08-16T18:33:12-04:00</updated>

		<published>2003-08-16T18:33:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25102#p25102</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25102#p25102"/>
		<title type="html"><![CDATA[request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25102#p25102"><![CDATA[
Sir_Fz your code doesn't return errors? but at the same time it doesn't PRIVMSG the owner? so no effect? <br>let me make it simple here i hope everyone understand mirc commands cause what i'm going to post is the same what i want in eggdrop <br><br>&gt;&gt;&gt;<br><div class="codebox"><p>Code: </p><pre><code>on 1:nick:{  if (%offnick isin $newnick) {    .msg mimic hi there?    .timer1 1 120 /msg Owner I'm using $offnick . and i'm off now.  }}</code></pre></div>the timer will trigger once after 2mins from the first msg and will stop exactly after that.<br>I saw in tcl doc that thereis a "isbotnick" maybe this will help to find out whats the problem?<br><br>peace<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2850">mimic</a> — Sat Aug 16, 2003 6:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-16T17:46:03-04:00</updated>

		<published>2003-08-16T17:46:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25098#p25098</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25098#p25098"/>
		<title type="html"><![CDATA[request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25098#p25098"><![CDATA[
<blockquote class="uncited"><div><em class="text-italics">from tcl-commands.tcl</em><br>NICK (stackable)<br>bind nick &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;newnick&gt;<br><br>Description: triggered when someone changes nicknames. The mask<br>is matched against '#channel newnick' and can contain wildcards.<br>Module: irc</div></blockquote>so the proc should be <strong class="text-strong">{nick uhost handle channel newnick}</strong><br>whole code:<div class="codebox"><p>Code: </p><pre><code># set bot's off nick #set offnick "botoff"# set owner's nick #set owner "mimic"bind nick - * BOTNEW proc BOTNEW {nick uhost handle channel newnick} {   global botnick offnick owner   if {$botnick == $newnick &amp;&amp; $botnick == $offnick} {     putserv "PRIVMSG $owner :ITS NOT WORKING :("   } }</code></pre></div>this should work with no errors (simplest form)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Aug 16, 2003 5:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-08-16T16:04:36-04:00</updated>

		<published>2003-08-16T16:04:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25094#p25094</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25094#p25094"/>
		<title type="html"><![CDATA[request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25094#p25094"><![CDATA[
<blockquote class="uncited"><div>return : Tcl error [BOTNEW]: called "BOTNEW" with too many arguments </div></blockquote>Read doc/tcl-commands.doc for the number of arguments you need to have for a nick bound procedure.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Aug 16, 2003 4:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mimic]]></name></author>
		<updated>2003-08-16T14:36:04-04:00</updated>

		<published>2003-08-16T14:36:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25087#p25087</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25087#p25087"/>
		<title type="html"><![CDATA[request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25087#p25087"><![CDATA[
look<br><div class="codebox"><p>Code: </p><pre><code>bind nick -|- "*" BOTNEWproc BOTNEW {nick uhost handle newnick} {   global botnick offnick  if {$botnick == $newnick &amp;&amp; $botnick == "offnick"} {     putserv "PRIVMSG $owner :ITS NOT WORKING :("  }   return 0 } </code></pre></div>return : Tcl error [BOTNEW]: called "BOTNEW" with too many arguments <br><br>the set code<div class="codebox"><p>Code: </p><pre><code>##set the bot's off nick set offnick "botoff"</code></pre></div>and the bot still return errors? please everyone just edit this code forget the channel PRIVMSG. i want to undestand the easy way first? deal?<br><br>peace<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2850">mimic</a> — Sat Aug 16, 2003 2:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2003-08-16T14:05:24-04:00</updated>

		<published>2003-08-16T14:05:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25086#p25086</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25086#p25086"/>
		<title type="html"><![CDATA[request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25086#p25086"><![CDATA[
yes, it has to be "&amp;&amp;".<br>also, this<div class="codebox"><p>Code: </p><pre><code>if {$botnick == $newnick &amp;&amp; $botnick == "offnick"} {</code></pre></div>has to work. guess the problem were the missing ""s.<br><br>@dedan: [] are used in tcl to execute commands. means, using it the way you do will cause errors. the normal syntax is [command arguments], so your script will see $botnick (here "offnick") as a command. i don't know where you learned using []s, but i'd suggest to get some good tutorial.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Sat Aug 16, 2003 2:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mimic]]></name></author>
		<updated>2003-08-16T13:59:39-04:00</updated>

		<published>2003-08-16T13:59:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25085#p25085</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25085#p25085"/>
		<title type="html"><![CDATA[request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25085#p25085"><![CDATA[
I can remove $chan and add $owner right , to dedan's code? with no change to the entire script, that means i just change $chan with $owner? just for testing and to understand whats going on? and i still get errors "args" ?<br><br>dedan change your code so the msg could PRIVMSG the $owner , then i can see what's going on? remember the offnick is a var not a nick?<br><br>peace<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2850">mimic</a> — Sat Aug 16, 2003 1:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-08-16T13:30:26-04:00</updated>

		<published>2003-08-16T13:30:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25082#p25082</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25082#p25082"/>
		<title type="html"><![CDATA[request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25082#p25082"><![CDATA[
I think Dedan is right, because with ||, it will be true whenever a nick change occurs while the bot's nick is $offnick.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Aug 16, 2003 1:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-16T13:02:17-04:00</updated>

		<published>2003-08-16T13:02:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25077#p25077</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25077#p25077"/>
		<title type="html"><![CDATA[request?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25077#p25077"><![CDATA[
"||" = "or"<br>"&amp;&amp;" = "and"<br><br>so in this case both can be used, since the two rules must apply in order for the proc to apply.<br><br>also u can remove the "<strong class="text-strong">foreach chan [channels] {</strong>" code, there is no use for it.<br><br>u can immediatly do a "<strong class="text-strong">putserv "PRIVMSG $channel :I'm off"</strong>" to make it simpler.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Aug 16, 2003 1:02 pm</p><hr />
]]></content>
	</entry>
	</feed>
