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

	<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>2006-12-27T10:50:01-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-12-27T10:50:01-04:00</updated>

		<published>2006-12-27T10:50:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69279#p69279</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69279#p69279"/>
		<title type="html"><![CDATA[no services tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69279#p69279"><![CDATA[
That error has nothing to do with the [sendnote] command; You're probably using the idx after booting the user which makes the idx not valid anymore.<br><br>Show us complete errorInfo.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Dec 27, 2006 10:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-12-27T06:01:56-04:00</updated>

		<published>2006-12-27T06:01:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69273#p69273</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69273#p69273"/>
		<title type="html"><![CDATA[no services tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69273#p69273"><![CDATA[
From tcl-commands.doc:<blockquote class="uncited"><div>  sendnote &lt;from&gt; &lt;to[@bot]&gt; &lt;message&gt;<br>    Description: simulates what happens when one user sends a note to another<br>    Returns:<br>      0 - the send failed<br>      1 - the note was delivered locally or sent to another bot<br>      2 - the note was stored locally<br>      3 - the user's notebox is too full to store a note<br>      4 - a Tcl binding caught the note<br>      5 - the note was stored because the user is away<br>    Module: core</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed Dec 27, 2006 6:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MMDollar]]></name></author>
		<updated>2006-12-27T01:37:09-04:00</updated>

		<published>2006-12-27T01:37:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69271#p69271</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69271#p69271"/>
		<title type="html"><![CDATA[no services tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69271#p69271"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set services "1"unbind dcc o|o msg *dcc:msgbind dcc o|o msg csdostupbind dcc n putserv putsrvbind msg - ident identcheproc csdostup {hand idx arg} {global services       set tonick [string tolower [lindex $arg 0]]       set mschan [string tolower [lindex $arg 2]]       set text [lrange $arg 1 end]          if {[matchattr $hand n|n $mschan]} {             putlog "PRIVMSG from $hand to $tonick :$text"             putserv "PRIVMSG $tonick :$text "             putdcc $idx "msg to $tonick: $text"             return 0        }         if {[matchattr $hand m]} {          if {($tonick == "cs") || ($tonick== "ns") } {              putdcc $idx "$hand, trqbva da bydesh moj owner za da ima dostyp"              chattr $hand -afop+dk              setuser $hand comment "Opital se da prati syobshtenie na $tonick s text: $text"              putlog "$hand se opita da prati syobshtenie kym $tonick s text: $text"              boot $hand "Opitva se da prati syobshtenie na $tonick s text: $text"              putlog "$hand e mahnat ot bota"              newban $hand!*@* $::botnick "Opitva se da prati syobshtenie na $tonick s text: $text"              putlog "Dobawen e ban na $hand poradi ne spazvane na pravilata"              dcc_flagnote $botnick 666 "$idx +n pedal"               putlog "Izprashtat se notes do owners...."                                    } else {              putlog "PRIVMSG from $hand to $tonick :$text"              putserv "PRIVMSG $tonick :$text "              putdcc $idx "msg to $tonick: $text"         }         return 0         }         putdcc $idx "$hand, trqbva da bydesh moj owner ili master za da imash dostyp"         chattr $hand -afop+dk         setuser $hand comment "Opital se da prati syobshtenie na $tonick s text: $text"         putlog "$hand se opita da prati syobshtenie kym $tonick s text: $text"         boot $hand "Opitva se da prati syobshtenie na $tonick s text: $text"         putlog "$hand e mahnat ot bota"         newban $hand!*@* $::botnick "Opitva se da prati syobshtenie na $tonick s text: $text"         putlog "Dobawen e ban na $hand poradi ne spazvane na pravilata"         dcc_flagnote $::botnick 666 "$idx +n pedal"         putlog "Izprashtat se notes do owners...."                        }</code></pre></div>Ok now this tcl has to do this things:<br>Only master and owners can use .msg cs/ns &lt;text&gt;<br>If someone else do this they will be: there flags will be changed to +dk<br>they will be booted from the partyline and they will be banned and the bot have to send a note to all the owners<br>the only thing that don't works is the sendnote<br>here is the error that appears:<div class="codebox"><p>Code: </p><pre><code>Tcl error [csdostup]: invalid idx</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7449">MMDollar</a> — Wed Dec 27, 2006 1:37 am</p><hr />
]]></content>
	</entry>
	</feed>
