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

	<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>2017-05-29T11:46:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2017-05-29T11:45:43-04:00</updated>

		<published>2017-05-29T11:45:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106297#p106297</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106297#p106297"/>
		<title type="html"><![CDATA[Welcome TCL for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106297#p106297"><![CDATA[
Heh. Lil typo. Thanks simo. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon May 29, 2017 11:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2017-05-29T10:39:37-04:00</updated>

		<published>2017-05-29T10:39:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106295#p106295</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106295#p106295"/>
		<title type="html"><![CDATA[Welcome TCL for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106295#p106295"><![CDATA[
the : namepsace eval welcome { <br><br><br>should probably be :<br><br>namespace eval welcome {<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 29, 2017 10:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2017-05-29T11:46:11-04:00</updated>

		<published>2017-05-29T02:07:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106293#p106293</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106293#p106293"/>
		<title type="html"><![CDATA[Welcome TCL for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106293#p106293"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>namespace eval welcome {set setup(help) "#helpchannel"set setup(op) "#opchannel"bind join - * [namespace current]::joinedproc joined {nick uhost handle chan} {global setupif {[isbotnick $nick]} returnif {![string equal -nocase $chan $setup(help)]} returnutimer 3 [list [namespace current]::welcome $chan $nick]}proc welcome {chan nick} {global setupif {[isop $nick $chan]} returnputhelp "PRIVMSG $setup(op) :$nick wait in $setup(help)"puthelp "PRIVMSG $nick :Please wait you will be get help soon."}}</code></pre></div>Haven't tested.<br><br>Edit: Corrected lil typo.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon May 29, 2017 2:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2017-05-28T15:57:29-04:00</updated>

		<published>2017-05-28T15:57:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106292#p106292</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106292#p106292"/>
		<title type="html"><![CDATA[Welcome TCL for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106292#p106292"><![CDATA[
<blockquote class="uncited"><div>yes sir you are right it works but it notification other channels too. i want notification just for help channel. Bot is in another channels and i do not want to notification from another channels. and when i tried for other channels .chanset #channel -join it keep notification to op channel too</div></blockquote><br>See this line:<div class="codebox"><p>Code: </p><pre><code>bind join -|- * new_join </code></pre></div>Then see this for reference: <br><a href="http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html" class="postlink">http://www.eggheads.org/support/egghtml ... mands.html</a><br>and text search it to find :   bind join<br><br>Part of what can be learned there is:<blockquote class="uncited"><div>The mask in the bind is matched against "#channel nick!user@host" and can contain wildcards.</div></blockquote>So if you want to limit this to just one channel, you could edit that bind line so that it only triggers on one channel.   However, using .chanset with the User defined channel flag should do it too.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun May 28, 2017 3:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[alphax]]></name></author>
		<updated>2017-05-28T15:43:51-04:00</updated>

		<published>2017-05-28T15:43:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106291#p106291</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106291#p106291"/>
		<title type="html"><![CDATA[Welcome TCL for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106291#p106291"><![CDATA[
yes sir you are right it works but it notification other channels too. i want notification just for help channel. Bot is in another channels and i do not want to notification from another channels. and when i tried for other channels .chanset #channel -join it keep notification to op channel too<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12696">alphax</a> — Sun May 28, 2017 3:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2017-05-28T14:13:18-04:00</updated>

		<published>2017-05-28T14:13:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106290#p106290</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106290#p106290"/>
		<title type="html"><![CDATA[Welcome TCL for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106290#p106290"><![CDATA[
<blockquote class="uncited"><div><br>...<br>I look with .chaninfo command  it is -join but it still give notification.<br><br>...</div></blockquote>See this line:<div class="codebox"><p>Code: </p><pre><code>if {![channel get $chan join] &amp;&amp; ![botisop $chan]} {return 0} </code></pre></div>and experiment with and without the !  for botisop  command.<br>I don't know which way you really want it.<br><br>I tested it, and it works for me.<br>I hope this helps.<br><br><br>Edit:<br>This line:<div class="codebox"><p>Code: </p><pre><code> putserv "PRIVMSG @$receiver :WARNING: $nick waits for help." </code></pre></div>has an @ in it.   I did remove that when I tested.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun May 28, 2017 2:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[alphax]]></name></author>
		<updated>2017-05-28T13:54:03-04:00</updated>

		<published>2017-05-28T13:54:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106289#p106289</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106289#p106289"/>
		<title type="html"><![CDATA[Welcome TCL for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106289#p106289"><![CDATA[
Thank you for your reply. I tried what you said to me. But it does not work.<br><br>I look with .chaninfo command  it is -join but it still give notification. i changed several times for be sure. it is the same <br><br>.chanset #channel -join does not work. <br><br>&lt;X-Bot&gt;      -noidle -antividle -antididle -join<br><br>I ask your help one more time <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=12696">alphax</a> — Sun May 28, 2017 1:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2017-05-28T13:20:16-04:00</updated>

		<published>2017-05-28T13:20:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106287#p106287</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106287#p106287"/>
		<title type="html"><![CDATA[Welcome TCL for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106287#p106287"><![CDATA[
See that <br>setudef<br>command  and then in the proc, see the <br>channel get<br>command?   It is looking at the value of that User defined channel flag created by the setudef command.<br><br>In partyline, do:  <br>.chaninfo #channelname<br>and see the section:   User defined channel flags:<br>You should see one named: join<br>If it is -join , then this line in the script:<div class="codebox"><p>Code: </p><pre><code>if {![channel get $chan join] &amp;&amp; ![botisop $chan]} {return 0}</code></pre></div>will cause it to quit right there.<br><br>If you want it to be "on" in some channel, then you do:<br>.chanset #channelname +join<br>to change its value.   <br>Simply check it again, with another .chaninfo #channelname  to be sure.<br><br>Then test your script again.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun May 28, 2017 1:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[alphax]]></name></author>
		<updated>2017-05-28T12:46:24-04:00</updated>

		<published>2017-05-28T12:46:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106286#p106286</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106286#p106286"/>
		<title type="html"><![CDATA[Welcome TCL for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106286#p106286"><![CDATA[
Hey there,<br><br>First of all thank you for your answer. Everything is okay now. But there is a one little problem. it see other channel to i want it just for help channel. Can you help me to solve that? By the way i tried .chanset command but there is no solution. Thank you.<br><div class="codebox"><p>Code: </p><pre><code>bind join -|- * new_join setudef flag join set receiver "#Op" set exemptchan "#Help" proc new_join {nick uhost handle chan} {  global receiver exemptchan if {![channel get $chan join] &amp;&amp; ![botisop $chan]} {return 0} utimer 1 [list check:after $nick $chan ] } proc check:after {nick chan} {  global receiver exemptchan  if {![isop $nick $chan] &amp;&amp; ![string equal -nocase $exemptchan $chan]} {    putserv "PRIVMSG @$receiver :WARNING: $nick waits for help."   }  } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12696">alphax</a> — Sun May 28, 2017 12:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2017-05-27T18:32:19-04:00</updated>

		<published>2017-05-27T18:32:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106285#p106285</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106285#p106285"/>
		<title type="html"><![CDATA[Re: Welcome TCL for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106285#p106285"><![CDATA[
First :<div class="codebox"><p>Code: </p><pre><code>bind join - * channel:welcomeproc kanal:welcome {nick uhost handle chan} { ...</code></pre></div>The proc called by the bind join is not the proc shown here.<br>Perhaps it is just some sort of typo... ?<br><br>Next:<br>I'm thinking that you might want to cut this line:<div class="codebox"><p>Code: </p><pre><code>putquick "PRIVMSG $nick :Please wait you will be get help soon." </code></pre></div>and put it in a separate proc.<br><br>Then, you can call that proc, after a delay - using utimer .<br>This idea is to give time for Chanserv to op.<br><br>Then, in this proc, check to see if the user is op'd.<br>If op'd, just quit.  If not, then do the announcement.<br><br>Go here:<br><a href="http://docs.eggheads.org/mainDocs/tcl-commands.html" class="postlink">http://docs.eggheads.org/mainDocs/tcl-commands.html</a><br>and text search for <br>utimer<br>and<br>isop<br>and read about them, and how to use them.<br><br>I hope this helps.<br><br>Perhaps someone else will be along with a different idea, too.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat May 27, 2017 6:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[alphax]]></name></author>
		<updated>2017-05-27T16:28:39-04:00</updated>

		<published>2017-05-27T16:28:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106284#p106284</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106284#p106284"/>
		<title type="html"><![CDATA[Welcome TCL for users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106284#p106284"><![CDATA[
Hey there,<br><br>i have trouble with that code. That code notification for all. But i want to notification for just users not ops. <br><br>So when op joins help channel no notification. i want to notification for just users.  and dont notification for oper and admins.<br><br>i need a little help. Ty. <br><div class="codebox"><p>Code: </p><pre><code>bind join - * channel:welcomeproc kanal:welcome {nick uhost handle chan} {global botnickif {$nick == $botnick} { return 0 }if {[string match -nocase "#helpchannel" $chan]} {putquick "PRIVMSG #opchannel :# $nick wait in#helpchannel"putquick "PRIVMSG $nick :Please wait you will be get help soon."}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12696">alphax</a> — Sat May 27, 2017 4:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
