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

	<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-09-17T06:29:44-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-17T06:29:44-04:00</updated>

		<published>2004-09-17T06:29:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40979#p40979</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40979#p40979"/>
		<title type="html"><![CDATA[script not working right]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40979#p40979"><![CDATA[
Here take a look at this:<br><div class="codebox"><p>Code: </p><pre><code>if {(![string match "#*" $chan])} {#This is incorrect logic as the pub trigger is always peformed on a public channel hence the variable $chan will always contain an # of the channel name like #mychannel.#If you want you can use:if {([string match "#*" $chan])} {#Although it is not necessary as the variable $chan always contains an #</code></pre></div>To correct your script only use:<div class="codebox"><p>Code: </p><pre><code>#The correct wayif {(![string match "#*" $nchan]) || ($nchan == "")} { ORif {(![string equal "#" [string index $nchan 0]]) || ($nchan == "")} { </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Sep 17, 2004 6:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lsn]]></name></author>
		<updated>2004-09-17T05:55:46-04:00</updated>

		<published>2004-09-17T05:55:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40978#p40978</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40978#p40978"/>
		<title type="html"><![CDATA[script not working right]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40978#p40978"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code> set qfile web.txt bind pub n !noreg add:noregproc add:noreg { nick uhost hand chan arg } {  global qfile  set nchan [lindex $arg 0]  if {!([string match "#*" $chan]) || ($nchan == "") } {    putserv "NOTICE $nick :$nick Usage: noreg &lt;#channel&gt; \[reason\]"    return 0  }  set file [open $qfile a]   puts $file "$nchan :added by $hand [ctime [unixtime]]"   close $file   putserv "NOTICE $nick :Added noreg chan: $nchan"   return 1}</code></pre></div>works but if you do !noreg test<br>bot not recognize that the # is missing<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">(<br><br>can you help ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5215">lsn</a> — Fri Sep 17, 2004 5:55 am</p><hr />
]]></content>
	</entry>
	</feed>
