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

	<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>2007-02-09T17:49:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Corne]]></name></author>
		<updated>2007-02-09T17:49:34-04:00</updated>

		<published>2007-02-09T17:49:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70339#p70339</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70339#p70339"/>
		<title type="html"><![CDATA[if command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70339#p70339"><![CDATA[
But how do I execute it in tclsh ? can you give me an example ? (now I'm looking on that website and searching for the commands useful for this script)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8688">Corne</a> — Fri Feb 09, 2007 5:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-02-09T17:26:08-04:00</updated>

		<published>2007-02-09T17:26:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70338#p70338</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70338#p70338"/>
		<title type="html"><![CDATA[if command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70338#p70338"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind notc - "*Highest connection count*" msgloginproc msglogin {   if {[isop me #channel]} {  putserv "PRIVMSG X  :deop #channel" }}</code></pre></div>and when I do a sreload I get this<br>[15:44:23] &lt;-psyBNC&gt; Fri Feb  9 22:47:48 :Bogus scripting Line in scripts/USER1.SCRIPT Line 1, 2 and 3</div></blockquote>1) 'bind', 'isop' and 'putserv' are not native tcl commands.<br>2) 'proc' expects 3 arguments<br>3) you don't seem to be executing the script via tclsh (psybnc doesn't know tcl)<br><br>Take a look at <a href="http://tcl.tk/man/tcl8.4/TclCmd/contents.htm" class="postlink">http://tcl.tk/man/tcl8.4/TclCmd/contents.htm</a> for commands that will be avaliable in your script executed in tclsh (which is what you'll need to do if you want it to work with psybnc)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Feb 09, 2007 5:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Corne]]></name></author>
		<updated>2007-02-09T16:51:52-04:00</updated>

		<published>2007-02-09T16:51:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70336#p70336</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70336#p70336"/>
		<title type="html"><![CDATA[if command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70336#p70336"><![CDATA[
I just look over the text but didnt really read everything (i was at school). I remember seeing a php script used for psybnc (trying to avoid an server error or something. So I just add the tcl script in the USERnumber.SCRIPT file and sreload ? anyways ... I dont know tcl scripting but I looked at some scripts here. Didnt get much though.  I need to do that op check on an notice event (server notice) and dont know how to start. I looked up to some scripts here and found something. Tried to simplify it and I got this: <div class="codebox"><p>Code: </p><pre><code>bind notc - "*Highest connection count*" msgloginproc msglogin {   if {[isop me #channel]} {  putserv "PRIVMSG X  :deop #channel" }}</code></pre></div>and when I do a sreload I get this<br>[15:44:23] &lt;-psyBNC&gt; Fri Feb  9 22:47:48 :Bogus scripting Line in scripts/USER1.SCRIPT Line 1, 2 and 3<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8688">Corne</a> — Fri Feb 09, 2007 4:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-02-09T10:58:21-04:00</updated>

		<published>2007-02-09T10:58:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70319#p70319</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70319#p70319"/>
		<title type="html"><![CDATA[if command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70319#p70319"><![CDATA[
<blockquote class="uncited"><div>I understood how psybnc scripting works though</div></blockquote>No.<blockquote class="uncited"><div>A script can be anything, which can be handled by the shell. You also can<br>call PHP/Perl/tcl-Scripts from the script-Entry.</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Feb 09, 2007 10:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Corne]]></name></author>
		<updated>2007-02-09T10:13:03-04:00</updated>

		<published>2007-02-09T10:13:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70318#p70318</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70318#p70318"/>
		<title type="html"><![CDATA[if command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70318#p70318"><![CDATA[
I just red that help file but it doesnt say anything about choosing a programing language. I understood how psybnc scripting works though<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8688">Corne</a> — Fri Feb 09, 2007 10:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-02-09T08:52:37-04:00</updated>

		<published>2007-02-09T08:52:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70316#p70316</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70316#p70316"/>
		<title type="html"><![CDATA[if command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70316#p70316"><![CDATA[
There is no built in script engine in psybnc - it will execute shell commands/scripts/executables for you - which makes it less efficient (in average execution time), but more flexible.<br>Read <a href="http://www.psybnc.at/scripting.html" class="postlink">http://www.psybnc.at/scripting.html</a> to understand how psybnc scripting works, then pick a language and create a script that works how you want it to when executed by the bouncer.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Feb 09, 2007 8:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Corne]]></name></author>
		<updated>2007-02-09T08:40:22-04:00</updated>

		<published>2007-02-09T08:40:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70314#p70314</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70314#p70314"/>
		<title type="html"><![CDATA[if command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70314#p70314"><![CDATA[
I need it for my bouncer/psybnc. Now I understood your question about 'language', programing language'. I dont know if its the same with tcl (even though I doubt it).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8688">Corne</a> — Fri Feb 09, 2007 8:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-02-09T06:23:19-04:00</updated>

		<published>2007-02-09T06:23:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70309#p70309</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70309#p70309"/>
		<title type="html"><![CDATA[if command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70309#p70309"><![CDATA[
<blockquote class="uncited"><div>It's english...</div></blockquote>Nope! It's Tcl. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>'if' conditional statements are used in more than just Tcl.<br><div class="codebox"><p>Code: </p><pre><code>if {[isop $nick $chan]} { ... }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Fri Feb 09, 2007 6:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-02-09T05:16:20-04:00</updated>

		<published>2007-02-09T05:16:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70303#p70303</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70303#p70303"/>
		<title type="html"><![CDATA[if command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70303#p70303"><![CDATA[
<a href="http://www.tcl.tk/man/tcl8.4/TclCmd/if.htm" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/if.htm</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Fri Feb 09, 2007 5:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Corne]]></name></author>
		<updated>2007-02-08T23:21:07-04:00</updated>

		<published>2007-02-08T23:21:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70299#p70299</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70299#p70299"/>
		<title type="html"><![CDATA[if command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70299#p70299"><![CDATA[
what do you mean ? I just need the syntax for a bouncer/psybnc. I'm trying to make a script and I need to add a check if a specified nickname is op on a specified channel.... like in mirc scripting if ($nick isop #channel). It's english...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8688">Corne</a> — Thu Feb 08, 2007 11:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-02-08T22:43:48-04:00</updated>

		<published>2007-02-08T22:43:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70298#p70298</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70298#p70298"/>
		<title type="html"><![CDATA[Re: if command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70298#p70298"><![CDATA[
<blockquote class="uncited"><div>I looked up to lots of forums to find the syntax of the 'if' conditiona.</div></blockquote>in what language?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Feb 08, 2007 10:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Corne]]></name></author>
		<updated>2007-02-08T21:27:38-04:00</updated>

		<published>2007-02-08T21:27:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70297#p70297</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70297#p70297"/>
		<title type="html"><![CDATA[if command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70297#p70297"><![CDATA[
I looked up to lots of forums to find the syntax of the 'if' conditiona. I wanna check if a nickname is op on a channel. would it be something like if (nick isop #channel) do whatever ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8688">Corne</a> — Thu Feb 08, 2007 9:27 pm</p><hr />
]]></content>
	</entry>
	</feed>
