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

	<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-14T15:35:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2010-08-14T15:35:20-04:00</updated>

		<published>2010-08-14T15:35:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93954#p93954</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93954#p93954"/>
		<title type="html"><![CDATA[Modify: joinnotify.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93954#p93954"><![CDATA[
I added this line: <div class="codebox"><p>Code: </p><pre><code> if {[validuser $handle] &amp;&amp; [matchattr $handle |S $chan]} {</code></pre></div>, which I think is what you want... it checks to see if the handle of the person joining is in the userfile and has the +S flag on the channel. Proc halts and does nothing otherwise.<br><br>Note that to give the user +S on the channel, you need to do ".chattr handle |+S" in the partyline.  The "|" separates global from channel flags.  In case you didn't know...<br><div class="codebox"><p>Code: </p><pre><code>############################################################## joinnotify.tcl v1.0 by greenbear &lt;greenbear@defragged.org&gt;## Someone asked for it, so here it is.## It sends you a email when any of the nicks specified# join one of the channels specified.## notify you when any of theese nicks join your chanset ppl "nick1 nick2"# your email addyset mail "email@addy.com"# channels you want to monitorset mailchans "#channel1 #channel2"bind join - * notifyproc notify {nick uhost handle chan}  { if {[validuser $handle] &amp;&amp; [matchattr $handle |S $chan]} { global ppl mail mailchans  if {![file exists emptyfile] } {      set tempfile [open emptyfile w]      puts $tempfile " "      close $tempfile  }  if {([lsearch -exact [string tolower $ppl] [string tolower $nick]] != -1) &amp;&amp; ([lsearch -exact [string tolower $mailchans] [$     putlog "$nick ($uhost) joined $chan, emailing $mail about it."     exec mail -s "$nick ($uhost) joined $chan" $mail &lt; emptyfile  }   }return)</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11101">Luminous</a> — Sat Aug 14, 2010 3:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[erotism]]></name></author>
		<updated>2010-08-14T14:48:50-04:00</updated>

		<published>2010-08-14T14:48:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93951#p93951</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93951#p93951"/>
		<title type="html"><![CDATA[Modify: joinnotify.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93951#p93951"><![CDATA[
I found a very useful script archive, but I want to ask someone can you help me to change it a little ...<br><div class="codebox"><p>Code: </p><pre><code>############################################################## joinnotify.tcl v1.0 by greenbear &lt;greenbear@defragged.org&gt;## Someone asked for it, so here it is.## It sends you a email when any of the nicks specified# join one of the channels specified.## notify you when any of theese nicks join your chanset ppl "nick1 nick2"# your email addyset mail "email@addy.com"# channels you want to monitorset mailchans "#channel1 #channel2"bind join - * notifyproc notify {nick uhost handle chan}  { global ppl mail mailchans  if {![file exists emptyfile] } {      set tempfile [open emptyfile w]      puts $tempfile " "      close $tempfile  }  if {([lsearch -exact [string tolower $ppl] [string tolower $nick]] != -1) &amp;&amp; ([lsearch -exact [string tolower $mailchans] [$     putlog "$nick ($uhost) joined $chan, emailing $mail about it."     exec mail -s "$nick ($uhost) joined $chan" $mail &lt; emptyfile  }}</code></pre></div>This is the script .. My idea is if you can eliminate static nicks and to ensure that the bot to see when entering the channel if the user has added to his userfile, and have +S flag is then sent to email to me..<br><br>Vignette:<br>The idea of the whole job is to receive mail2sms on my phone when someone added with +S flag and *hostmask* in bot userfile joining the channels..<br><br>I strongly hope someone can help. Thank you in advance:)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11311">erotism</a> — Sat Aug 14, 2010 2:48 pm</p><hr />
]]></content>
	</entry>
	</feed>
