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

	<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-06-19T14:10:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-06-19T14:10:14-04:00</updated>

		<published>2005-06-19T14:10:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51079#p51079</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51079#p51079"/>
		<title type="html"><![CDATA[utimer problem [noob request]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51079#p51079"><![CDATA[
/me orders another round of popcorn and sodas  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Sun Jun 19, 2005 2:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Atomic]]></name></author>
		<updated>2005-06-19T11:29:27-04:00</updated>

		<published>2005-06-19T11:29:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51069#p51069</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51069#p51069"/>
		<title type="html"><![CDATA[hmm ok thank you all]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51069#p51069"><![CDATA[
right thank you all for the help<br><br>but it is now fixed and working fine<br>as far as i can see... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>phew its hot in here....<br><br>*Closed* <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>atomic<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5117">Atomic</a> — Sun Jun 19, 2005 11:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-06-19T07:58:55-04:00</updated>

		<published>2005-06-19T07:58:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51064#p51064</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51064#p51064"/>
		<title type="html"><![CDATA[utimer problem [noob request]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51064#p51064"><![CDATA[
Everyone is god damn fuc|&lt;ing fast to detect errors in other peoples codes.<br><br>I do know what the [censored] is a string and what the [censored] is a list. If some one appreciately devotes some time to help out people here there is no god damn mother [censored] reason just to criticize that person if you are better or worse than them.<br><br>I have always found you blaming, criticizing, being pathetic, leaving sarcastic comments for other people gb, I think its time you get some as well.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Jun 19, 2005 7:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-06-19T07:53:32-04:00</updated>

		<published>2005-06-19T07:53:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51063#p51063</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51063#p51063"/>
		<title type="html"><![CDATA[utimer problem [noob request]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51063#p51063"><![CDATA[
im not the one encouraging people to use code that can be easily exploited.<br>if you plan on using a timer with irc inputs, eg. user nicks.. then for the love of god process it as a list, like demond told you.<br><br>if you dont know the difference between a string or a list, or fail to see why executing any tcl command that fits into a nickname is bad, then you should go jump on that thin ice of yours.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Sun Jun 19, 2005 7:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-06-19T07:45:24-04:00</updated>

		<published>2005-06-19T07:45:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51061#p51061</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51061#p51061"/>
		<title type="html"><![CDATA[utimer problem [noob request]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51061#p51061"><![CDATA[
Don't piss me off greenbear your in thin ice in my list anyway. Do you have a better [censored] solution for this?<br><br>What is the [censored] reason with people, if I god damn mother [censored] give an alternative solution. Everyone is [censored] fast to degrade other peoples solutions and to point that they are gay.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Jun 19, 2005 7:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-06-19T07:42:46-04:00</updated>

		<published>2005-06-19T07:42:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51060#p51060</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51060#p51060"/>
		<title type="html"><![CDATA[utimer problem [noob request]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51060#p51060"><![CDATA[
thats just gay<br>awyeah needs to stop encouraging people to do crap coding<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Sun Jun 19, 2005 7:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-06-18T13:29:56-04:00</updated>

		<published>2005-06-18T13:29:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51034#p51034</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51034#p51034"/>
		<title type="html"><![CDATA[utimer problem [noob request]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51034#p51034"><![CDATA[
<blockquote class="uncited"><div>does his script work for you if you stick your<br>utimer 30 "putquick "mode $channel –v $nick"" <br>in there, awyeah?<br><br>are you disputing the fact that the nick [thiswillbeexecuted] after 30 seconds if he happens to follow your suggestion? i didn't see you suggesting any string map or regsub to him, so it would break his [censored] no doubt! please try it before replying.<br><br>please dont lecture me on special characters, i am not the one having these problems.<br><br>edit: demond summed it up nicely</div></blockquote>Listen for me the same thing worked, a year ago on all of my scripts -- don't use it anymore, thought I'd give a second solution for the problem. We all in here know <ul> <li>works with utimer. As for the quotations, if you are keen in special characters use a filter and if you are that keen to ensure you bot doesn't execute [die] on a similar nick, check the damn nick if it is equal to 'die' or not else proceed.</li></ul><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Jun 18, 2005 1:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-18T13:26:07-04:00</updated>

		<published>2005-06-18T13:26:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51033#p51033</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51033#p51033"/>
		<title type="html"><![CDATA[utimer problem [noob request]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51033#p51033"><![CDATA[
<blockquote class="uncited"><div>Yeah, but if I am aware with that, that [die] bug was pointed out to me very long ago by a friend of mine with older eggdrop versions and I beleive it has been rectified by the coders in the new versions.</div></blockquote>it's not eggdrop's bug, it's your bug<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jun 18, 2005 1:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-06-18T13:24:34-04:00</updated>

		<published>2005-06-18T13:24:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51032#p51032</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51032#p51032"/>
		<title type="html"><![CDATA[utimer problem [noob request]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51032#p51032"><![CDATA[
Yeah, but if I am aware with that, that [die] bug was pointed out to me very long ago by a friend of mine with older eggdrop versions and I beleive it has been rectified by the coders in the new versions.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Jun 18, 2005 1:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2005-06-18T13:25:40-04:00</updated>

		<published>2005-06-18T13:24:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51031#p51031</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51031#p51031"/>
		<title type="html"><![CDATA[utimer problem [noob request]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51031#p51031"><![CDATA[
does his script work for you if you stick your<br>utimer 30 "putquick \"mode $channel –v $nick\"" <br>in there, awyeah?<br><br>are you disputing the fact that the nick [thiswillbeexecuted] after 30 seconds if he happens to follow your suggestion? i didn't see you suggesting any string map or regsub to him, so it would break his [censored] no doubt! please try it before replying.<br><br>please dont lecture me on special characters, i am not the one having these problems.<br><br>edit: demond summed it up nicely<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Sat Jun 18, 2005 1:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-18T13:21:23-04:00</updated>

		<published>2005-06-18T13:21:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51029#p51029</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51029#p51029"/>
		<title type="html"><![CDATA[utimer problem [noob request]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51029#p51029"><![CDATA[
<blockquote class="uncited"><div>Not sure about you spock, but it worked fine for me. There are sometimes more than one ways to solve a problem. Some trivial methods, some un-orthodox method's, either way both solutions have different problems, advantages and so forth.<br><br>If you are having problems with nicks, channels with special characters, such as {, }, [, ], \, ", then you can always add an extra "" infront of them by using STRING MAP or a REGSUB filter.</div></blockquote>he meant you will be exploited because of your code passing arbitrary input ($nick can be [die], and your bot will die) to Tcl's interpreter for evaluation - and that's because you actually force that evaluation using double quotes - you shouldn't do that, you should use braces or <ul> <li>if you need variable substitution</li></ul><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jun 18, 2005 1:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Atomic]]></name></author>
		<updated>2005-06-18T13:11:15-04:00</updated>

		<published>2005-06-18T13:11:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51028#p51028</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51028#p51028"/>
		<title type="html"><![CDATA[wow thank you]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51028#p51028"><![CDATA[
wow your ace mate thank you<br><br>but it doesnt work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> <br><br>i get an error on partyline <br><br>Tcl error [pub_do_god]: invalid command name " "<br><br>sorry i have looked at it and cant figure it out<br><br>eek *blushes*<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5117">Atomic</a> — Sat Jun 18, 2005 1:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-06-18T13:12:16-04:00</updated>

		<published>2005-06-18T13:09:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51027#p51027</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51027#p51027"/>
		<title type="html"><![CDATA[utimer problem [noob request]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51027#p51027"><![CDATA[
Not sure about you spock, but it worked fine for me. There are sometimes more than one ways to solve a problem. Some trivial methods, some un-orthodox method's, either way both solutions have different problems, advantages and so forth.<br><br>If you are having problems with nicks, channels with special characters, such as {, }, [, ], \, ", then you can always add an extra "\" infront of them by using STRING MAP or a REGSUB filter.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Jun 18, 2005 1:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2005-06-18T13:06:44-04:00</updated>

		<published>2005-06-18T13:06:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51026#p51026</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51026#p51026"/>
		<title type="html"><![CDATA[utimer problem [noob request]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51026#p51026"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set ignorelist {}bind pub - !iamgod pub_do_god proc pub_do_god {nick host handle channel txt} {   if {![botisop $channel]||[isop $nick $channel]||[isvoice $nick $channel]||[lsearch -exact $::ignorelist $host]!=-1} {     putserv "NOTICE $nick :I'm not op'd / you're opped / you're voiced / you're in my ignorelist"     return 1  }   putserv "PRIVMSG $channel :Watch out everyone! $nick has just decided that they will be playing god. So, heed the words of $nick !!!"   putquick "MODE $channel +m"   putquick "MODE $channel +v $nick"  utimer 30 [list endreign $nick $channel $host]  return 1 }proc endreign {n c h} {  putquick "mode $c -m"  putquick "mode $c -v $n"  putquick "PRIVMSG $c :Phew, You are no longer a god $n"  putquick "PRIVMSG $c :Normal Channel Operation resumed"  lappend ::ignorelist $h  timer 30 [list cleanlist $h]  return}proc cleanlist h {  set ::ignorelist [lreplace $::ignorelist [set a [lsearch -exact $::ignorelist $h]] $a]  return}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Sat Jun 18, 2005 1:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Atomic]]></name></author>
		<updated>2005-06-18T12:37:45-04:00</updated>

		<published>2005-06-18T12:37:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51025#p51025</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51025#p51025"/>
		<title type="html"><![CDATA[hmmm thank you but..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51025#p51025"><![CDATA[
hiya again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>thank you for your fast replies but there are errors...<br><br>i tried both cmd lines<br><br>this one which i think you meant spock<br><br>script<br>#Commands <br><br>bind pub - !iamgod pub_do_god <br><br>#---------------------------------------------------------------- <br>#Make someone be a god <br><br>proc pub_do_god {nick host handle channel txt} { <br>putquick "PRIVMSG $channel :Watch out everyone! $nick has just decided that they will be playing god. So, heed the words of $nick !!!"<br>putquick "MODE $channel +m"<br>putquick "MODE $channel +v $nick"<br>utimer 30 [list putquick "mode $channel –v $nick"]<br>utimer 30 [list putquick "mode $channel –m"]<br>utimer 30 [list putquick "PRIVMSG $channel :Phew, You are no longer a god $nick"] <br>utimer 30 [list putquick "PRIVMSG $channel :Normal Channel Operation resumed"]<br>return 1 <br>} <br> <br><br>#end of pub_do_iamgod <br><br><br>putlog " iamgod Script by atomic Loaded"<br><br>umm this one does not work as it does not unset the modes -v -m<br><br>and awyeah's cmd lines i added<br><br>script<br><br>#Commands <br><br>bind pub - !iamgod pub_do_god <br><br>#---------------------------------------------------------------- <br>#Make someone be a god <br><br>proc pub_do_god {nick host handle channel txt} { <br>putquick "PRIVMSG $channel :Watch out everyone! $nick has just decided that they will be playing god. So, heed the words of $nick !!!"<br>putquick "MODE $channel +m"<br>putquick "MODE $channel +v $nick"<br>utimer 30 "putquick \"mode $channel –v $nick\""<br>utimer 30 "putquick \"mode $channel -m\"" <br>utimer 30 "putquick \"PRIVMSG $channel :Phew, You are no longer a god $nick\"" <br>utimer 30 "putquick \"PRIVMSG $channel :Normal Channel Operation resumed\""<br>return 1 <br>} <br> <br><br>#end of pub_do_iamgod <br><br><br>putlog " iamgod Script by atomic Loaded"<br><br>no this one does unset mode +m on the chanel but doesnt unset +v on the user... any ideas why guys..<br><br>i am sorry i have been scripting tcl for 1 day <br>obviously the script is flawed which i will proly learn<br>things that spring to mind are..<br><br>if the user changes nick while in god mode<br>i take it they will keep +v and i will get an error from the bot<br>if the user has a nick like [atomic] i htink this might also <br>cause problems in this script i have read about specail charactors in nicks<br>lik [] that cause problems ummm<br><br>i am not so advanced at tcl but i am willing to learn<br>sorry for the very noob questions <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>i am just doing very basic things i know <br>this is how i think i will learn this code <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>trial and error <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>not bad though after 1 day is it.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>thank you again <br>Atomic<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5117">Atomic</a> — Sat Jun 18, 2005 12:37 pm</p><hr />
]]></content>
	</entry>
	</feed>
