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

	<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>2012-04-14T15:56:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2012-04-14T15:56:12-04:00</updated>

		<published>2012-04-14T15:56:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99195#p99195</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99195#p99195"/>
		<title type="html"><![CDATA[simple if not voice+ kick from channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99195#p99195"><![CDATA[
<blockquote class="uncited"><div># Usage: To enable on a given channel:    .chanset #channel +novoicekick<br>#        To disable on a given channel:   .chanset $channel -novoicekick <br><br>so those two, do they get set right after that?</div></blockquote>Right after what?   What is "that"?<br><blockquote class="uncited"><div>And, if I enable them<br>.chanset #lobby +novoicekick<br>do I need to set -novoicekick on the rest of the channels its in?<br>or just set it to the ones i need in it?</div></blockquote>I believe that each channel will default to    -novoicekick .<br>But, check them, with  <br>.chaninfo<br>to be sure.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Apr 14, 2012 3:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[IWillNotChange]]></name></author>
		<updated>2012-04-14T14:40:21-04:00</updated>

		<published>2012-04-14T14:40:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99194#p99194</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99194#p99194"/>
		<title type="html"><![CDATA[simple if not voice+ kick from channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99194#p99194"><![CDATA[
# Usage: To enable on a given channel:    .chanset #channel +novoicekick<br>#        To disable on a given channel:   .chanset $channel -novoicekick <br><br>so those two, do they get set right after that?<br>And, if I enable them<br>.chanset #lobby +novoicekick<br>do I need to set -novoicekick on the rest of the channels its in?<br>or just set it to the ones i need in it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11940">IWillNotChange</a> — Sat Apr 14, 2012 2:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2012-04-14T14:13:49-04:00</updated>

		<published>2012-04-14T14:13:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99193#p99193</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99193#p99193"/>
		<title type="html"><![CDATA[simple if not voice+ kick from channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99193#p99193"><![CDATA[
<blockquote class="uncited"><div>... but to at least know how it functions and get the  general idea to make small fixes would be great, so I really do appreciate it more then you think!</div></blockquote>Bookmark these then:<br><br><a href="http://suninet.the-demon.de/" class="postlink">http://suninet.the-demon.de/</a><br><br><a href="http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm" class="postlink">http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm</a><br><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><br><br>If you have those three open, in front of you, you can do a LOT.  <br><br>Have fun with it.   <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=10420">willyw</a> — Sat Apr 14, 2012 2:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[IWillNotChange]]></name></author>
		<updated>2012-04-14T14:05:28-04:00</updated>

		<published>2012-04-14T14:05:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99192#p99192</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99192#p99192"/>
		<title type="html"><![CDATA[simple if not voice+ kick from channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99192#p99192"><![CDATA[
Haha thank you very much, I know a little bit of mIRC and see a slight resemblance, I'm not looking to be able to code it proficiently, but to at least know how it functions and get the  general idea to make small fixes would be great, so I really do appreciate it more then you think!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11940">IWillNotChange</a> — Sat Apr 14, 2012 2:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2012-04-14T10:22:28-04:00</updated>

		<published>2012-04-14T10:22:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99191#p99191</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99191#p99191"/>
		<title type="html"><![CDATA[simple if not voice+ kick from channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99191#p99191"><![CDATA[
<blockquote class="uncited"><div>Perfect! Thank you very much</div></blockquote>You're welcome.<br><blockquote class="uncited"><div> will test it out when i get home, but can i ask for one change? For the first one, can it be set to only certian channels?</div></blockquote><div class="codebox"><p>Code: </p><pre><code># April 14, 2012# forum user = iwillnotchange # requested kick on post, if not voiced.# http://forum.egghelp.org/viewtopic.php?t=18923#I need a super simple script.#I need it to kick users who talk in the channel who arent voice or higher, saying that they arent aloud to talk without permission.#  ...#Thank you in advance.########## Usage: To enable on a given channel:    .chanset #channel +novoicekick #        To disable on a given channel:   .chanset $channel -novoicekicksetudef flag novoicekickbind pubm - "*" kicknovoiceproc kicknovoice { nick uhost handle chan text} {if {![channel get $chan novoicekick]} {return 0         }if {[isvoice $nick $chan]} {return 0         }if {[isop $nick $chan]} {return 0         }putkick $chan $nick "You are not allowed to post in $chan without permission"return 0}</code></pre></div><br>Now, it is one small step away from "super simple".<br>Still not complicated though.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Rather than edit/overwrite my first post, I made a second complete post, so you can compare, and see what I added. <br>If you are trying to learn basics of TCL for Eggdrop, that should be helpful.<br><br>You can read about <br>channel get<br>and<br>setudef<br>here:      <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><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Apr 14, 2012 10:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[IWillNotChange]]></name></author>
		<updated>2012-04-14T09:55:02-04:00</updated>

		<published>2012-04-14T09:55:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99190#p99190</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99190#p99190"/>
		<title type="html"><![CDATA[simple if not voice+ kick from channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99190#p99190"><![CDATA[
Perfect! Thank you very much will test it out when i get home, but can i ask for one change? For the first one, can it be set to only certian channels?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11940">IWillNotChange</a> — Sat Apr 14, 2012 9:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2012-04-14T09:37:01-04:00</updated>

		<published>2012-04-14T09:37:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99189#p99189</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99189#p99189"/>
		<title type="html"><![CDATA[Re: simple if not voice+ kick from channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99189#p99189"><![CDATA[
<blockquote class="uncited"><div>I need a super simple script.<br>...<br>And on a side note, a simple on text !servers reply with <br>Current list of servers is:  <br><br>(Ill fill in the rest &gt;.&lt;i cant code but i can do that part haha)<br><br>Thank you in advance.</div></blockquote><div class="codebox"><p>Code: </p><pre><code># April 14, 2012# forum user = iwillnotchange# http://forum.egghelp.org/viewtopic.php?p=99188# ...# And on a side note, a simple on text !servers reply with# Current list of servers is:#(Ill fill in the rest &gt;.&lt;i cant code but i can do that part haha)# Thank you in advance.#### Set the filename/path of the file that will hold the list of serversset serversfile "scripts/added/testing/serversfile.txt"bind pub - "!servers" say_serversproc say_servers {nick uhost handle chan text} {global serversfile# Reference:  http://forum.egghelp.org/viewtopic.php?t=6885set fname "$serversfile"set fp [open $fname "r"]set data [read -nonewline $fp]close $fpset lines [split $data "\n"] putserv "privmsg $chan :Current list of servers is:"foreach server $lines {putserv "privmsg $chan :$server"         }}</code></pre></div>Again - super simple.  For example, does not check to see if file exists... simply coughs up an error if it does not.<br><br><br>See :<br>set serversfile "scripts/added/testing/serversfile.txt"<br>You need to edit that line.<br>Then create the file, with your list of servers (or whatever).<br><br>All this script does is:<br>Find a text file, open it, and read it.<br>Post it to the channel, line-by-line.<br><br>Experiment with it, and see if it does what you want.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Apr 14, 2012 9:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2012-04-14T09:10:39-04:00</updated>

		<published>2012-04-14T09:10:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99188#p99188</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99188#p99188"/>
		<title type="html"><![CDATA[Re: simple if not voice+ kick from channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99188#p99188"><![CDATA[
<blockquote class="uncited"><div>I need a super simple script.<br>I need it to kick users who talk in the channel who arent voice or higher, saying that they arent aloud to talk without permission. <br>...</div></blockquote><br>"super simple" being the operative words.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>i.e. It has no frills.<br><br><div class="codebox"><p>Code: </p><pre><code># April 14, 2012# forum user = iwillnotchange # requested kick on post, if not voiced.# http://forum.egghelp.org/viewtopic.php?t=18923#I need a super simple script.#I need it to kick users who talk in the channel who arent voice or higher, saying that they arent aloud to talk without permission.#  ...#Thank you in advance.########## Note:  Script is active in all channels that bot is inbind pubm - "*" kicknovoiceproc kicknovoice { nick uhost handle chan text} {if {[isvoice $nick $chan]} {return 0         }if {[isop $nick $chan]} {return 0         }putkick $chan $nick "You are not allowed to post in $chan without permission"return 0}</code></pre></div><br>Tested only briefly.<br><br><br>I hope this helps.<br><br><br>p.s. I took the liberty of changing the spelling of "aloud".   <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=10420">willyw</a> — Sat Apr 14, 2012 9:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[IWillNotChange]]></name></author>
		<updated>2012-04-14T07:00:36-04:00</updated>

		<published>2012-04-14T07:00:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99187#p99187</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99187#p99187"/>
		<title type="html"><![CDATA[simple if not voice+ kick from channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99187#p99187"><![CDATA[
I need a super simple script.<br>I need it to kick users who talk in the channel who arent voice or higher, saying that they arent aloud to talk without permission.<br><br><br>And on a side note, a simple on text !servers reply with <br>Current list of servers is:  <br><br>(Ill fill in the rest &gt;.&lt;i cant code but i can do that part haha)<br><br>Thank you in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11940">IWillNotChange</a> — Sat Apr 14, 2012 7:00 am</p><hr />
]]></content>
	</entry>
	</feed>
