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

	<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>2011-01-15T05:28:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[username]]></name></author>
		<updated>2011-01-15T05:28:41-04:00</updated>

		<published>2011-01-15T05:28:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95686#p95686</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95686#p95686"/>
		<title type="html"><![CDATA[putnotc $nick help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95686#p95686"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>            putnotc $tellnick "\002$tellnick\002: ($dbfact) $out1"            putnotc $tellnick "\002$tellnick\002: ($dbfact) $out2"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6813">username</a> — Sat Jan 15, 2011 5:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[xmods]]></name></author>
		<updated>2011-01-15T00:02:20-04:00</updated>

		<published>2011-01-15T00:02:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95685#p95685</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95685#p95685"/>
		<title type="html"><![CDATA[putnotc $nick help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95685#p95685"><![CDATA[
im trying to change this script to notice nic instead on msg channel, when i change putmsg $channel "\002$tellnick\002: ($dbfact) $out1" to  putnotc $nick "\002$tellnick\002: ($dbfact) $out1" it only notices the nic sending the command <br><br>it's the faq.tcl i just changed all the rest with  putnotc $nick so people can't flood the chan and it goes specifically to the nic it's ment for <div class="codebox"><p>Code: </p><pre><code>proc faq:tell_fact {nick idx handle channel args} {global faqif { [lsearch -exact [split [string tolower $faq(channels)]] [string tolower $channel]] &lt; 0 } {return 0}if {$faq(status)==1} {putnotc $nick "The faq-database is \002closed\002."return 0}if {![file exist $faq(database)]} {set database [open $faq(database) w]puts -nonewline $database ""close $database}set tellnick [ lindex [split [join $args]] 0 ]set fact [ string trim [ string tolower [ join [ lrange [split [join $args]] 1 end ] ] ] ]if {$tellnick == ""} {putnotc $nick "Syntax: [string trim $faq(cmdchar)]faq \002nick\002 keyword"return 0}if {$fact == ""} {putnotc $nick "Syntax: [string trim $faq(cmdchar)]faq nick \002keyword\002"return 0}set database [open $faq(database) r]set dbline ""while {![eof $database]} {gets $database dblineset dbfact [ string tolower [ lindex [split $dbline [string trim $faq(splitchar)]] 0 ] ]set dbdefinition [string range $dbline [expr [string length $fact]+1] end]if {$dbfact==$fact} {if {[string match -nocase "*$faq(newline)*" $dbdefinition]} {set out1 [lindex [split $dbdefinition "$faq(newline)"] 0]set out2 [string range $dbdefinition [expr [string length $out1]+2] end]putmsg $channel "\002$tellnick\002: ($dbfact) $out1"putmsg $channel "\002$tellnick\002: ($dbfact) $out2"} else {putmsg $channel "\002$tellnick\002: ($dbfact) $dbdefinition"}putlog "FAQ: Send keyword \"\002$fact\002\" to $tellnick by $nick ($idx)"close $databasereturn 0}}close $databaseputnotc $nick "I don't have the keyword \002$fact\002 in my database."if {[matchattr $handle [string trim $faq(glob_flag)]|[string trim $faq(chan_flag)] $channel]} {putnotc $nick "You could add \002$fact\002 by using [string trim $faq(cmdchar)]addword \002$fact\002[string trim $faq(splitchar)]Definition goes here."} else {putnotc $nick "If you're looking for a TCL-Script try http://www.egghelp.org/cgi-bin/tcl_archive.tcl?strings=$fact"}return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11348">xmods</a> — Sat Jan 15, 2011 12:02 am</p><hr />
]]></content>
	</entry>
	</feed>
