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

	<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-03-16T17:48:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2005-03-16T17:48:41-04:00</updated>

		<published>2005-03-16T17:48:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47771#p47771</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47771#p47771"/>
		<title type="html"><![CDATA[Forward.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47771#p47771"><![CDATA[
problem solved !!! <br><br>i followed caesar modifications and it worked juste fine !!!<br><br>thanks to awyeah ,caesar and De Kus for the help it was a bit fastidious for a little useless but asked script thanks a lot !<br><br>*i`m so happy i even smile at my stepmother*<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Wed Mar 16, 2005 5:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2005-03-16T17:39:35-04:00</updated>

		<published>2005-03-16T17:39:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47769#p47769</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47769#p47769"/>
		<title type="html"><![CDATA[Forward.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47769#p47769"><![CDATA[
i try the last version with the corrections by awyeah and it still doesnt read the $line when it is somebody unknown to the bot who /msg botnick (msg)<br><br>i`m a bit lost now<br><br>(edit) it display the same thing if it is a user known to the bot or an unknown user : on me parle en PV, mais chut c un secret <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>maybe adding another "if" for user unknown  i dont know what to do<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Wed Mar 16, 2005 5:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-03-16T16:15:55-04:00</updated>

		<published>2005-03-16T16:15:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47768#p47768</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47768#p47768"/>
		<title type="html"><![CDATA[Forward.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47768#p47768"><![CDATA[
What is the role of a 'string trim' in this case? Or you just copy/paste it's code? Second, what is with 'if {![validuser [lindex [split $arg] 0]]}  {' ? make it 'if {[validuser $hand]} {' and 'return' not at the end of the proc, because msgm bind is stackable ('bind multiple commands to the same trigger') where yours is "*".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Mar 16, 2005 4:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-16T15:51:25-04:00</updated>

		<published>2005-03-16T15:51:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47767#p47767</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47767#p47767"/>
		<title type="html"><![CDATA[Forward.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47767#p47767"><![CDATA[
Try this:<br><div class="codebox"><p>Code: </p><pre><code>bind msgm - "*" proc:lainaset chan "#trois-mousquetaires"proc proc:laina {nick uhost hand arg} { global chan set line [string trim $arg] if {![validuser [lindex [split $arg] 0]]}  {   puthelp "privmsg $chan :on me parle en PV, mais chut c un secret :)"  } else {   puthelp "PRIVMSG $chan :$nick m`as dit en priver: '$line'"   } return 0}</code></pre></div>The,<br><div class="codebox"><p>Code: </p><pre><code>}else {</code></pre></div>should be<div class="codebox"><p>Code: </p><pre><code>} else {</code></pre></div>If you put else in a new line, the tcl interpreter thinks it is a new if-else statement, in which case it is non-existant for this else.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Mar 16, 2005 3:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-16T15:47:26-04:00</updated>

		<published>2005-03-16T15:47:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47766#p47766</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47766#p47766"/>
		<title type="html"><![CDATA[Forward.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47766#p47766"><![CDATA[
Yes that is also a good idea using validuser to check if the hostmask in the first list index of the output text matches any user on the bots file. Meaning checking if a user is identifying himself.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Mar 16, 2005 3:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2005-03-16T12:59:40-04:00</updated>

		<published>2005-03-16T12:59:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47755#p47755</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47755#p47755"/>
		<title type="html"><![CDATA[Forward.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47755#p47755"><![CDATA[
i`ve think of something , can i do something like <br><div class="codebox"><p>Code: </p><pre><code>bind msgm - "*" proc:lainaset chan "#trois-mousquetaires"proc proc:laina {nick uhost hand arg} {global chanset line [string trim $arg]if {![validuser [lindex [split $arg] 0]]}  {puthelp "privmsg $chan : on me parle en PV , mais chut c un secret:)"return 0}else {puthelp "PRIVMSG $chan :$nick m`as dit en priver: '$line'"return 0}}</code></pre></div>so if it is some body known to the bot who msg it it will reply :puthelp "privmsg $chan : on me parle en PV , mais chut c un secret:)" but without saying the $line<br><br>then if it is somebody unknown to the bot it will reply the $line <br><br>but my code doesnt seems to work for people unknown to the bot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Wed Mar 16, 2005 12:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-16T04:22:03-04:00</updated>

		<published>2005-03-16T04:22:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47740#p47740</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47740#p47740"/>
		<title type="html"><![CDATA[Forward.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47740#p47740"><![CDATA[
my suggestion would be to create a list of commands not to displays, like "op pass id die rehash restart voice halfop ident host" continue how much you like.<br>then check via something like<div class="codebox"><p>Code: </p><pre><code>set ignore 0foreach exclude $excludelist {  if { [string match -nocase ${exclude}* $line] } {    set ignore 1    break  }}if { $ignore == 0 } {  ... (send $line)}</code></pre></div>addionally you could check the string against his password, but you'd need to check it against each element of the line as list (foreach element [<strong class="text-strong">split</strong> $line]).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Mar 16, 2005 4:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-16T04:00:26-04:00</updated>

		<published>2005-03-16T04:00:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47736#p47736</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47736#p47736"/>
		<title type="html"><![CDATA[Forward.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47736#p47736"><![CDATA[
There are 2 lines.<br><br>puthelp "PRIVMSG $chan :$nick on private: '$line'"<br><br>Basically, all the text typed after the trigger, or if it is "*" everything typed will be displayed in $line.<br><div class="codebox"><p>Code: </p><pre><code>if {$nick == "SeenServ"} {      puthelp "privmsg $chan :SeenServ returned: $line"      return 0      }puthelp "PRIVMSG $chan :$nick on private: '$line'"}</code></pre></div>This code basically does the same thing, if nick is SeenServ, do the samething, display $line to same chan, and if it is not, also do the samething and display $line with $nick who triggered the bind.<br><br>Basically this script will just message the chan $chan if someone privmsg's the bot. If the nick is SeenServ it will display a different text but with the same argument $line.<br><br>Since you have binded "*" it will trigger on any character said to it which can also be when users try to identify the bot via privmsg. Either change the interaction from prvimsg to notice, or use a trigger of somekind as "*" will trigger anything said to the bot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Mar 16, 2005 4:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2005-03-16T02:43:59-04:00</updated>

		<published>2005-03-16T02:43:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47735#p47735</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47735#p47735"/>
		<title type="html"><![CDATA[Forward.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47735#p47735"><![CDATA[
i did remove the line and it still display the password when somebody do /msg botnick id password<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Wed Mar 16, 2005 2:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-16T01:41:22-04:00</updated>

		<published>2005-03-16T01:41:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47734#p47734</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47734#p47734"/>
		<title type="html"><![CDATA[Forward.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47734#p47734"><![CDATA[
This line displays the password:<br><div class="codebox"><p>Code: </p><pre><code>      puthelp "privmsg $chan :SeenServ returned: $line"</code></pre></div>You can either remove it or comment it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Mar 16, 2005 1:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2005-03-16T00:35:58-04:00</updated>

		<published>2005-03-16T00:35:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47733#p47733</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47733#p47733"/>
		<title type="html"><![CDATA[Forward.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47733#p47733"><![CDATA[
HI <br><br>i`ve install forward.tcl and it works fine , too fine lol the thing that happen is when people log themselves with /msg botnick id password the bot relay that info on the channel exposing the user password to the public <br><br>is there a way to prevent that without compromising the use of the tcl ?<br><br>thanks<br><br>here`s the code <div class="codebox"><p>Code: </p><pre><code>#This is tcl to forwaring msgs on private to channel. It's simple and so funny :&gt;#skript za printirane na msg-tata na privat v izbran kanal :&gt; da se posmeem ##                              r0gUe gad@c4.com##blagodarnosti na Himika :&gt; Thanks himik :P   bind msgm - "*" proc:laina#seting the channel to forward | Setvame si kanala za forward na replikite i ... da se posmeem set chan "#tequila-sunrise"proc proc:laina {nick uhost hand arg} {global chanset line [string trim $arg]if {$nick == "SeenServ"} {puthelp "privmsg $chan :SeenServ returned: $line"return 0}puthelp "PRIVMSG $chan :$nick on private: '$line'"}return 0putlog "Forward loaded" </code></pre></div>thanks for any advice and or fixes <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=2723">Pitchat</a> — Wed Mar 16, 2005 12:35 am</p><hr />
]]></content>
	</entry>
	</feed>
