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

	<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-10-14T08:41:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[jurist111]]></name></author>
		<updated>2010-10-14T08:41:25-04:00</updated>

		<published>2010-10-14T08:41:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94720#p94720</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94720#p94720"/>
		<title type="html"><![CDATA[need help with whyonnotice tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94720#p94720"><![CDATA[
hii this tcl gives msg in pvt tht why a nick is op i want tht it gives in channel or on notice..thanks<br># Welcome to JuRiSt Tcl World<br># Just Upload in your Bot This tcl will notice in channel when some one get op<br><br># JuRiSt Why On Notice TCL<br>putlog "Why On Notice TCL - "<br> <br>set vWhyServ "<a href="mailto:chanserv@services.dal.net">chanserv@services.dal.net</a>" <br>set vWhyTime 10 <br> <br>bind MODE - "% +o" pWhySend <br>bind NOTC - * pWhyReceive <br> <br>proc pWhyCancel {} { <br>    global vWhyChan vWhyNick <br>    foreach item [utimers] { <br>        if {[string equal pWhyTimeout [lindex $item 1]]} { <br>            killutimer [lindex $item 2] <br>        } <br>    } <br>    if {[info exists vWhyNick]} {unset vWhyNick} <br>    if {[info exists vWhyChan]} {unset vWhyChan} <br>    return 0 <br>} <br> <br>proc pWhyReceive {nick uhost hand text dest} { <br>    global vWhyNick vWhyChan vWhyServ <br>    if {![regexp {^#} $dest]} { <br>        if {[string equal -nocase $nick [lindex [split $vWhyServ @] 0]]} { <br>            if {[info exists vWhyNick]} { <br>                set response [stripcodes bcruag $text] <br>                if {[string match -nocase *${vWhyNick}* [join [lrange [split $response] 0 2]]]} { <br>                    putserv "NOTICE @$vWhyChan :$response" <br>                    pWhyCancel <br>                } <br>            } <br>        } <br>    } <br>    return 0 <br>} <br> <br>proc pWhySend {nick uhost hand chan mode target} { <br>    global vWhyServ vWhyNick vWhyChan vWhyTime <br>    if {[string equal -nocase $nick [lindex [split $vWhyServ @] 0]]} { <br>        set vWhyNick $target <br>        set vWhyChan $chan <br>        putserv "PRIVMSG $vWhyServ :WHY $vWhyChan $vWhyNick" <br>        utimer $vWhyTime pWhyTimeout <br>    } <br>    return 0 <br>} <br> <br>proc pWhyTimeout {} { <br>    global vWhyNick vWhyChan <br>    putserv "PRIVMSG @$vWhyChan :a /WHY command for $vWhyNick timed out without response or maybe someone del my access. i cannot send you any info with out @op" <br>    pWhyCancel <br>    return 0 <br>} <br> <br># eof<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11331">jurist111</a> — Thu Oct 14, 2010 8:41 am</p><hr />
]]></content>
	</entry>
	</feed>
