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

	<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>2020-07-08T12:08:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2020-07-08T12:08:58-04:00</updated>

		<published>2020-07-08T12:08:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108689#p108689</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108689#p108689"/>
		<title type="html"><![CDATA[need help with watch.tcl from willyw]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108689#p108689"><![CDATA[
<blockquote class="uncited"><div>...<br>I've tested it and it works well<br>...</div></blockquote>and THAT is good to hear.        ( That makes MY day.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">  )<br>Thanks for reporting back.  <br><br>You're welcome.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Wed Jul 08, 2020 12:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Andika]]></name></author>
		<updated>2020-07-08T11:35:19-04:00</updated>

		<published>2020-07-08T11:35:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108688#p108688</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108688#p108688"/>
		<title type="html"><![CDATA[need help with watch.tcl from willyw]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108688#p108688"><![CDATA[
hi willyw thank you for being able to help even if you don't have time you are still willing to help. thank you very much. <br><br>I've tested it and it works well And Perfectly. you really brighten my day, thanks willyw. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><div class="codebox"><p>Code: </p><pre><code>[23:22:28]+Chika : plankton ~admin@bla.bla.bla.bla.IP has logged on[23:22:50]+Chika : plankton ~admin@bla.bla.bla.bla.IP has logged off</code></pre></div>Thank You So MUch Sir <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">  <br><br>---------------------------------------------<br><span style="text-decoration:underline"><strong class="text-strong">G</strong></span>uardian<span style="text-decoration:underline"><strong class="text-strong">A</strong></span>ngel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12878">Andika</a> — Wed Jul 08, 2020 11:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2020-07-07T12:12:03-04:00</updated>

		<published>2020-07-07T12:12:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108684#p108684</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108684#p108684"/>
		<title type="html"><![CDATA[Re: need help with watch.tcl from willyw]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108684#p108684"><![CDATA[
Find proc rpl_logon.<br>Replace it with this:<br><br><div class="codebox"><p>Code: </p><pre><code>###proc rpl_logon {from key text } {global your_demo_chan        #putserv "privmsg $your_demo_chan :[lindex [split $text] 1 ] has logged on "        set ident [lindex [split $text] 2]        set hostmask [lindex [split $text] 3]        putserv "privmsg $your_demo_chan :[lindex [split $text] 1 ] [join "$ident $hostmask" "@"]  has logged on "        putserv "invite [lindex [split $text] 1] $your_demo_chan "}###</code></pre></div><br>Find proc rpl_logoff.<br>Replace it with this:<br><div class="codebox"><p>Code: </p><pre><code>###proc rpl_logoff {from key text} {global your_demo_chan               #putserv "privmsg $your_demo_chan :[lindex [split $text] 1 ] has logged off"        set ident [lindex [split $text] 2]        set hostmask [lindex [split $text] 3]        putserv "privmsg $your_demo_chan :[lindex [split $text] 1 ] [join "$ident $hostmask" "@"] has logged off"}###</code></pre></div><br>Rehash.<br>Test.<br>Test some more.<br><br><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=10420">willyw</a> — Tue Jul 07, 2020 12:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Andika]]></name></author>
		<updated>2020-07-07T05:08:51-04:00</updated>

		<published>2020-07-07T05:08:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108680#p108680</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108680#p108680"/>
		<title type="html"><![CDATA[need help with watch.tcl from willyw]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108680#p108680"><![CDATA[
Thanks willyw Really Appreciate That <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Hope Someone Will Help Me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>-------------------------------<br><span style="text-decoration:underline"><strong class="text-strong">G</strong></span>uardian<span style="text-decoration:underline"><strong class="text-strong">A</strong></span>ngel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12878">Andika</a> — Tue Jul 07, 2020 5:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2020-07-06T11:28:49-04:00</updated>

		<published>2020-07-06T11:28:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108679#p108679</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108679#p108679"/>
		<title type="html"><![CDATA[Re: need help with watch.tcl from willyw]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108679#p108679"><![CDATA[
<blockquote class="uncited"><div>...<br>can anyone help me to add host on nick that logon/logout <br><br>exp <br><br>&lt;bot&gt; nick <a href="mailto:ident@bla.bla.bla">ident@bla.bla.bla</a> has logon to server<br>&lt;bot&gt; nick <a href="mailto:ident@bla.bla.bla">ident@bla.bla.bla</a> has logout from server<br></div></blockquote>First:<br>It has been quite some time since I did this.  I'd have to re-read it just to see what all I did.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Next:<br>To get the info you want,  I would want to load it and experiment with it.<br>It should be possible.<br>However, I don't know when I will have time to sit and work on it.    I'm sorry.<br><br>Since I posted it in public like this, I don't mind if somebody else takes it up though.    <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">      I would ask that whatever they do to it, they simply post it in public too,  right along with the original.  Here in this thread would be fine.<br><br>Hopefully somebody else will jump in here.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Jul 06, 2020 11:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Andika]]></name></author>
		<updated>2020-07-06T05:12:45-04:00</updated>

		<published>2020-07-06T05:12:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108674#p108674</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108674#p108674"/>
		<title type="html"><![CDATA[need help with watch.tcl from willyw]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108674#p108674"><![CDATA[
Hi there <br>This tcl running smoothly. Thanks To willyw.<br><br>visit here: <a href="http://forum.egghelp.org/viewtopic.php?t=19934" class="postlink">http://forum.egghelp.org/viewtopic.php?t=19934</a> <div class="codebox"><p>Code: </p><pre><code># April 20, 2015# http://forum.egghelp.org/viewtopic.php?t=19934# the poster is asking to make something similar to mIRC's built in "notify" list# mIRC uses the IRC server's /watch command   or the  /monitor command# Usage:# To temporarily add a nick to the watch list:# !addwatch &lt;nick&gt;# To temporarily remove a nick from the watch list:# !remwatch &lt;nick&gt;# To display the current watch list:# !watchlist# You must create a plain text file, with one nick per line# This file will be read by the bot upon .restart and the nicks in it# will be added to the watch list held by the IRC server for this session.#set the path/filename of file that holds the nicks to watch  (Required)set nicks_watch_file "scripts/added/use_irc_watch/nicks_watch_file.txt"#set channel where you can experiment and demonstrate this script  (Required - and bot must be on this channel)set your_demo_chan #eggdrop####################################################################################################################################################bind pub - "!addwatch" add_to_watchlistbind pub - "!remwatch" remove_from_watchlistbind pub - "!watchlist" get_watch_statsbind raw - 600 rpl_logonbind raw - 601 rpl_logoffbind raw - 606 rpl_watchlist#Reference : https://www.alien.net.au/irc/irc2numerics.html#########  to read the nicks to watch, and send them to the IRC serverproc send_watch_command {nicks_watch_file} {        if {![file exists $nicks_watch_file]} {                putlog " "                putlog "$nicks_watch_file not found !"                putlog " "                return 0        }        set fp [open $nicks_watch_file "r"]        set data [read -nonewline $fp]        close $fp        set lines [split $data "\n"]        foreach n $lines {                puthelp "watch +$n"        }        putlog "Added these nicks to watch list on IRC server : $lines"}proc rpl_logon {from key text } {global your_demo_chan        #putserv "privmsg $your_demo_chan :$from       $key        $text"        putserv "privmsg $your_demo_chan :[lindex [split $text] 1 ] has logged on "        putserv "invite [lindex [split $text] 1] $your_demo_chan "}proc rpl_logoff {from key text} {global your_demo_chan        #putserv "privmsg $your_demo_chan :$from      $key         $text"        putserv "privmsg $your_demo_chan :[lindex [split $text] 1 ] has logged off"}proc rpl_watchlist {from key text} {global your_demo_chan        putserv "privmsg $your_demo_chan :Watch list of nicks is currently: [lindex [split $text :] 1]"}proc add_to_watchlist {nick uhost handle chan text} {        putserv "watch +[lindex [split $text] 0 ]"        putserv "privmsg $chan :[lindex [split $text] 0 ] temporarily added to watch list"        putserv "privmsg $chan :Edit the watch list file, to make it permanent for next restart of bot"}proc remove_from_watchlist {nick uhost handle chan text} {        putserv "watch -[lindex [split $text] 0 ]"        putserv "privmsg $chan :[lindex [split $text] 0 ] temporarily removed from watch list"        putserv "privmsg $chan :Edit the watch list file, to permanently remove for next restart of bot"}proc get_watch_stats {nick uhost handle chan text} {        putserv "watch stat"}#########  read the nicks to watch, and send them to the IRC serverbind evnt - init-server do_watch_command_wrapproc do_watch_command_wrap {type} {global nicks_watch_file        send_watch_command $nicks_watch_file}#########</code></pre></div>can anyone help me to add host on nick that logon/logout <br><br>exp <br><br>&lt;bot&gt; nick <a href="mailto:ident@bla.bla.bla">ident@bla.bla.bla</a> has logon to server<br>&lt;bot&gt; nick <a href="mailto:ident@bla.bla.bla">ident@bla.bla.bla</a> has logout from server<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"><br>-------------------------------------<br><strong class="text-strong"><span style="text-decoration:underline">G</span></strong>uardian<strong class="text-strong"><span style="text-decoration:underline">A</span></strong>ngel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12878">Andika</a> — Mon Jul 06, 2020 5:12 am</p><hr />
]]></content>
	</entry>
	</feed>
