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

	<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-04-15T12:02:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-04-15T12:02:17-04:00</updated>

		<published>2003-04-15T12:02:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19103#p19103</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19103#p19103"/>
		<title type="html"><![CDATA[huh?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19103#p19103"><![CDATA[
Anyway, I've decided to remove this extra proc and do the checks for each proc ash I should be use it in the first place. Seems that I've forgot to add an [split $text] at the [validchan], also, your point about changing it  to "% *\\????*" seems to be correct. Thanks! I'll add checks to each code as I've said. Thank you anyway..<br><br>PS: I had +annoy on channel, I'm not that dumb <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=187">caesar</a> — Tue Apr 15, 2003 12:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-04-15T08:55:17-04:00</updated>

		<published>2003-04-15T08:55:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19093#p19093</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19093#p19093"/>
		<title type="html"><![CDATA[huh?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19093#p19093"><![CDATA[
Rather complex for a simple operation.<br><br>There are notibly a few niggles with the code.<br><br>1: Look at this whole if statment<br><div class="codebox"><p>Code: </p><pre><code>if {[matchattr $hand of|fo $chan] || [isop $nick $chan] || ![string match "*#*" $text] || [string match "#" $text] || [validchan $text]} { </code></pre></div>These are all OR operations, so any single one of them, will return and prevent a ban.<br><br>1: If they are channel or global, friend or op in the channel.<br><br>2: If they are currently set +o on the channel (non-userfile)<br><br>3: There is no # in the text<br><br>4: If # if the first and only character in the text<br><br>5: If the text is a valid eggdrop monitored channel name (doesn't care for spaces here!).<br><br>These seem perfectly fine. However, have you tested to see what each variable contains? IE, have you sent there values to the log (putlog) to see what could cause this behaviour?<br><br>This is all presuming you are actualy seeing "passed" or "banned" in the log when the ??? is used?<br><br>The bind is fine, with one minor point. You don't need three slashes, only the two.<br><br>Slashes 1 and 2 escape each other (Tcl escape) so they are read correctly. The third slash is escaping the ?. The ? doesn't need escaping, as Tcl will not interpret it.<br><br>Have you also sent the value of "[channel get annoy]" to the log? AKA, have you made sure the channel is +annoy?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Apr 15, 2003 8:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-04-15T06:14:27-04:00</updated>

		<published>2003-04-15T06:14:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19088#p19088</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19088#p19088"/>
		<title type="html"><![CDATA[huh?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19088#p19088"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># bindsbind pubm - "% *\\\?\\\?\\\?\\\?*" pub:questionsbind pubm - {* *#*} spam:pub# flagssetudef flag spamsetudef flag annoy# channel spamproc spam:pub {nick uhost hand chan text} {  if {[channel get $chan spam] &amp;&amp; [mytests $nick $hand $chan $text] != 0} {    set mask "*!*@[lindex [split $uhost @] 1]"    newchanban $chan $mask Spam "\00224\002 hours ban for spaming within $chan" 1440  }}# annoy - questionsproc pub:questions {nick uhost hand chan text} {  if {[channel get $chan annoy] &amp;&amp; [mytests $nick $hand $chan $text] != 0} {    putlog "banned"    return  }  putlog "passed"}# my testsproc mytests {nick hand chan text} { if {[matchattr $hand of|fo $chan] || [isop $nick $chan] || ![string match "*#*" $text] || [string match "#" $text] || [validchan $text]} {   return 0 } return 1}</code></pre></div>If an known user types in channel #bla he is not banned, and if an unknown user that types #bla his ass is banned. Till now this is correct. If an known user uses to many ? in channel he will not banned but if an unknown user to the bot uses to many ? he is not banned also. Why is this happening? This two procs call the same "mytest" do to the checkings and one works and the otherone dosen't. Any ideea why?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Apr 15, 2003 6:14 am</p><hr />
]]></content>
	</entry>
	</feed>
