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

	<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>2019-08-25T08:04:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2019-08-25T08:04:39-04:00</updated>

		<published>2019-08-25T08:04:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107768#p107768</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107768#p107768"/>
		<title type="html"><![CDATA[Re: add JOIN watch notify]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107768#p107768"><![CDATA[
<blockquote class="uncited"><div>Hi guys, thanks for help. One last thing. How can i add JOIN notify in same TCL? So, QUIT and JOIN Notify in one TCL. <br></div></blockquote><div class="codebox"><p>Code: </p><pre><code># August 21, 2018#  #http://forum.egghelp.org/viewtopic.php?t=20495# I am looking for tcl script to notify (with private msg to nick) quit events of certain people on channel.## I am following my friend az## Ex. on channel# * Quits: @az (az@slackware.com) (Ping Timeout)## Ex. in pvt## Egg &gt; hi, doni. az quit right now. Reason: Ping Timeout############################################ set the list of nicks to watch for quitsset nicks2watch "foo moo who"# set the nick to notify via pmset pm_nick "your_nick"# set the channel to watchbind sign - "#temptest *" do_quit_notify#####proc do_quit_notify {nick uhost handle chan reason} {global nicks2watch pm_nick        if {[lsearch -nocase [split $nicks2watch] [split $nick] ] != -1 } {                putserv "privmsg $pm_nick :Hi $pm_nick. $nick quit right now. Reason: $reason"        }}##########  August 25, 2019# One last thing. How can i add JOIN notify in same TCL? So, QUIT and JOIN # Notify in one TCL. bind join - "* *" do_join_notifyproc do_join_notify {nick uhost handle chan} {global nicks2watch pm_nick   if {[lsearch [string tolower [split $nicks2watch]] [string tolower [split $nick]] ] != -1 } {     putserv "privmsg $pm_nick :Hi $pm_nick. $nick joined $chan . [strftime %c]"        }}</code></pre></div>###<br>###<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Aug 25, 2019 8:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doni]]></name></author>
		<updated>2019-08-25T02:11:42-04:00</updated>

		<published>2019-08-25T02:11:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107767#p107767</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107767#p107767"/>
		<title type="html"><![CDATA[add JOIN watch notify]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107767#p107767"><![CDATA[
Hi guys, thanks for help. One last thing. How can i add JOIN notify in same TCL? So, QUIT and JOIN Notify in one TCL. <br><br>Thanks in advance!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12756">doni</a> — Sun Aug 25, 2019 2:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doni]]></name></author>
		<updated>2019-07-29T18:00:17-04:00</updated>

		<published>2019-07-29T18:00:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107732#p107732</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107732#p107732"/>
		<title type="html"><![CDATA[Re: TCL Quit status notifier]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107732#p107732"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>  putserv "privmsg $pm_nick :Hi $pm_nick. $nick $uhost quit right now. Reason: $reason" </code></pre></div>Reference:   <a href="http://docs.eggheads.org/mainDocs/tcl-commands.html" class="postlink">http://docs.eggheads.org/mainDocs/tcl-commands.html</a><br>and text search to find:     bind sign</div></blockquote>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12756">doni</a> — Mon Jul 29, 2019 6:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2019-07-28T12:51:11-04:00</updated>

		<published>2019-07-28T12:51:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107731#p107731</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107731#p107731"/>
		<title type="html"><![CDATA[Re: TCL Quit status notifier]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107731#p107731"><![CDATA[
<blockquote class="uncited"><div>...<br>Hi, how can i show full mask after $nick in privmsg?<div class="codebox"><p>Code: </p><pre><code>"privmsg $pm_nick :Hi $pm_nick. $nick quit right now. Reason: $reason"</code></pre></div>ex. Hi John. Mario!<a href="mailto:ident@host.com">ident@host.com</a> quit right now etc.. <br>...<br></div></blockquote><div class="codebox"><p>Code: </p><pre><code>  putserv "privmsg $pm_nick :Hi $pm_nick. $nick $uhost quit right now. Reason: $reason" </code></pre></div>Reference:   <a href="http://docs.eggheads.org/mainDocs/tcl-commands.html" class="postlink">http://docs.eggheads.org/mainDocs/tcl-commands.html</a><br>and text search to find:     bind sign<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Jul 28, 2019 12:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doni]]></name></author>
		<updated>2019-07-28T12:31:20-04:00</updated>

		<published>2019-07-28T12:31:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107729#p107729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107729#p107729"/>
		<title type="html"><![CDATA[Re: TCL Quit status notifier]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107729#p107729"><![CDATA[
Hi, how can i show full mask after $nick in privmsg?<div class="codebox"><p>Code: </p><pre><code>"privmsg $pm_nick :Hi $pm_nick. $nick quit right now. Reason: $reason"</code></pre></div>ex. Hi John. Mario!<a href="mailto:ident@host.com">ident@host.com</a> quit right now etc.. <br><br>Thankyou<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12756">doni</a> — Sun Jul 28, 2019 12:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doni]]></name></author>
		<updated>2018-08-26T11:42:14-04:00</updated>

		<published>2018-08-26T11:42:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107012#p107012</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107012#p107012"/>
		<title type="html"><![CDATA[TCL Quit status notifier]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107012#p107012"><![CDATA[
<blockquote class="uncited"><div>ex. on channel: <br>[Notice] john : hi guys, whatsup?<br><br>ex. in pvt or channel<br>Egg &gt; john : hi guys, whatsup?</div></blockquote> <blockquote class="uncited"><div>I don't get it.  Perhaps that is because I get notices in channel, in my client.   But why would you want to repeat what was just said, just using a different method?    Especially why would you want to take what was said in a notice, and repeat it in the open channel?   <br>There must be something that I'm not understanding....</div></blockquote>I need to catch from channel &amp;SERVERS notices of join and leave of irc servers (netsplit) and paste it in another channel as text message<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12756">doni</a> — Sun Aug 26, 2018 11:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2018-08-26T11:30:41-04:00</updated>

		<published>2018-08-26T11:30:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107011#p107011</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107011#p107011"/>
		<title type="html"><![CDATA[TCL Quit status notifier]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107011#p107011"><![CDATA[
<blockquote class="uncited"><div>Guys, You are amazing!!! Thanks a lot!!! <br></div></blockquote>You're welcome.<br><blockquote class="uncited"><div>Just last question...<br><br>In the same TCL: <br>- how can i set for multiple users in the same tcl? <br>ex. az want check quits of some nicks in #ipv6 channel <br>john want check quits of different nicks in #tcl channel </div></blockquote>You said "multiple users", yet your examples are ALSO multi-channel.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Either one of those complicates it.<br><br>I'd have to think about it a while, before deciding just how it would be best to go about it.<br><br>I'm not sure at all if or when I'll get to it.    Perhaps somebody else here will want to jump in.<br><br>If they do - even if I do - don't expect it to be a simple couple lines of code to modify what you have now.   It will most likely be all new.<br><blockquote class="uncited"><div>- like quit, how can eggdrop catch full NOTICES from channel to send (paste) to user?</div></blockquote>You'd just asked for "to user".  That's singular.  Are you going to later ask for it to be multi-user?   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><blockquote class="uncited"><div>ex. on channel: <br>[Notice] john : hi guys, whatsup?<br><br>ex. in pvt or channel<br>Egg &gt; john : hi guys, whatsup?</div></blockquote> <br><br>I don't get it.  Perhaps that is because I get notices in channel, in my client.   But why would you want to repeat what was just said, just using a different method?    Especially why would you want to take what was said in a notice, and repeat it in the open channel?   <br>There must be something that I'm not understanding....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Aug 26, 2018 11:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doni]]></name></author>
		<updated>2018-08-26T05:45:51-04:00</updated>

		<published>2018-08-26T05:45:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107010#p107010</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107010#p107010"/>
		<title type="html"><![CDATA[TCL Quit status notifier]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107010#p107010"><![CDATA[
Guys, You are amazing!!! Thanks a lot!!! <br>Just last question...<br><br>In the same TCL: <br>- how can i set for multiple users in the same tcl? <br>ex. az want check quits of some nicks in #ipv6 channel <br>john want check quits of different nicks in #tcl channel <br><br>- like quit, how can eggdrop catch full NOTICES from channel to send (paste) to user?<br><br>ex. on channel: <br>[Notice] john : hi guys, whatsup?<br><br>ex. in pvt or channel<br>Egg &gt; john : hi guys, whatsup?<br> <br>Thanks &lt;3<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12756">doni</a> — Sun Aug 26, 2018 5:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2018-08-22T07:57:37-04:00</updated>

		<published>2018-08-22T07:57:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107000#p107000</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107000#p107000"/>
		<title type="html"><![CDATA[TCL Quit status notifier]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107000#p107000"><![CDATA[
<blockquote class="uncited"><div>The <em class="text-italics">-nocase</em> argument was introduced in version 8.5, so most likely he's using 8.4 (if not lower).</div></blockquote>I was unsure of this, and didn't take time to go try to look it up.   Thank you.<br><br>As a matter of fact, it is easy to lose track of time ...  I don't remember how long ago it has been when version 8.4 was typical.   Time flies -  it's getting to be a while now.<br><br>doni :   What Ezekiel said, is what I would do too.<br><br>You can read about what the command that he uses does, here:<br><a href="http://www.tcl.tk/man/tcl8.6/TclCmd/string.htm#M44" class="postlink">http://www.tcl.tk/man/tcl8.6/TclCmd/string.htm#M44</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Wed Aug 22, 2018 7:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2018-08-22T07:36:53-04:00</updated>

		<published>2018-08-22T07:36:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106999#p106999</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106999#p106999"/>
		<title type="html"><![CDATA[TCL Quit status notifier]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106999#p106999"><![CDATA[
The <em class="text-italics">-nocase</em> argument was introduced in version 8.5, so most likely he's using 8.4 (if not lower).<br><br>doni you should consider upgrading the TCL library because everyone tends to use stuff that can be found in newer versions of the library.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Aug 22, 2018 7:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ezekiel]]></name></author>
		<updated>2018-08-23T00:57:06-04:00</updated>

		<published>2018-08-22T02:54:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106998#p106998</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106998#p106998"/>
		<title type="html"><![CDATA[TCL Quit status notifier]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106998#p106998"><![CDATA[
it seems you use an older TCL version, try replacing the line: <blockquote class="uncited"><div>        if {[lsearch -nocase [split $nicks2watch] [split $nick] ] != -1 } { </div></blockquote>with this one:<blockquote class="uncited"><div>if {[lsearch [string tolower [split $nicks2watch]] [string tolower [split $nick]] ] != -1 } {</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12473">Ezekiel</a> — Wed Aug 22, 2018 2:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2018-08-21T22:23:31-04:00</updated>

		<published>2018-08-21T22:23:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106997#p106997</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106997#p106997"/>
		<title type="html"><![CDATA[Re: TCL Quit status notifier]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106997#p106997"><![CDATA[
<blockquote class="uncited"><div>...<br>[08:48] Tcl error [do_quit_notify]: bad search mode "-nocase": must be -exact, -          glob, or -regexp<br><br>i am using -exact and it's work! what are the differences between exact, glob or regexp? </div></blockquote>The main page for TCL commands is:<br><a href="http://www.tcl.tk/man/tcl8.6/TclCmd/contents.htm" class="postlink">http://www.tcl.tk/man/tcl8.6/TclCmd/contents.htm</a><br><br>Once there, you can find the lsearch command:<br><a href="http://www.tcl.tk/man/tcl8.6/TclCmd/lsearch.htm" class="postlink">http://www.tcl.tk/man/tcl8.6/TclCmd/lsearch.htm</a><br><br>and all those things are explained there.  <br><br>I don't even try to remember all that stuff - I just remember (I have it bookmarked) where and how to look it up when I need it.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br><blockquote class="uncited"><div> "#temptest *"  --&gt; why *?</div></blockquote>For this one,  go here:  <br><a href="http://docs.eggheads.org/mainDocs/tcl-commands.html" class="postlink">http://docs.eggheads.org/mainDocs/tcl-commands.html</a><br>and text search or scroll down to:<br>bind sign<br>and see this in context:<br>".... Wildcards can be used in the mask, which is matched against '#channel nick!user@host'. "<br><br>In other words, I put an asterisk there so that the bind would trigger on every quit.  I thought that was what you wanted / needed.<br>If you WANT to limit it to triggering only on certain hostmasks, you can do it right there.   Up to you.   Hack at it.  Experiment.   Have fun.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Tip:  When editing bind lines, a simple .rehash is often not sufficient.  You may get unexpected results.  While there are other ways to handle it, the simple, easiest way is:  When editing bind lines,  do a  .restart  to effect the change.<br>If you really want more explanation on why, say so and we'll go over it.<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br><br>As for why you got that error ... about the  -nocase  switch I used with the lsearch command -  I wonder what version of TCL you have.<br>I wonder if it is somehow a very old version....<br><br>In partyline, do:        .status<br>and the version of TCL will be on one of the lines in the report returned.<br><br>I hope this helped.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Aug 21, 2018 10:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doni]]></name></author>
		<updated>2018-08-21T20:21:26-04:00</updated>

		<published>2018-08-21T20:21:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106996#p106996</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106996#p106996"/>
		<title type="html"><![CDATA[Re: TCL Quit status notifier]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106996#p106996"><![CDATA[
[08:48] Tcl error [do_quit_notify]: bad search mode "-nocase": must be -exact, -          glob, or -regexp<br><br>i am using -exact and it's work! what are the differences between exact, glob or regexp? <br><br> "#temptest *"  --&gt; why *?<br>THANKS!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12756">doni</a> — Tue Aug 21, 2018 8:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2018-08-21T17:31:42-04:00</updated>

		<published>2018-08-21T17:31:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106995#p106995</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106995#p106995"/>
		<title type="html"><![CDATA[Re: TCL Quit status notifier]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106995#p106995"><![CDATA[
Experiment with this.<br><br>You will have to edit three lines.<br><div class="codebox"><p>Code: </p><pre><code># August 21, 2018#  #http://forum.egghelp.org/viewtopic.php?t=20495# I am looking for tcl script to notify (with private msg to nick) quit events of certain people on channel.## I am following my friend az## Ex. on channel# * Quits: @az (az@slackware.com) (Ping Timeout)## Ex. in pvt## Egg &gt; hi, doni. az quit right now. Reason: Ping Timeout############################################ set the list of nicks to watch for quitsset nicks2watch "foo moo who"# set the nick to notify via pmset pm_nick "your_nick"# set the channel to watchbind sign - "#temptest *" do_quit_notify#####proc do_quit_notify {nick uhost handle chan reason} {global nicks2watch pm_nick        if {[lsearch -nocase [split $nicks2watch] [split $nick] ] != -1 } {                putserv "privmsg $pm_nick :Hi $pm_nick. $nick quit right now. Reason: $reason"        }}####</code></pre></div>Only tested twice.   Worked for me.      <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Aug 21, 2018 5:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doni]]></name></author>
		<updated>2018-08-21T08:30:45-04:00</updated>

		<published>2018-08-21T08:30:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106994#p106994</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106994#p106994"/>
		<title type="html"><![CDATA[TCL Quit status notifier]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106994#p106994"><![CDATA[
Hi guys,<br>I am looking for tcl script to notify (with private msg to nick) quit events of certain people on channel.<br><br>I am following my friend az<br><br>Ex. on channel<br>* Quits: @az (<a href="mailto:az@slackware.com">az@slackware.com</a>) (Ping Timeout)<br><br>Ex. in pvt<br><br>Egg &gt; hi, doni. az quit right now. Reason: Ping Timeout<br><br>Someone help me?<br>Thanks a lot!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12756">doni</a> — Tue Aug 21, 2018 8:30 am</p><hr />
]]></content>
	</entry>
	</feed>
