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

	<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>2012-12-22T03:48:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Diamond85]]></name></author>
		<updated>2012-12-22T03:47:19-04:00</updated>

		<published>2012-12-22T03:47:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100476#p100476</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100476#p100476"/>
		<title type="html"><![CDATA[[SOLVED] Need Help on: set arg ... switch -exact ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100476#p100476"><![CDATA[
SpiKe^^ thank you so much<br><br>now it works the way I wanted!!!<br><br>thank thank thank <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10289">Diamond85</a> — Sat Dec 22, 2012 3:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-12-21T23:54:20-04:00</updated>

		<published>2012-12-21T23:54:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100475#p100475</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100475#p100475"/>
		<title type="html"><![CDATA[[SOLVED] Need Help on: set arg ... switch -exact ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100475#p100475"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>                     if {[lindex $arg 1] == ""} {                         if {[T_T::M_A::ma_query "SELECT Count FROM $T_T::M_S::ms_table WHERE Nick = '[mysqlescape $nick]'"] == ""} {                            putnow "PRIVMSG $chan :you're not in my list"                         } else {                            T_T::M_A::ma_query "DELETE FROM `$T_T::M_S::ms_table` WHERE `Nick` = '[mysqlescape $nick]';"                            putnow "PRIVMSG $chan : I deleted you from the list"                         }                      } else {                         if {[T_T::M_A::ma_query "SELECT Count FROM $T_T::M_S::ms_table WHERE Nick = '[mysqlescape [lindex $arg 1]]'"] == ""} {                            putnow "PRIVMSG $chan :$nick $arg is not in my list"                         } else {                            T_T::M_A::ma_query "DELETE FROM `$T_T::M_S::ms_table` WHERE `Nick` = '[mysqlescape [lindex $arg 1]]';"                            putnow "PRIVMSG $chan :$nick I deleted $arg from the list"                         }                      }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Dec 21, 2012 11:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Diamond85]]></name></author>
		<updated>2012-12-21T22:54:48-04:00</updated>

		<published>2012-12-21T22:54:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100473#p100473</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100473#p100473"/>
		<title type="html"><![CDATA[[SOLVED] Need Help on: set arg ... switch -exact ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100473#p100473"><![CDATA[
<blockquote class="uncited"><div>Understood that the whole time.....<br><br>Your if statements are tied to your mysql database!<br><br>You are either using the wrong sql commands, or may be it's as easy as just typing the nick in the Exact same Case as it is in the sql database.<br><br>I'm betting it's just the search is Cese Sensitive, but as I said,  I know nothing about mysql or the tcl code needed to work it. I'm just basing that on the fact you can remove yourself when you don't have to type the nick, and it's provided to the script as $nick as one of the procs arguments:)<br><br>Either way, I'm Done With This String, GoodLuck.</div></blockquote>okay it's not because of mysql<br>I have tested it again properly!<br><br>how it works:<br><br>[Sat, 22/Dec/2012] (03:36:13)  (test) !test reg<br>[Sat, 22/Dec/2012] (03:36:13)  (@EggDrop) [Test_Tcl] okay<br>[Sat, 22/Dec/2012] (03:36:16)  (Diamond85) !test reg<br>[Sat, 22/Dec/2012] (03:36:17)  (@EggDrop) [Test_Tcl] okay<br>[Sat, 22/Dec/2012] (03:36:31)  (Diamond85) !del<br>[Sat, 22/Dec/2012] (03:36:31)  (@EggDrop) I deleted you from the list<br>[Sat, 22/Dec/2012] (03:36:33)  (Diamond85) !del<br>[Sat, 22/Dec/2012] (03:36:33)  (@EggDrop) you're not in my list<br>[Sat, 22/Dec/2012] (03:36:50)  (Diamond85) !del test<br>[Sat, 22/Dec/2012] (03:36:50)  (@EggDrop) Diamond85 I deleted test from the list<br>[Sat, 22/Dec/2012] (03:36:55)  (Diamond85) !del test<br>[Sat, 22/Dec/2012] (03:36:55)  (@EggDrop) Diamond85 test is not in my list<br>[Sat, 22/Dec/2012] (03:38:23)  (test) !del<br>[Sat, 22/Dec/2012] (03:38:23)  (@EggDrop) I deleted you from the list<br>[Sat, 22/Dec/2012] (03:38:54)  (test) !del<br>[Sat, 22/Dec/2012] (03:38:54)  (@EggDrop) you're not in my list<br><br>It is because:<div class="codebox"><p>Code: </p><pre><code> set arg [split $arg]switch -exact -- [lindex $arg 0] {default {</code></pre></div><div class="codebox"><p>Code: </p><pre><code>if {[channel get $chan $T_T::S_I::si_name]} {if {[matchattr $hand $T_T::G_S::gs_flags]} {if {$arg == ""} { </code></pre></div><div class="codebox"><p>Code: </p><pre><code>namespace eval S_A {    #############################################################################    #                               Start_Action                                #    #############################################################################proc sa_action {nick host hand chan arg} { set arg [split $arg]switch -exact -- [lindex $arg 0] {default {if {[matchattr $hand $T_T::G_S::gs_flags]} {if {![channel get $chan $T_T::S_I::si_name]} {putnow "PRIVMSG $chan :\003\[\00304$T_T::S_I::si_name\003\] \00314ist \00304Deaktiviert\003! \00314Benutze Bitte \003$T_T::G_S::gs_char\00309$T_T::G_S::gs_bind \003(\00307On\003)"}}if {[channel get $chan $T_T::S_I::si_name]} {if {[matchattr $hand $T_T::G_S::gs_flags]} {if {$arg == ""} { if {[T_T::M_A::ma_query "SELECT Count FROM $T_T::M_S::ms_table WHERE Nick = '[mysqlescape $nick]'"] == ""} { putnow "PRIVMSG $chan :you're not in my list" } else { T_T::M_A::ma_query "DELETE FROM `$T_T::M_S::ms_table` WHERE `Nick` = '[mysqlescape $nick]';"putnow "PRIVMSG $chan : I deleted you from the list"}} else { if {[T_T::M_A::ma_query "SELECT Count FROM $T_T::M_S::ms_table WHERE Nick = '[mysqlescape $arg]'"] == ""} { putnow "PRIVMSG $chan :$nick $arg is not in my list" } else { T_T::M_A::ma_query "DELETE FROM `$T_T::M_S::ms_table` WHERE `Nick` = '[mysqlescape $arg]';"putnow "PRIVMSG $chan :$nick I deleted $arg from the list"} } } else { if {[T_T::M_A::ma_query "SELECT Count FROM $T_T::M_S::ms_table WHERE Nick = '[mysqlescape $nick]'"] == ""} { putnow "PRIVMSG $chan :you're not in my list " } else { T_T::M_A::ma_query "DELETE FROM `$T_T::M_S::ms_table` WHERE `Nick` = '[mysqlescape $nick]';" putnow "PRIVMSG $chan : I deleted you from the list" }    }}}}}}</code></pre></div>it does not work.<br><br>[Sat, 22/Dec/2012] (03:40:23)  (Diamond85) !test reg<br>[Sat, 22/Dec/2012] (03:40:24)  (@EggDrop) [Test_Tcl] okay<br>[Sat, 22/Dec/2012] (03:40:28)  (test) !test reg<br>[Sat, 22/Dec/2012] (03:40:28)  (@EggDrop) [Test_Tcl] okay<br>[Sat, 22/Dec/2012] (03:40:33)  (Diamond85) !del<br>[Sat, 22/Dec/2012] (03:40:45)  (Diamond85) !del del<br>[Sat, 22/Dec/2012] (03:40:45)  (@EggDrop) Diamond85 del is not in my list<br>[Sat, 22/Dec/2012] (03:41:02)  (Diamond85) !del del test<br>[Sat, 22/Dec/2012] (03:41:02)  (@EggDrop) Diamond85 del test is not in my list<br><br>it does not work because:<div class="codebox"><p>Code: </p><pre><code> set arg [split $arg]switch -exact -- [lindex $arg 0] {"del" {</code></pre></div><div class="codebox"><p>Code: </p><pre><code>if {[channel get $chan $T_T::S_I::si_name]} {if {[matchattr $hand $T_T::G_S::gs_flags]} {if {$arg == ""} { </code></pre></div><div class="codebox"><p>Code: </p><pre><code>namespace eval S_A {    #############################################################################    #                               Start_Action                                #    #############################################################################proc sa_action {nick host hand chan arg} { set arg [split $arg]switch -exact -- [lindex $arg 0] {"del" {if {[matchattr $hand $T_T::G_S::gs_flags]} {if {![channel get $chan $T_T::S_I::si_name]} {putnow "PRIVMSG $chan :\003\[\00304$T_T::S_I::si_name\003\] \00314ist \00304Deaktiviert\003! \00314Benutze Bitte \003$T_T::G_S::gs_char\00309$T_T::G_S::gs_bind \003(\00307On\003)"}}if {[channel get $chan $T_T::S_I::si_name]} {if {[matchattr $hand $T_T::G_S::gs_flags]} {if {$arg == ""} { if {[T_T::M_A::ma_query "SELECT Count FROM $T_T::M_S::ms_table WHERE Nick = '[mysqlescape $nick]'"] == ""} { putnow "PRIVMSG $chan :you're not in my list" } else { T_T::M_A::ma_query "DELETE FROM `$T_T::M_S::ms_table` WHERE `Nick` = '[mysqlescape $nick]';"putnow "PRIVMSG $chan : I deleted you from the list"}} else { if {[T_T::M_A::ma_query "SELECT Count FROM $T_T::M_S::ms_table WHERE Nick = '[mysqlescape $arg]'"] == ""} { putnow "PRIVMSG $chan :$nick $arg is not in my list" } else { T_T::M_A::ma_query "DELETE FROM `$T_T::M_S::ms_table` WHERE `Nick` = '[mysqlescape $arg]';"putnow "PRIVMSG $chan :$nick I deleted $arg from the list"} } } else { if {[T_T::M_A::ma_query "SELECT Count FROM $T_T::M_S::ms_table WHERE Nick = '[mysqlescape $nick]'"] == ""} { putnow "PRIVMSG $chan :you're not in my list " } else { T_T::M_A::ma_query "DELETE FROM `$T_T::M_S::ms_table` WHERE `Nick` = '[mysqlescape $nick]';" putnow "PRIVMSG $chan : I deleted you from the list" }    }}}default {if {[matchattr $hand $T_T::G_S::gs_flags]} {if {![channel get $chan $T_T::S_I::si_name]} {putnow "PRIVMSG $chan :\003\[\00304$T_T::S_I::si_name\003\] \00314ist \00304Deaktiviert\003! \00314Benutze Bitte \003$T_T::G_S::gs_char\00309$T_T::G_S::gs_bind \003(\00307On\003)"}}}}}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10289">Diamond85</a> — Fri Dec 21, 2012 10:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Diamond85]]></name></author>
		<updated>2012-12-21T22:08:17-04:00</updated>

		<published>2012-12-21T22:08:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100472#p100472</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100472#p100472"/>
		<title type="html"><![CDATA[[SOLVED] Need Help on: set arg ... switch -exact ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100472#p100472"><![CDATA[
okay I'll try to find the error.<br><br>thank you anyway for your quick reply once and your help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10289">Diamond85</a> — Fri Dec 21, 2012 10:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-12-22T00:01:30-04:00</updated>

		<published>2012-12-21T22:02:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100471#p100471</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100471#p100471"/>
		<title type="html"><![CDATA[[SOLVED] Need Help on: set arg ... switch -exact ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100471#p100471"><![CDATA[
Understood that the whole time.....<br><br>Your if statements are tied to your mysql database!<br><br>You are either using the wrong sql commands, or may be it's as easy as just typing the nick in the Exact same Case as it is in the sql database.<br><br>I'm betting it's just the search is Cese Sensitive, but as I said,  I know nothing about mysql or the tcl code needed to work it. I'm just basing that on the fact you can remove yourself when you don't have to type the nick, and it's provided to the script as $nick as one of the procs arguments:)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Dec 21, 2012 10:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Diamond85]]></name></author>
		<updated>2012-12-21T21:52:10-04:00</updated>

		<published>2012-12-21T21:52:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100470#p100470</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100470#p100470"/>
		<title type="html"><![CDATA[[SOLVED] Need Help on: set arg ... switch -exact ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100470#p100470"><![CDATA[
perhaps you understand better now what I care about <a href="http://pastebin.com/9fW8zjdZ" class="postlink">here is the tcl</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10289">Diamond85</a> — Fri Dec 21, 2012 9:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Diamond85]]></name></author>
		<updated>2012-12-21T21:43:36-04:00</updated>

		<published>2012-12-21T21:43:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100469#p100469</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100469#p100469"/>
		<title type="html"><![CDATA[[SOLVED] Need Help on: set arg ... switch -exact ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100469#p100469"><![CDATA[
<blockquote class="uncited"><div>That has everything to do with mysql.  It's not being able to find the nick in the database, or atleast that my understanding of the question:)</div></blockquote>So for me it is a matter that the code is not quite right and I do not know how to be.<br>it should be so:<br>(bot owner)! del to delete me.<br>else you're not in my list<br>(bot owner)! del &lt;nick&gt; to delete arg<br>else arg is not in my list.<br>(user)! del to delete user.<br>else user you are not in my list<br><br>for example: <br>I am the bot owner<br><br>Diamond85: !del<br>EggDrop: I deleted you from the list<div class="codebox"><p>Code: </p><pre><code>   namespace eval S_A {       proc sa_action {nick host hand chan arg} {          set arg [split $arg]          switch -exact -- [lindex $arg 0] {             "del" {                if {[channel get $chan $S_M::S_I::si_name]} {                   if {[matchattr $hand $S_M::G_S::gs_flags]} {                      if {$arg == ""} {                         S_M::M_A::ma_query "DELETE FROM `$S_M::M_S::ms_table` WHERE `Nick` = '[mysqlescape $nick]';"                         putnow "PRIVMSG $chan : I deleted you from the list" </code></pre></div>Diamond85: !del<br>EggDrop: you're not in my list<div class="codebox"><p>Code: </p><pre><code>                  } else {                      if {[S_M::M_A::ma_query "SELECT Points FROM $S_M::M_S::ms_table WHERE Nick = '[mysqlescape $nik]'"] == ""} {                         putnow "PRIVMSG $chan :you're not in my list" </code></pre></div>Diamond85: !del test<br>EggDrop: I deleted test from the list<div class="codebox"><p>Code: </p><pre><code>                        } else {                            S_M::M_A::ma_query "DELETE FROM `$S_M::M_S::ms_table` WHERE `Nick` = '[mysqlescape $arg]';"                            putnow "PRIVMSG $chan :I deleted test from the list"                         }                      } </code></pre></div>Diamond85: !del test<br>EggDrop: test is not in my list<div class="codebox"><p>Code: </p><pre><code>                     } else {                         if {[S_M::M_A::ma_query "SELECT Points FROM $S_M::M_S::ms_table WHERE Nick = '[mysqlescape $arg]'"] == ""} {                            putnow "PRIVMSG $chan :test is not in my list" </code></pre></div>Test: !del<br>EggDrop: I deleted you from the list<div class="codebox"><p>Code: </p><pre><code>                     } else {                         S_M::M_A::ma_query "DELETE FROM `$S_M::M_S::ms_table` WHERE `Nick` = '[mysqlescape $nick]';"                         putnow "PRIVMSG $chan :I deleted you from the list"                      }                      }                }             } </code></pre></div>Test: !del<br>EggDrop: you're not in my list<div class="codebox"><p>Code: </p><pre><code>                  } else {                      if {[S_M::M_A::ma_query "SELECT Points FROM $S_M::M_S::ms_table WHERE Nick = '[mysqlescape $nik]'"] == ""} {                         putnow "PRIVMSG $chan :you're not in my list" </code></pre></div><br>Do you understand now what I mean?<br><br>mysql works perfectly. Only I know the sequence is not exactly from top to bottom so. bot owner. then check. then command. check again. then delete. check again. etc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10289">Diamond85</a> — Fri Dec 21, 2012 9:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-12-21T21:18:47-04:00</updated>

		<published>2012-12-21T21:18:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100468#p100468</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100468#p100468"/>
		<title type="html"><![CDATA[[SOLVED] Need Help on: set arg ... switch -exact ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100468#p100468"><![CDATA[
That has everything to do with mysql.  It's not being able to find the nick in the database, or atleast that my understanding of the question:)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Dec 21, 2012 9:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Diamond85]]></name></author>
		<updated>2012-12-21T21:14:43-04:00</updated>

		<published>2012-12-21T21:14:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100467#p100467</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100467#p100467"/>
		<title type="html"><![CDATA[[SOLVED] Need Help on: set arg ... switch -exact ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100467#p100467"><![CDATA[
<blockquote class="uncited"><div>Sorry, I know nothing about mysql or the tcl code needed to work it.</div></blockquote>My problem has nothing to do with mysql.<br><br>my problem is the part removed.<br><br>if i write del he clears me. this is correct.<br>if i del nick writing he always says I'm not in its list. and he shall remove the nick.<br><br><br>my problem is the:<div class="codebox"><p>Code: </p><pre><code>         set arg [split $arg]          switch -exact -- [lindex $arg 0] {</code></pre></div>and:<div class="codebox"><p>Code: </p><pre><code>"del" { if {$arg == ""} { ....</code></pre></div>"Del" is indeed a "$ arg"<br>I guess that's why he my "! del &lt;nick&gt;" rather than "$ arg" recognizes<br><br>I'm sorry for my bad english<br><div class="codebox"><p>Code: </p><pre><code>   namespace eval S_A {       proc sa_action {nick host hand chan arg} {          set arg [split $arg]          switch -exact -- [lindex $arg 0] {            "del" {                if {[channel get $chan $S_M::S_I::si_name]} {                   if {[matchattr $hand $S_M::G_S::gs_flags]} {                      if {$arg == ""} {                         S_M::M_A::ma_query "DELETE FROM `$S_M::M_S::ms_table` WHERE `Nick` = '[mysqlescape $nick]';"                         putnow "PRIVMSG $chan :\00309$nick\003. \00314Du wurdest aus meiner datenbank \00304gelöscht\003."                      } else {                         if {[S_M::M_A::ma_query "SELECT Points FROM $S_M::M_S::ms_table WHERE Nick = '[mysqlescape $arg]'"] == ""} {                            putnow "PRIVMSG $chan :\00309$nick\003. \00314$arg \00304existierst nicht \00314in meiner Datenbank\003."                         } else {                            S_M::M_A::ma_query "DELETE FROM `$S_M::M_S::ms_table` WHERE `Nick` = '[mysqlescape $arg]';"                            putnow "PRIVMSG $chan :\00309$nick\003. \00314$arg wurde aus meiner datenbank \00304gelöscht\003."                         }                      }                   } else {                      if {[S_M::M_A::ma_query "SELECT Points FROM $S_M::M_S::ms_table WHERE Nick = '[mysqlescape $nik]'"] == ""} {                         putnow "PRIVMSG $chan :\00309$nick\003. \00314Du \00304existierst nicht \00314in meiner Datenbank\003."                      } else {                         S_M::M_A::ma_query "DELETE FROM `$S_M::M_S::ms_table` WHERE `Nick` = '[mysqlescape $nick]';"                         putnow "PRIVMSG $chan :\00309$nick\003. \00314Du wurdest aus meiner datenbank \00304gelöscht\003."                      }                      }                }             }             default {......................</code></pre></div>[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10289">Diamond85</a> — Fri Dec 21, 2012 9:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Diamond85]]></name></author>
		<updated>2012-12-21T12:28:42-04:00</updated>

		<published>2012-12-21T12:28:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100457#p100457</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100457#p100457"/>
		<title type="html"><![CDATA[[SOLVED] Need Help on: set arg ... switch -exact ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100457#p100457"><![CDATA[
nobody has an idea how I get to run it? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10289">Diamond85</a> — Fri Dec 21, 2012 12:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Diamond85]]></name></author>
		<updated>2012-12-22T03:48:11-04:00</updated>

		<published>2012-12-19T14:41:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100452#p100452</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100452#p100452"/>
		<title type="html"><![CDATA[[SOLVED] Need Help on: set arg ... switch -exact ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100452#p100452"><![CDATA[
Need Help with <div class="codebox"><p>Code: </p><pre><code>set arg [split $arg]switch -exact -- [lindex $arg 0]</code></pre></div>and the "del" code but !sm del works fine but the !sm del &lt;nick&gt; dont work the bot tell me only you no in my list ... the text in the tcl is in german.<br><br>any a idee for me?<br><br>sorry for my bad english :(<br><div class="codebox"><p>Code: </p><pre><code>namespace eval S_A {proc sa_action {nick host hand chan arg} {set arg [split $arg]switch -exact -- [lindex $arg 0] {"del" {if {[channel get $chan $S_M::S_I::si_name]} {if {[matchattr $hand $S_M::G_S::gs_flags]} {if {$arg == ""} {S_M::M_A::ma_query "DELETE FROM `$S_M::M_S::ms_table` WHERE `Nick` = '[mysqlescape $nick]';"putnow "PRIVMSG $chan :\00309$nick\003. \00314Du wurdest aus meiner datenbank \00304gelöscht\003."} else {if {[S_M::M_A::ma_query "SELECT Points FROM $S_M::M_S::ms_table WHERE Nick = '[mysqlescape $arg]'"] == ""} {putnow "PRIVMSG $chan :\00309$nick\003. \00314$arg \00304existierst nicht \00314in meiner Datenbank\003."} else {S_M::M_A::ma_query "DELETE FROM `$S_M::M_S::ms_table` WHERE `Nick` = '[mysqlescape $arg]';"putnow "PRIVMSG $chan :\00309$nick\003. \00314$arg wurde aus meiner datenbank \00304gelöscht\003."}}} else {if {[S_M::M_A::ma_query "SELECT Points FROM $S_M::M_S::ms_table WHERE Nick = '[mysqlescape $nik]'"] == ""} {putnow "PRIVMSG $chan :\00309$nick\003. \00314Du \00304existierst nicht \00314in meiner Datenbank\003."} else {S_M::M_A::ma_query "DELETE FROM `$S_M::M_S::ms_table` WHERE `Nick` = '[mysqlescape $nick]';"putnow "PRIVMSG $chan :\00309$nick\003. \00314Du wurdest aus meiner datenbank \00304gelöscht\003."}}}}default {......................</code></pre></div><br>edit: so by default wen i use $arg works now fine......<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10289">Diamond85</a> — Wed Dec 19, 2012 2:41 pm</p><hr />
]]></content>
	</entry>
	</feed>
