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

	<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>2010-08-13T09:40:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-08-13T09:40:50-04:00</updated>

		<published>2010-08-13T09:40:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93916#p93916</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93916#p93916"/>
		<title type="html"><![CDATA[Spychan.tcl on/off switch]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93916#p93916"><![CDATA[
You're welcome.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Aug 13, 2010 9:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Elements]]></name></author>
		<updated>2010-08-13T01:15:07-04:00</updated>

		<published>2010-08-13T01:15:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93915#p93915</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93915#p93915"/>
		<title type="html"><![CDATA[Spychan.tcl on/off switch]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93915#p93915"><![CDATA[
Thank you very much for your efforts willyw<br>both are working as it should.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10557">Elements</a> — Fri Aug 13, 2010 1:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-08-12T15:58:52-04:00</updated>

		<published>2010-08-12T15:58:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93911#p93911</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93911#p93911"/>
		<title type="html"><![CDATA[Spychan.tcl on/off switch]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93911#p93911"><![CDATA[
Another way:<br><div class="codebox"><p>Code: </p><pre><code># Use this script with spychan.tcl# it unbinds the binds from that script, to effect an "off"# and will rebind them, to effect and "on"## Usage: For "off", send:         /msg &lt;botnick&gt; !unbind-spy##        For "on", send:          /msg &lt;botnick&gt; !rebind-spy## As is, this script will only allow users with +o flag to trigger it.#bind msg o "!rebind-spy" rebind:spybind msg o "!unbind-spy" unbind:spyproc rebind:spy {nick uhost handle text} {global spybind PUBM   -|- *                spychan:chatbind CTCP   -|- "ACTION"         spychan:actionbind SIGN   -|- "$spy(chan) *"   spychan:signbind JOIN   -|- "$spy(chan) *"   spychan:joinbind PART   -|- "$spy(chan) *"   spychan:partbind SPLT   -|- "$spy(chan) *"   spychan:splitbind KICK   -|- "$spy(chan) *"   spychan:kickbind RAW     *  "MODE"           spychan:mode}proc unbind:spy {nick uhost handle text} {global spyunbind PUBM   -|- *                spychan:chatunbind CTCP   -|- "ACTION"         spychan:actionunbind SIGN   -|- "$spy(chan) *"   spychan:signunbind JOIN   -|- "$spy(chan) *"   spychan:joinunbind PART   -|- "$spy(chan) *"   spychan:partunbind SPLT   -|- "$spy(chan) *"   spychan:splitunbind KICK   -|- "$spy(chan) *"   spychan:kickunbind RAW     *  "MODE"           spychan:mode }</code></pre></div>Elements:<br>if you decide to try this method, then just use your original spychan script - no need to use the one I modified above.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Aug 12, 2010 3:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-08-12T13:17:04-04:00</updated>

		<published>2010-08-12T13:17:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93904#p93904</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93904#p93904"/>
		<title type="html"><![CDATA[Re: Spychan.tcl on/off switch]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93904#p93904"><![CDATA[
<blockquote class="uncited"><div>...<br>or anything to make it start/stop relaying on the fly.</div></blockquote>One way :<br><div class="codebox"><p>Code: </p><pre><code># Info# Author : MeTroiD - #v1per on Quakenet# Version: 1.2set spy(author)  "MeTroiD - #v1per on Quakenet"set spy(version) "1.2"# Description# This script will relay anything said on one channel to the other channel you configure# I recommend you don't run this script on a bot that already has to do alot# If the channel you're spying on has alot of users with alot of talking your bot could excess flood# Configuration# The channel it reports everything toset spy(home) "#twilight-zone"# The channel it gets all the data from and then reports it to the homechannelset spy(chan) "#v1per"bind PUBM   -|- *                spychan:chatbind CTCP   -|- "ACTION"         spychan:actionbind SIGN   -|- "$spy(chan) *"   spychan:signbind JOIN   -|- "$spy(chan) *"   spychan:joinbind PART   -|- "$spy(chan) *"   spychan:partbind SPLT   -|- "$spy(chan) *"   spychan:splitbind KICK   -|- "$spy(chan) *"   spychan:kickbind RAW     *  "MODE"           spychan:modesetudef flag spychanproc spychan:part { nickname hostname handle channel reason } {   global spyif {([lsearch -exact [channel info $channel] {+spychan}] != -1)} {   if {[string equal -nocase $channel $spy(chan)]} {   putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname ($hostname) has left $spy(chan)"   }}       }proc spychan:join { nickname hostname handle channel } {   global spyif {([lsearch -exact [channel info $channel] {+spychan}] != -1)} {   if {[string equal -nocase $channel $spy(chan)]} {   putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname ($hostname) has joined $spy(chan)"   }}       }proc spychan:kick { nickname hostname handle channel target reason } {   global spyif {([lsearch -exact [channel info $channel] {+spychan}] != -1)} {   if {[string equal -nocase $channel $spy(chan)]} {   putserv "PRIVMSG $spy(home) :\[$channel\] * $target was kicked from $spy(chan) by $nickname ($reason)"   }}       }proc spychan:mode { from key arguments } {   global spy   set channel [string trim [lindex [split $arguments] 0]]if {([lsearch -exact [channel info $channel] {+spychan}] != -1)} {   set modechange [string trim [lindex [split $arguments] 1]]   set victims [string trim [join [lrange [split $arguments] 2 end]]]   set nickname [string trim [lindex [split $from "!"] 0]]   set hostname [string trim [lindex [split $from "!"] 1]]   if {[string equal -nocase $channel $spy(chan)]} {   putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname sets mode: $modechange $victims"   }}       }proc spychan:sign { nickname hostname handle channel reason } {   global spyif {([lsearch -exact [channel info $channel] {+spychan}] != -1)} {   if {[string equal -nocase $channel $spy(chan)]} {   putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname ($hostname) has quit IRC ($reason)"   }}       }proc spychan:split { nickname hostname handle channel arguments } {   global spyif {([lsearch -exact [channel info $channel] {+spychan}] != -1)} {   if {[string equal -nocase $channel $spy(chan)]} {   putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname has split from the network"   }}       }proc spychan:chat { nickname hostname handle channel arguments } {   global spyif {([lsearch -exact [channel info $channel] {+spychan}] != -1)} {   if {[string equal -nocase $channel $spy(chan)]} {        putserv "PRIVMSG $spy(home) :\[$channel\] &lt;$nickname&gt; $arguments"        }}       }proc spychan:action { nickname hostname handle channel keyword arguments } {   global spyif {([lsearch -exact [channel info $channel] {+spychan}] != -1)} {   if {[string equal -nocase $channel $spy(chan)]} {        putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname $arguments"        }}       }putlog "Spychan.tcl version $spy(version) by $spy(author) Loaded!" </code></pre></div><br>Enclosed everything in each proc, in an if statement.   It checks a user defined channel flag.  If set to + ,  then proc continues.<br><br>After installing, log into your bot's partyline via DCC chat or telnet.<br>Do .chaninfo on the channel set with : set spy(chan) <br>In this case, it is     "#v1per"<br>and see the current value of "spychan".   <br>When it is -spychan ,  reporting is off<br>If you change it to +spychan , reporting is on.<br>Change it with .chanset +spychan <br>or<br>.chanset -spychan<br><br>I have not extensively tested this.   Only a couple brief tests, and it worked.<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> — Thu Aug 12, 2010 1:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Elements]]></name></author>
		<updated>2010-08-12T00:28:45-04:00</updated>

		<published>2010-08-12T00:28:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93896#p93896</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93896#p93896"/>
		<title type="html"><![CDATA[Spychan.tcl on/off switch]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93896#p93896"><![CDATA[
Spychan<br><a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=1109" class="postlink">http://www.egghelp.org/cgi-bin/tcl_arch ... ad&amp;id=1109</a><br>works fine and does all i need but i wonder if anyone <br>can add an an on/off public command to it like !echo on - !echo off <br>or anything to make it start/stop relaying on the fly.<br>Thank you.<br><div class="codebox"><p>Code: </p><pre><code># Info# Author : MeTroiD - #v1per on Quakenet# Version: 1.2set spy(author)  "MeTroiD - #v1per on Quakenet"set spy(version) "1.2"# Description# This script will relay anything said on one channel to the other channel you configure# I recommend you don't run this script on a bot that already has to do alot# If the channel you're spying on has alot of users with alot of talking your bot could excess flood# Configuration# The channel it reports everything toset spy(home) "#twilight-zone"# The channel it gets all the data from and then reports it to the homechannelset spy(chan) "#v1per"bind PUBM   -|- *                spychan:chatbind CTCP   -|- "ACTION"         spychan:actionbind SIGN   -|- "$spy(chan) *"   spychan:signbind JOIN   -|- "$spy(chan) *"   spychan:joinbind PART   -|- "$spy(chan) *"   spychan:partbind SPLT   -|- "$spy(chan) *"   spychan:splitbind KICK   -|- "$spy(chan) *"   spychan:kickbind RAW     *  "MODE"           spychan:modeproc spychan:part { nickname hostname handle channel reason } {global spyif {[string equal -nocase $channel $spy(chan)]} {putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname ($hostname) has left $spy(chan)"}       }proc spychan:join { nickname hostname handle channel } {global spyif {[string equal -nocase $channel $spy(chan)]} {putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname ($hostname) has joined $spy(chan)"}       }proc spychan:kick { nickname hostname handle channel target reason } {global spyif {[string equal -nocase $channel $spy(chan)]} {putserv "PRIVMSG $spy(home) :\[$channel\] * $target was kicked from $spy(chan) by $nickname ($reason)"}       }proc spychan:mode { from key arguments } {global spyset channel [string trim [lindex [split $arguments] 0]] set modechange [string trim [lindex [split $arguments] 1]] set victims [string trim [join [lrange [split $arguments] 2 end]]] set nickname [string trim [lindex [split $from "!"] 0]] set hostname [string trim [lindex [split $from "!"] 1]]if {[string equal -nocase $channel $spy(chan)]} {putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname sets mode: $modechange $victims"}       }proc spychan:sign { nickname hostname handle channel reason } {global spyif {[string equal -nocase $channel $spy(chan)]} {putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname ($hostname) has quit IRC ($reason)"}       }proc spychan:split { nickname hostname handle channel arguments } {global spyif {[string equal -nocase $channel $spy(chan)]} {putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname has split from the network"}       }proc spychan:chat { nickname hostname handle channel arguments } {global spyif {[string equal -nocase $channel $spy(chan)]} {        putserv "PRIVMSG $spy(home) :\[$channel\] &lt;$nickname&gt; $arguments"        }       }proc spychan:action { nickname hostname handle channel keyword arguments } {global spyif {[string equal -nocase $channel $spy(chan)]} {        putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname $arguments"        }       }putlog "Spychan.tcl version $spy(version) by $spy(author) Loaded!" </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10557">Elements</a> — Thu Aug 12, 2010 12:28 am</p><hr />
]]></content>
	</entry>
	</feed>
