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

	<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>2003-04-30T19:54:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-04-30T19:54:05-04:00</updated>

		<published>2003-04-30T19:54:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19682#p19682</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19682#p19682"/>
		<title type="html"><![CDATA[Switch command problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19682#p19682"><![CDATA[
I thank you for the suggestion, the code does work and I found out why.<br><br>at the end of the dccsend line i stupid forgot to add this {<br><br>/me shoots self in head for not seeing this<br><br><br>thanks =D<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Wed Apr 30, 2003 7:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-04-29T04:30:41-04:00</updated>

		<published>2003-04-29T04:30:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19604#p19604</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19604#p19604"/>
		<title type="html"><![CDATA[Switch command problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19604#p19604"><![CDATA[
Try issuing a dccsend, and storing the return value in a variable.<br><br>Use the variable to dot he switch on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Apr 29, 2003 4:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-04-29T02:04:41-04:00</updated>

		<published>2003-04-29T02:04:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19594#p19594</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19594#p19594"/>
		<title type="html"><![CDATA[Switch command problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19594#p19594"><![CDATA[
I seem to be haveing trouble on this switch command, I'm not real good at them, so i thought maybe someone could point out my mistake.<br><br>This script is just setup to send a file on a trigger but this is the error form the bot<br>Tcl error [dbzxsf:!tcl]: wrong # args: should be "switch ?switches? string pattern body ... ?default body?"<br><br>now here's the code<br>#set commands<br>set dbzx_sf(!tcl) doc/tcl-commands.doc<br>#Routines<br>#This Sends helpful files<br>foreach buffer [array names dbzx_sf] {<br>        set buffer2 [string tolower $buffer]<br>        set dbzx_sf($buffer2) $dbzx_sf($buffer)<br>        set buffer $buffer2<br>        bind pubm - "% $buffer" dbzxsf:$buffer<br>        proc dbzxsf:$buffer {nick uhost hand chan args} {<br>                global dbzx_sf<br>                switch -- [dccsend $dbzx_sf([set trigger [string tolower [lindex [lindex $args 0] 0]]]) $nick]<br>                0 {putnot $nick ":Sending $trigger's info to you."}<br>                1 {putnot $nick ":dcc table is full (too many connections)."}<br>                2 {putnot $nick ":can't open a socket for the transfer."}<br>                3 {putnot $nick ":file doesn't exsist."}<br>                4 {putnot $nick ":$trigger's info was queued for last transfer."}<br>        }<br>}<br><br>I'm uesing the tcl comamnds.doc file for testing i get an error saying the switch is [censored] up ( bascily ) but when i change it from Switch -- to Switch --- it sends the file, but i get this error<br>Tcl error [dbzxsf:!tcl]: bad option "---": must be -exact, -glob, -regexp, or --<br><br>any suggestions on where i messed up ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Tue Apr 29, 2003 2:04 am</p><hr />
]]></content>
	</entry>
	</feed>
