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

	<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>2002-10-05T11:12:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-10-05T11:12:11-04:00</updated>

		<published>2002-10-05T11:12:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11725#p11725</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11725#p11725"/>
		<title type="html"><![CDATA[Why doesn't it work?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11725#p11725"><![CDATA[
i know that those 2 procs do the same in the other way and i wanted to make 2nd one work and i made it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>I changed || to &amp;&amp; it didn't work 'cause my host had *staff* string but nickname was different than Oper, when its &amp;&amp; (and) it works even if only nick = ogre or only host has *staff* string<br>if {(![string match "*staff*" [string tolower $uhost]]) &amp;&amp; ([string tolower $nick] != "oper")} {return 0}<br>;rest of proc;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Sat Oct 05, 2002 11:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-10-05T06:10:28-04:00</updated>

		<published>2002-10-05T06:10:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11723#p11723</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11723#p11723"/>
		<title type="html"><![CDATA[Why doesn't it work?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11723#p11723"><![CDATA[
read carefully what you just wrote yourself <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=852">Papillon</a> — Sat Oct 05, 2002 6:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-10-05T05:56:50-04:00</updated>

		<published>2002-10-05T05:56:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11722#p11722</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11722#p11722"/>
		<title type="html"><![CDATA[Why doesn't it work?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11722#p11722"><![CDATA[
/me gets more confused!<br><br>if {[string match "*staff*" [string tolower $uhost]]} { ... means that proc will be done if user host matches *staff* if not nothing will happen<br><br>if {![string match "*staff*" [string tolower $uhost]]} { return 0}<br>;rest here;<br>means that if user host doesn't match *staff* nothing will be done if it does proc should be done. Ain't I right?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Sat Oct 05, 2002 5:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-10-05T05:50:56-04:00</updated>

		<published>2002-10-05T05:50:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11721#p11721</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11721#p11721"/>
		<title type="html"><![CDATA[Why doesn't it work?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11721#p11721"><![CDATA[
lol<br>the second version does exactly the same as the first one <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>remove the  "return 0" from the 2nd version <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=852">Papillon</a> — Sat Oct 05, 2002 5:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-10-05T05:19:02-04:00</updated>

		<published>2002-10-05T05:19:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11720#p11720</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11720#p11720"/>
		<title type="html"><![CDATA[Why doesn't it work?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11720#p11720"><![CDATA[
it works<br><br>bind msg - "!spammers" spammersm<br><br>proc spammersm {nick uhost handle text} {<br>if {([string match "*staff*" [string tolower $uhost]]) || ([string tolower $nick] == "oper") || ([matchattr $nick o])} {<br>set stats [open "spammers.dat" r]<br>   gets $stats spammerz<br>  close $stats<br>putserv "NOTICE $nick :\002$spammerz\002 spammers have been caught since 30.09.2002"<br>}<br>}<br><br>And when I change proc a bit it doesn't work, it should tho. I want it notice user with stats if uhost contains *staff* or nick is Oper or user has +o flag or above. It doesn't work even if user has *staff* string in uhost. I just wonder why doesn't the 2nd version work and it's digging me, I'd be grateful for help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>proc spammersm {nick uhost handle text} {<br>if {(![string match "*staff*" [string tolower $uhost]]) || ([string tolower $nick] != "oper") || (![matchattr $nick o])} { return 0 }<br>set stats [open "spammers.dat" r]<br>   gets $stats spammerz<br>  close $stats<br>putserv "NOTICE $nick :\002$spammerz\002 spammers have been caught since 30.09.2002"<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Sat Oct 05, 2002 5:19 am</p><hr />
]]></content>
	</entry>
	</feed>
