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

	<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>2005-07-05T18:23:47-04:00</updated>

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

		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-07-05T18:23:47-04:00</updated>

		<published>2005-07-05T18:23:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51826#p51826</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51826#p51826"/>
		<title type="html"><![CDATA[a little statistics problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51826#p51826"><![CDATA[
keke?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Tue Jul 05, 2005 6:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Schlaefer]]></name></author>
		<updated>2005-07-05T16:32:25-04:00</updated>

		<published>2005-07-05T16:32:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51820#p51820</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51820#p51820"/>
		<title type="html"><![CDATA[a little statistics problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51820#p51820"><![CDATA[
... $cmd1 == "[string match "#*" $cmd1] ...<br><br>hier ist der fehler<br><br>in der var "$cmd1" steht denk ich mal "#channel" und "[string match "#*" $cmd1]" steht dann entweder "1" oder "0".<br><br>1 - für ja da ist eine # in der var<br>0 - für nein da ist keine # in der fahr<br><br>"$cmd1 == "[string match "#*" $cmd1]" verglicht die beiden sachen-<br><br>ist "#channel" = "1"/ "0" dann mache ... } else {<br> oder das }<br><br>} elseif {[string match "#*" $cmd1] " &amp;&amp; $cmd2 == "" } {<br>währe dann richtig weil er sagt "ist eine # in der variable dann mache ...."<br><br>ich hoffe ich konnte dir es ein bischen erklähren<br><br>Cu Schlaefer<br><br>PS: ich wei das s0nny deutscher is deswegen in deutsch <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6441">Schlaefer</a> — Tue Jul 05, 2005 4:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[S0nnY]]></name></author>
		<updated>2005-07-05T15:08:40-04:00</updated>

		<published>2005-07-05T15:08:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51818#p51818</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51818#p51818"/>
		<title type="html"><![CDATA[a little statistics problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51818#p51818"><![CDATA[
hi i have written an script but now i have a little problem <br><div class="codebox"><p>Code: </p><pre><code>bind pub - "!mofa" mofaprocproc mofaproc {nick host hand chan arg} {  set cmd [split $arg]  set cmd0 [lindex $cmd 0]  set cmd1 [lindex $cmd 1]  set cmd2 [lindex $cmd 2]    if {$cmd0 == "stats"} {      if { $cmd1 == "" } {         putserv "NOTICE $nick :statsglobal notice"       } elseif { $cmd1 == "+c" } {          putserv "PRIVMSG $chan :statsglobal privmsg"       } elseif { $cmd1 == "[string match "#*" $cmd1]" &amp;&amp; $cmd2 == "+c" } {         putserv "PRIVMSG $chan :chanstats privmsg "       } elseif { $cmd1 == "[string match "#*" $cmd1] " &amp;&amp; $cmd2 == "" } {         putserv "NOTICE $nick :chanstats notice"       } elseif { $cmd1 != "[string match "#*" $cmd1]" &amp;&amp; $cmd2 == "+c" } {         putserv "PRIVMSG $chan :nickstats privmsg"       } elseif { $cmd1 != "[string match "#*" $cmd1]" &amp;&amp; $cmd2 == "" } {         puterv "NOTICE $nick :nickstats notice"       } else {         putserv "PRIVMSG $chan :just type a typ"     }  }}</code></pre></div>when i type noting or the nick everything works but when i type the channel (including # as first sign) he will give me the nickstats.<br>my script is only a little example because my script is to big to post it all but the if clauses are the same.<br>thx 4 help <br>S0nnY<br><br><br>whet i give him<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5425">S0nnY</a> — Tue Jul 05, 2005 3:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
