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

	<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>2007-11-12T16:54:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[panasonic]]></name></author>
		<updated>2007-11-12T16:54:27-04:00</updated>

		<published>2007-11-12T16:54:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78329#p78329</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78329#p78329"/>
		<title type="html"><![CDATA[[SOLVED] Chan. Notice:not to send notice to a kick/ban usr]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78329#p78329"><![CDATA[
thanks a lot, Tosser^^<br>the bot is now able to perform delay time before sending msg to user and no longer sending msg to a kicked/banned user<br>since the code has changed, i have to learn it and try to understand it again<br><br>thank you so much  <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=9311">panasonic</a> — Mon Nov 12, 2007 4:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-11-12T15:36:36-04:00</updated>

		<published>2007-11-12T15:36:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78328#p78328</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78328#p78328"/>
		<title type="html"><![CDATA[[SOLVED] Chan. Notice:not to send notice to a kick/ban usr]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78328#p78328"><![CDATA[
The problem is that you dont check if the user is STILL on the channel AFTER the 10 seconds.<br><div class="codebox"><p>Code: </p><pre><code>set welc(msg1) "1st line message"set welc(msg2) "2nd line message"set welc(chan) "#MyChannel"set welc(type) "1"bind join - #MyChannel* welcome:joinproc welcome:join {nick uhost hand chan} {  global welc  set welctxt1 $welc(msg1)  set welctxt2 $welc(msg2)  regsub -all "%nick" $welctxt1 "$nick" welctxt1  regsub -all "%nick" $welctxt2 "$nick" welctxt2  regsub -all "%chan" $welctxt1 "$chan" welctxt1  regsub -all "%chan" $welctxt2 "$chan" welctxt2  utimer 10 [list welcome:sendmsg $nick $chan $welc(type) $welctxt1]  utimer 10 [list welcome:sendmsg $nick $chan $welc(type) $welctxt2]}proc welcome:sendmsg {nick chan type text} { if {![onchan $nick $chan]} { return } if {$type == "1"} {  puthelp "NOTICE $nick :$text" } elseif {$type == "2"} {  puthelp "PRIVMSG $nick :$text" }}putlog "Channel Greeting - Generated by http://www.egginfo.org - Frostbyte" </code></pre></div>Not tested - should work...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Mon Nov 12, 2007 3:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[panasonic]]></name></author>
		<updated>2007-11-12T14:40:30-04:00</updated>

		<published>2007-11-12T14:40:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78327#p78327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78327#p78327"/>
		<title type="html"><![CDATA[[SOLVED] Chan. Notice:not to send notice to a kick/ban usr]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78327#p78327"><![CDATA[
ok, there is slight modification to utimer and the timers is now working<br>but i still have problem with onchan (to make sure that the bot didnt send the notice/messages to any kick/banned user)<br><br>here is the codes:<br><div class="codebox"><p>Code: </p><pre><code>set welc(msg1) "1st line message"set welc(msg2) "2nd line message"set welc(chan) "#MyChannel"set welc(type) "1"bind join - #MyChannel* givewelcomeproc givewelcome {nick uhost hand chan} {  global welc  set welctxt1 $welc(msg1)  set welctxt2 $welc(msg2)  regsub -all "%nick" $welctxt1 "$nick" welctxt1  regsub -all "%nick" $welctxt2 "$nick" welctxt2  regsub -all "%chan" $welctxt1 "$chan" welctxt1  regsub -all "%chan" $welctxt2 "$chan" welctxt2  switch $welc(type) {    if { [onchan $nick $chan] }    1 {      utimer 10 [puthelp "NOTICE $nick :$welctxt1"]      utimer 10 [puthelp "NOTICE $nick :$welctxt2"]    }    2 {      utimer 10 [puthelp "PRIVMSG $nick :$welctxt1"]      utimer 10 [puthelp "PRIVMSG $nick :$welctxt2"]    }  }}putlog "Channel Greeting - Generated by http://www.egginfo.org - Frostbyte"</code></pre></div>the bot is still sending messages to a kick/banned user<br>please help me to check the codes<br><br>thanks in advanced!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9311">panasonic</a> — Mon Nov 12, 2007 2:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[panasonic]]></name></author>
		<updated>2007-11-03T01:39:11-04:00</updated>

		<published>2007-11-03T01:39:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77414#p77414</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77414#p77414"/>
		<title type="html"><![CDATA[[SOLVED] Chan. Notice:not to send notice to a kick/ban usr]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77414#p77414"><![CDATA[
sorry sir, i got this from web generator<br>anyone mind to help me to modify it coz im just a user <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9311">panasonic</a> — Sat Nov 03, 2007 1:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-11-02T18:36:17-04:00</updated>

		<published>2007-11-02T18:36:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77405#p77405</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77405#p77405"/>
		<title type="html"><![CDATA[[SOLVED] Chan. Notice:not to send notice to a kick/ban usr]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77405#p77405"><![CDATA[
One iea might be to use timers (utimer) to delay the message a few seconds, and do a simple check wether the target is still inside the channel (onchan).<br><br>See doc/tcl-commands.doc for syntaxes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Nov 02, 2007 6:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[panasonic]]></name></author>
		<updated>2007-11-12T16:51:55-04:00</updated>

		<published>2007-11-02T15:15:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77400#p77400</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77400#p77400"/>
		<title type="html"><![CDATA[[SOLVED] Chan. Notice:not to send notice to a kick/ban usr]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77400#p77400"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set welc(msg1) "Message in 1st line" set welc(msg2) "Message in 2nd line"   set welc(chan) "#MyChannel"   set welc(type) "1"     bind join - #MyChannel* givewelcome   proc givewelcome {nick uhost hand chan} {   global welc     set welctxt1 $welc(msg1) set welctxt2 $welc(msg2)   regsub -all "%nick" $welctxt1 "$nick" welctxt1 regsub -all "%nick" $welctxt2 "$nick" welctxt2   regsub -all "%chan" $welctxt1 "$chan" welctxt1 regsub -all "%chan" $welctxt2 "$chan" welctxt2 switch $welc(type) {   1 { puthelp "NOTICE $nick :$welctxt1" puthelp "NOTICE $nick :$welctxt2" }   2 { puthelp "PRIVMSG $nick :$welctxt1" puthelp "PRIVMSG $nick :$welctxt2" }   }   }   putlog "Channel Greeting - Generated by http://www.egginfo.org - Frostbyte"</code></pre></div>Hi!<br>I do have a simple channel notice generated as above.<br>but the problem is, if there is a mass clones (which will then been kicked and banned from channel), the bot still sending notice to them eventhough they have been kicked out from channel<br><br>How to modify the script so the bot won't send notices to those who have been kicked out of channel<br>I found that my bot will Excess Flood by sending notices non-stop to them...<br><br>thanks in advanced<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9311">panasonic</a> — Fri Nov 02, 2007 3:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
