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

	<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>2015-04-11T17:23:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-11T17:23:48-04:00</updated>

		<published>2015-04-11T17:23:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103790#p103790</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103790#p103790"/>
		<title type="html"><![CDATA[Verification Option Are you sure Y/N?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103790#p103790"><![CDATA[
Pefect! Thanks <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=12499">juanamores</a> — Sat Apr 11, 2015 5:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-04-11T15:21:21-04:00</updated>

		<published>2015-04-11T15:21:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103789#p103789</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103789#p103789"/>
		<title type="html"><![CDATA[Verification Option Are you sure Y/N?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103789#p103789"><![CDATA[
<blockquote class="uncited"><div>If I have this: <br><br> Quote: <br>bind pub o|v !command pub:process <br> bind pub o|v !command2 pub:process2 <br><br> Means that only users with channel flag +v and global +o can do it?</div></blockquote>Yes.<br><blockquote class="uncited"><div>How I can do so that they can execute this command, at least 3 levels at once?</div></blockquote>Maybe try something like this?<div class="codebox"><p>Code: </p><pre><code>bind pub oan|v !command2 pub:process2</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Apr 11, 2015 3:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-11T13:52:44-04:00</updated>

		<published>2015-04-11T13:52:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103788#p103788</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103788#p103788"/>
		<title type="html"><![CDATA[Verification Option Are you sure Y/N?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103788#p103788"><![CDATA[
Thanks Spike^^ for your help.<br><br>I find it too much work, perhaps for the upload files function is justified, but I just wanted to warn the user when deleting a list.<br><br>In mSL can be done easily with a few lines of code <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>The other thing I find difficult is the issue of flags for permits (bind), when executing a command.<br><br>In mSL which has a higher level can do everything that you can make someone of lower level, in Tcl I have encountered difficulties.<br><br>For example: I have three user levels that identify with the  flags: +v local and global +o and +a (besides owner +n).<br><br>If I have this: <blockquote class="uncited"><div>bind pub o|v !command pub:process<br>bind pub o|v !command2 pub:process2</div></blockquote>Means that only users with channel flag +v and global +o can do it?<br><br>How I can do so that they can execute this command, at least 3 levels at once?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sat Apr 11, 2015 1:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-04-11T11:43:21-04:00</updated>

		<published>2015-04-11T11:43:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103787#p103787</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103787#p103787"/>
		<title type="html"><![CDATA[Verification Option Are you sure Y/N?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103787#p103787"><![CDATA[
Yes it is possible, BogusTrivia uses this exact concept in its /msg bot .add command for adding questions to the database.<div class="codebox"><p>Code: </p><pre><code>6. Add Questions to Create the Database:    Using the /msg command, message your bot with one of the .add commands.    .add is sufficient if you're adding the included question file or files    with *triv* in the filename(s). Follow the message window as the script may    ask for user input. It may have you verify by sending you 3 examples from    the file you're adding.    You will need to answer yes or no  {or: y or n}.     Note: If you are adding multiple question files and you're sure they ALL          follow the same format, you may answer using "yes all"  {or:  y a}.          The script provides error correction and creates a file called t2.badqes,          these are broken Q&amp;A and may later be edited or discarded as you wish.</code></pre></div>I did this by making two processes, NOT by "the process stops, waiting for an option".<br><br>The first proc accepts the initial command, and sets a few global variables, to save the users nick and any needed info from his command.<br>1st proc also must make binds for 'Y' and 'N' to the second proc.<br>You may also wish to set a timer or bind time to remove the variables/binds if user doesn't finish the command (may require a 3rd proc).<br><br>The second proc just waits for one of the bound answers to call it.<br>When called, it confirms the nick, and does as the user has answered, then removes the associated binds/variables.<br>Make sure if you timer called a 3rd cleanup proc earlier, that it does not error out trying to remove things the 2nd proc already did:)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Apr 11, 2015 11:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-11T03:41:28-04:00</updated>

		<published>2015-04-11T03:41:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103784#p103784</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103784#p103784"/>
		<title type="html"><![CDATA[Verification Option Are you sure Y/N?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103784#p103784"><![CDATA[
Is it possible in TCL, generates an option to warn the user if it is sure to perform a task?<br><br>If the user types 'Y', the task is performed.<br>If the user types 'N', will not perform the task.<br>While the user does not enter 'Y' or 'N',the process stops, waiting for an option.<br><br>This we have achieved in mSL, but Tcl I understand very little, a few days I started learn this language.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sat Apr 11, 2015 3:41 am</p><hr />
]]></content>
	</entry>
	</feed>
