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

	<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>2015-05-11T14:38:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[DragonHeart]]></name></author>
		<updated>2015-05-11T14:38:39-04:00</updated>

		<published>2015-05-11T14:38:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104065#p104065</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104065#p104065"/>
		<title type="html"><![CDATA[Need help on Arfer's why.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104065#p104065"><![CDATA[
This is the following code, which works perfectly fine. Just the problem is that I want to do this .chanset #channelname +cswhy<br><br>I dont want the bot to reply me on any and every channel. Please assist.<br><div class="codebox"><p>Code: </p><pre><code># why.tcl # find out why users are op'd by chanserv services and onotice channel set vWhyServ "chanserv@services.dal.net" set vWhyTime 10 bind MODE - "% +o" pWhySend bind NOTC - * pWhyReceive proc pWhyCancel {} {     global vWhyChan vWhyNick     foreach item [utimers] {         if {[string equal pWhyTimeout [lindex $item 1]]} {             killutimer [lindex $item 2]         }     }     if {[info exists vWhyNick]} {unset vWhyNick}     if {[info exists vWhyChan]} {unset vWhyChan}     return 0 } proc pWhyReceive {nick uhost hand text dest} {     global vWhyNick vWhyChan vWhyServ     if {![regexp {^#} $dest]} {         if {[string equal -nocase $nick [lindex [split $vWhyServ @] 0]]} {             if {[info exists vWhyNick]} {                 set response [stripcodes bcruag $text]                 if {[string match -nocase *${vWhyNick}* [join [lrange [split $response] 0 2]]]} {                     putserv "NOTICE @$vWhyChan :$response"                     pWhyCancel                 }             }         }     }     return 0 } proc pWhySend {nick uhost hand chan mode target} {     global vWhyServ vWhyNick vWhyChan vWhyTime     if {[string equal -nocase $nick [lindex [split $vWhyServ @] 0]]} {         set vWhyNick $target         set vWhyChan $chan         putserv "PRIVMSG $vWhyServ :WHY $vWhyChan $vWhyNick"         utimer $vWhyTime pWhyTimeout     }     return 0 } proc pWhyTimeout {} {     global vWhyNick vWhyChan     putserv "PRIVMSG @$vWhyChan :a /WHY command for $vWhyNick timed out without response"     pWhyCancel     return 0 } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12529">DragonHeart</a> — Mon May 11, 2015 2:38 pm</p><hr />
]]></content>
	</entry>
	</feed>
