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

	<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-11-19T04:57:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-11-19T04:57:04-04:00</updated>

		<published>2002-11-19T04:57:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13354#p13354</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13354#p13354"/>
		<title type="html"><![CDATA[string match? and -nocase ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13354#p13354"><![CDATA[
This is not a problem with the server my eggdrop is running one, I guess is lag on irc or something like this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Nov 19, 2002 4:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-19T04:46:23-04:00</updated>

		<published>2002-11-19T04:46:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13352#p13352</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13352#p13352"/>
		<title type="html"><![CDATA[string match? and -nocase ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13352#p13352"><![CDATA[
Other factors can affect speed.<br><br>Machine load? If the machine is under high load, then it will of cause be slow.<br><br>Low on memory? If the machine is low on memory, then is will be heavily using swap space, which is tiem consuming.<br><br>OS? Background tasks, and OS design will slow down a system a lot (IE, windows is crap).<br><br>Optimsation? This mainly ties in with OS, but unoptimsed code will reult in poor overall performance, both of the bot and the machine. CGYWIN is probably one of theworst environments to run it under.<br><br>Overrun system? While a system may not be under high load, or low memory as such, sustained midrange loads will affect the performance. Eggdrops are designed for servers. A server is designed for specifi jobs. As such, the less you run the better.<br><br>Combination: By combining only two of these, you can mroe than double your problems, that is obvious. So, you may have a fast machine, but what else is it used for.`<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Nov 19, 2002 4:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-11-19T02:17:59-04:00</updated>

		<published>2002-11-19T02:17:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13349#p13349</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13349#p13349"/>
		<title type="html"><![CDATA[string match? and -nocase ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13349#p13349"><![CDATA[
I'm using an bind like: bind pubm - {* *#*} no:adv. Probably the eggdrop/server had a bit lag, and this can explain why it was slow, I guess. Thanks for the fill in. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>LoL.. no my pc ain't slow, P4 at 1.2 &lt;- if this is slow, then I'm the president of USA, and I'm not <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 Nov 19, 2002 2:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-11-18T15:28:16-04:00</updated>

		<published>2002-11-18T15:28:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13328#p13328</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13328#p13328"/>
		<title type="html"><![CDATA[string match? and -nocase ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13328#p13328"><![CDATA[
It's probably your imagination that the bot is slowing down. It only takes a couple microseconds to execute the code. Also, as long as your bind is matching for "*#*" then it's only executing when there's a good chance there is spam. It really shouldn't be noticeable.<br><br>Given that the code is one of the fastest ones, it's unlikely that using other code will make it appreciably faster. If your bot is slowing down because of this, you need a new computer :)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Nov 18, 2002 3:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-11-18T12:45:03-04:00</updated>

		<published>2002-11-18T12:45:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13317#p13317</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13317#p13317"/>
		<title type="html"><![CDATA[string match? and -nocase ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13317#p13317"><![CDATA[
As I have said in the other post where is talking about this, using this part of the code:<div class="codebox"><p>Code: </p><pre><code>foreach word [split $arg] {   if {![string match "*#*" $word]} { continue }   if  {[string compare -nocase $word $chan] == 0 } { continue } </code></pre></div>I have come to the conclusion that my eggdrop is now a bit slow when this is a spam on the channel. Any other alternative, maybe an faster one?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Nov 18, 2002 12:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-11-15T02:04:53-04:00</updated>

		<published>2002-11-15T02:04:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13185#p13185</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13185#p13185"/>
		<title type="html"><![CDATA[string match? and -nocase ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13185#p13185"><![CDATA[
Well, I haven't understood wich is the best <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> I'll look again there and follow egghead instructions and his last code ad hope this will work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Nov 15, 2002 2:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-11-14T13:31:18-04:00</updated>

		<published>2002-11-14T13:31:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13166#p13166</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13166#p13166"/>
		<title type="html"><![CDATA[string match? and -nocase ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13166#p13166"><![CDATA[
Caesar,<br><br>Don't you remember that other thread where we were all talking about the best way to do this? We already figured out several ways to do it, and even ranked them according to accuracy and performance.<br><br>You even posted in the thread. And then we told you which code to use.<br><br>If you want to remove this "exploit" then use the code we have already posted.<br><br>Anyway, your question has nothing to do with the original thread by up^to^you lol. This is silly.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Nov 14, 2002 1:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Photon]]></name></author>
		<updated>2002-11-14T13:16:57-04:00</updated>

		<published>2002-11-14T13:16:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13165#p13165</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13165#p13165"/>
		<title type="html"><![CDATA[string match? and -nocase ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13165#p13165"><![CDATA[
It would be safer to use an if/else then only the first one it finds will be executed.<br><br>This removes the exploit... sort of.<br><br>However, you will have to order it with the one that needs to take precidence first.<br><br>Otherwise you are going to have to use string first to find out which one comes first in the string....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1824">Photon</a> — Thu Nov 14, 2002 1:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-11-14T13:05:26-04:00</updated>

		<published>2002-11-14T13:05:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13164#p13164</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13164#p13164"/>
		<title type="html"><![CDATA[string match? and -nocase ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13164#p13164"><![CDATA[
Using the code you told me, got the folowing results:<br><br>[19:02] &lt;@caesar&gt; #channel<br>[19:02] &lt;@bob&gt; do nothing<br>[19:02] &lt;@caesar&gt; #dsghsdt<br>[19:02] &lt;@bob&gt; kick/ban<br><br>Ok, until here is ok.. then:<br><br>[19:03] &lt;@caesar&gt; #dhsd #channel<br>[19:03] &lt;@bob&gt; do nothing<br><br>and boom! .. wrong.. This covers only the first part, the other part is exploatable as you can see. Well?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Nov 14, 2002 1:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-11-13T18:32:16-04:00</updated>

		<published>2002-11-13T18:32:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13138#p13138</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13138#p13138"/>
		<title type="html"><![CDATA[string match? and -nocase ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13138#p13138"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm - {* *#*} adv:matchproc adv:match {nick host hand chan arg} { if {[string match "*$chan*" $arg]} { putserv "PRIVMSG $chan :do nothing" return 0 } putserv "PRIVMSG $chan :kick/ban" return 0 } </code></pre></div>(ugly formatting preserved where possible :p)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Nov 13, 2002 6:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-11-13T11:54:29-04:00</updated>

		<published>2002-11-13T11:54:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13127#p13127</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13127#p13127"/>
		<title type="html"><![CDATA[string match? and -nocase ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13127#p13127"><![CDATA[
Code 1:<br>bind pubm - {* *#*} adv:match<br><br>proc adv:match {nick host hand chan arg} {<br>if {[string match "*#*" $arg] &amp;&amp; ![string match "*$chan*" $arg]} {<br>putserv "PRIVMSG $chan :do nothing"<br>return 0 } <br>putserv "PRIVMSG $chan :kick/ban"<br>return 0 }<br><br>Results:<br>[17:43] &lt;@caesar&gt; #channel<br>[17:43] &lt;@bob&gt; kick/ban<br>[17:43] &lt;@caesar&gt; #dsthdt<br>[17:43] &lt;@bob&gt; do nothing<br><br>Code 2:<br>bind pubm - {* *#*} adv:match<br><br>proc adv:match {nick host hand chan arg} {<br>if {[lsearch $arg "*#*"] != -1 &amp;&amp; [lsearch $arg "*$chan*"] == -1} {<br>putserv "PRIVMSG $chan :do nothing"<br>return 0 } <br>putserv "PRIVMSG $chan :kick/ban"<br>return 0 }<br><br>Results:<br>[17:44] &lt;@m|sk&gt; #dsthdt<br>[17:44] &lt;@bob&gt; do nothing<br>[17:44] &lt;@m|sk&gt; #channel<br>[17:44] &lt;@bob&gt; kick/ban<br><br>What you sugest next? I have tryed some combiations but still nothing..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Nov 13, 2002 11:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-11-13T11:40:42-04:00</updated>

		<published>2002-11-13T11:40:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13125#p13125</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13125#p13125"/>
		<title type="html"><![CDATA[string match? and -nocase ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13125#p13125"><![CDATA[
You meen to use: bind PUBM - {* *#*} adv:match and one of the lines you sugested? I shall test this..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Nov 13, 2002 11:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-11-12T17:53:48-04:00</updated>

		<published>2002-11-12T17:53:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13097#p13097</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13097#p13097"/>
		<title type="html"><![CDATA[string match? and -nocase ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13097#p13097"><![CDATA[
<blockquote class="uncited"><div>bind pubm - * adv:match<br><br>proc adv:match {nick host hand chan arg} {<br>if {[string match "*#*" $arg] &amp;&amp; ![string match "*$chan*" $arg]} {<br>putserv "PRIVMSG $chan :do nothing"<br>return 0 } <br>putserv "PRIVMSG $chan :kick/ban"<br>return 0 }<br><br>This dose the opus of the thing should do:<br>[21:17] &lt;@caesar&gt; #channel<br>[21:17] &lt;@bob&gt; kick/ban<br>[21:17] &lt;@caesar&gt; #dhsdt<br>[21:17] &lt;@bob&gt; do nothing</div></blockquote>that's cause u have the wrong output <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br>what that if command does is to check if # is used in $arg.. if it is it checks if the #... is the same as $chan.. if both match it will do nothing.. not kick/ban as u have set it to <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Tue Nov 12, 2002 5:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-11-12T15:27:55-04:00</updated>

		<published>2002-11-12T15:27:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13094#p13094</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13094#p13094"/>
		<title type="html"><![CDATA[string match? and -nocase ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13094#p13094"><![CDATA[
bind pubm - * adv:match<br><br>proc adv:match {nick host hand chan arg} {<br>if {[string match "*#*" $arg] &amp;&amp; ![string match "*$chan*" $arg]} {<br>putserv "PRIVMSG $chan :do nothing"<br>return 0 } <br>putserv "PRIVMSG $chan :kick/ban"<br>return 0 }<br><br>This dose the opus of the thing should do:<br>[21:17] &lt;@caesar&gt; #channel<br>[21:17] &lt;@bob&gt; kick/ban<br>[21:17] &lt;@caesar&gt; #dhsdt<br>[21:17] &lt;@bob&gt; do nothing<br><br>If I change with: if {[string match "*#*" $arg] &amp;&amp; [string match "*$chan*" $arg]} {<br><br>Reacts as normal should do, results:<br>[21:19] &lt;@caesar&gt; #dhsdt<br>[21:19] &lt;@bob&gt; kick/ban<br>[21:19] &lt;@caesar&gt; #channel<br>[21:19] &lt;@bob&gt; do nothing<br><br>Then, with the if {[lsearch $arg "*#*"] != -1 &amp;&amp; [lsearch $arg "*$chan*"] == -1} { line:<br><br>[21:21] &lt;@caesar&gt; #dhtr<br>[21:21] &lt;@bob&gt; do nothing<br>[21:21] &lt;@caesar&gt; #channel<br>[21:21] &lt;@bob&gt; kick/ban<br><br>As you can see, I'm in the same place I have started.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Nov 12, 2002 3:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-11-12T14:34:29-04:00</updated>

		<published>2002-11-12T14:34:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13093#p13093</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13093#p13093"/>
		<title type="html"><![CDATA[string match? and -nocase ??]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13093#p13093"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {[string match "*#*" $text] &amp;&amp; ![string match "*$chan*" $text]} {</code></pre></div>this is a simple way to check if # is in the text and to check that it's not current channel beeing mentioned....<br>this is when dealing with $text<br><div class="codebox"><p>Code: </p><pre><code>if {[lsearch $args "*#*"] != -1 &amp;&amp; [lsearch $args "*$chan*"] == -1} {</code></pre></div>^^use this one when u use $args<br>*note: this will never trigger when $chan is beeing said, even if some other chan is beeing mentioned in the same line...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Tue Nov 12, 2002 2:34 pm</p><hr />
]]></content>
	</entry>
	</feed>
