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

	<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>2014-06-05T13:55:44-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2014-06-05T13:55:44-04:00</updated>

		<published>2014-06-05T13:55:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102891#p102891</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102891#p102891"/>
		<title type="html"><![CDATA[New to TCL - making sure nick is registered with NickServ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102891#p102891"><![CDATA[
@speechles Keep proving my point.<br><br>caesar, I don't even have an attitude, I merely tried to help. That is all I've tried to do, for years, and am known for it on some networks. If people think it's crappy, or half-assed, that's their problem. At least I try to help, unlike others who just continue to show their constant ignorance and arrogance.<br>I don't have a problem with anyone, they are entitled to their opinions. <br><br>I have nothing more to say on the matter.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Thu Jun 05, 2014 1:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2014-06-04T14:01:20-04:00</updated>

		<published>2014-06-04T14:01:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102888#p102888</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102888#p102888"/>
		<title type="html"><![CDATA[New to TCL - making sure nick is registered with NickServ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102888#p102888"><![CDATA[
@speechles : In nml375's defense it was actually me who removed your post mainly cos it did add any value to the subject but trolling like you just did one more time.<br><br>@nml375 feel free to remove his and mine post when and if you see fit, if not I will later on.<br><br>@speechles and Get_A_Fix : please mind your attitude regarding other members. You got something with that member? Take it on IRC, PM or whatever, not on the forum.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jun 04, 2014 2:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2014-06-04T13:52:38-04:00</updated>

		<published>2014-06-04T13:52:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102887#p102887</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102887#p102887"/>
		<title type="html"><![CDATA[New to TCL - making sure nick is registered with NickServ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102887#p102887"><![CDATA[
<blockquote class="uncited"><div>Thanks for taking the time to actually explain, rather than just getting angry at me. Some people, like Speechless, are just tools. They abuse and berate users until they either /ragequit on IRC, or leave the forums.</div></blockquote>Now now... Let's be truthful here guy...<br>my nickname is speechles. Why people always feel the need to add the last S or call me speachless means they have an obvious lack of detail. A problem with paying attention. So pay attention to this.<br><br>I am the one not giving crappy half-assed advice better kept in your head. Sometimes it is better, to not say a word and be assumed an idiot, than to open your mouth and remove all doubt.<br><br>As users become more demanding and progress as you have get-a-fix. They become the epitomy of what is wrong with this project. People with no clue what-so-ever offering advice to others with broken junk code and an attitude to match. This is freenode.<br><br>ragequit.. I never ragequit a thing. Get your facts straight there johnny. I was banned because they cannot tolerate my opinion. This is called germany. This is what the nazi's did. In that kind of scenario I removed myself. I also called out and removed them from efnet. You need to get your information correct before once again you start spreading inaccurate, stupid, and just pointless things to this forum bro.<br><br>keep in mind, I know who you are. I've seen you on irc. You are a constant source of consternation and dismay ever time you ask once of your "questions" on irc bro. I never left the forums either. If I did, strange that here I am. What I did do is stop providing my updated scripts and basically stopped all eggdrop development in general. Why? This is the good part. Because... Does there have to be a reason? For you there must. So you start to make this assumptions...<br><br><br>nml375, do not remove this post as you did my last. Notice my nickname is mentioned above. If you do remove this post, remove this idiots banter above mine as well. Otherwise you the tool. Take opinions you don't like and hide them. This is so juvenile I can't believe I even wasted keystokes on this crap. But it has to be done this guy doesn't know anything and just likes to take medication and annoy others.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Wed Jun 04, 2014 1:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2014-06-04T00:56:10-04:00</updated>

		<published>2014-06-02T03:58:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102881#p102881</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102881#p102881"/>
		<title type="html"><![CDATA[New to TCL - making sure nick is registered with NickServ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102881#p102881"><![CDATA[
<blockquote class="uncited"><div>@Get_A_Fix:<br>"Thrash down" might have been a strong choise of words, I admit. Apologies for that.</div></blockquote>All good. Unfortunately with the internet and forums, it's hard to gauge the full meaning of some things, it may be a cultural/slang issue, or just a simple misunderstanding. It happens <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><blockquote class="uncited"><div>@Get_A_Fix:<br>I do realize that you've had some discussions off-forum. Unfortunately, that means that the rest of us don't have the full context.<br>My comment regarding code was the example in your initial post, as I had no means of knowing what your original code had been, at that point of time.</div></blockquote>Yeah, I didn't want to complicate things by re-posting what I had already given the user.<br><blockquote class="uncited"><div>@Get_A_Fix:<br>The "original" code of yours looks proper, except perhaps for the use of the "args" keyword in your auth_check proc. Since eggdrop bindings always use a set number of parameters, "args" will not provide any features and is best avoided (it won't break your code, though).</div></blockquote>I will try to remember this, hopefully next time it will be proper and proficient. <br><br>Thanks for taking the time to actually explain, rather than just getting angry at me. Some people, like Speechless, are just tools. They abuse and berate users until they either /ragequit on IRC, or leave the forums.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Mon Jun 02, 2014 3:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2014-06-01T10:59:59-04:00</updated>

		<published>2014-06-01T10:59:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102879#p102879</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102879#p102879"/>
		<title type="html"><![CDATA[New to TCL - making sure nick is registered with NickServ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102879#p102879"><![CDATA[
@Get_A_Fix:<br>"Thrash down" might have been a strong choise of words, I admit. Apologies for that.<br>I do realize that you've had some discussions off-forum. Unfortunately, that means that the rest of us don't have the full context.<br>My comment regarding code was the example in your initial post, as I had no means of knowing what your original code had been, at that point of time.<br><br>The "original" code of yours looks proper, except perhaps for the use of the "args" keyword in your auth_check proc. Since eggdrop bindings always use a set number of parameters, "args" will not provide any features and is best avoided (it won't break your code, though).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Jun 01, 2014 10:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2014-06-04T00:53:19-04:00</updated>

		<published>2014-06-01T03:25:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102877#p102877</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102877#p102877"/>
		<title type="html"><![CDATA[New to TCL - making sure nick is registered with NickServ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102877#p102877"><![CDATA[
<blockquote class="uncited"><div>@Get_A_Fix:<br>If you're really going to thrash down on a new poster like that, you really should atleast get your own code/facts straight (and no, I don't encourage thrashing down on users).</div></blockquote>Thrashing a user? I did no such thing, I was merely trying to help.<br><br>Also, my own code? Umm, it _WAS_ my code the user was originally using, after they joined the #eggdrop channel on freenode and I gave them this code...<div class="codebox"><p>Code: </p><pre><code># --- NO EDIT --- bind raw - 307 auth_checkbind join - * join_routinesetudef flag authcheckproc join_routine {nick uhost hand chan arg} {  if {![channel get $chan authcheck]} {return}  if {![isbotnick $nick] &amp;&amp; ![validuser [nick2hand $nick]]} {    putserv "WHOIS $nick"  }}proc auth_check {from keyword args} {  if {![string match "*is a registered nick*" $args]} {return}  set nick [lindex [split $args] 1]   foreach chan [channels] {    if {![onchan $nick $chan] &amp;&amp; ![channel get $chan authcheck] &amp;&amp; [validuser [nick2hand $nick]] &amp;&amp; [isop $nick $chan] &amp;&amp; [isvoice $nick $chan]} {return}    putquick "MODE $chan +v $nick"    return 0  }}</code></pre></div>I told them the script performed a similar function to what they were wanting and they could use it as a base to work on, to make theirs.<br>So, my code? Yes, it was.<br><br>I am sorry my code is 'flawed'. I am not proficient in TCL. This is only a hobby for me. I have had to teach myself, and while that isn't the best way and is sometimes the wrong way, eventually the code I do make works. As long as it works, I'm happy.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Sun Jun 01, 2014 3:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2014-05-31T15:36:42-04:00</updated>

		<published>2014-05-31T15:36:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102876#p102876</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102876#p102876"/>
		<title type="html"><![CDATA[New to TCL - making sure nick is registered with NickServ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102876#p102876"><![CDATA[
@Get_A_Fix:<br>If you're really going to thrash down on a new poster like that, you really should atleast get your own code/facts straight (and no, I don't encourage thrashing down on users).<br><br>First of all, your posted example is using recursive code in a flawed manner.<br>Secondly, within auth_check, there exists no local variable "chan", so your puthelp's will throw an error.<br><br><br>Now, some code that should get you started atleast:<div class="codebox"><p>Code: </p><pre><code>bind pub - ".signup" ofm:signupbind raw - 307 handleAutharray set authUsers ""proc ofm:signup {nick host handle channel text} {  set ::authUsers([string tolower $nick]) [list 0 $channel [unixtime]]  putserv "WHOIS $nick"}proc handleAuth {from keyword text} {  set index [string first " " $text]  set nick [string range $text 0 $index]  set lnick [string tolower $nick]  set rest [lindex [split text ":"] end]  if {[info exists ::authUsers($lnick)]} {    set channel [lindex $::authUsers($lnick) 1]    if {[string match "*is a registered nick*" $rest]} {      set ::authUsers($lnick) [list 1 $channel [unixtime]]      puthelp "NOTICE $channel :verified - ok to keep going"    } else {      unset ::authUsers($lnick)      puthelp "NOTICE $channel :unverified - we need to stop here"    }  }  #Always return 0 so we don't break other things relying on 307 response.  return 0}</code></pre></div>The above code is a bare skeleton for making these asynchronous flows working.<br><br>A short explanation;<br>I use a global array to keep track of the different requests being made. Each item in the array is identified by the nickname (in lowercase), and contains a list of data - a boolean (0/1) whether the user has been verified, the channel from which the request was issued, and a timestamp of the latest update.<br>The first can be used for future lookups (caching), with the help of the timestamp to decide if it's still valid or not.<br>The second is used in the authCheck function to know where to send the response.<br><br>authCheck will check that there is a request in progress for the current server reply. If not, the response will be silently ignored.<br>The first few lines of authCheck shows different ways of extracting the server response into separate variables. Once the request have been found in the array, the channel name is also extracted.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat May 31, 2014 3:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2014-06-04T00:51:24-04:00</updated>

		<published>2014-05-31T00:14:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102875#p102875</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102875#p102875"/>
		<title type="html"><![CDATA[New to TCL - making sure nick is registered with NickServ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102875#p102875"><![CDATA[
lol, I gave you the code and you changed it like that?<br><br>You would want to have the puthelp send to channel inside the auth_check, this gives the whois time to return output and match.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Sat May 31, 2014 12:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2014-05-30T17:02:38-04:00</updated>

		<published>2014-05-30T17:02:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102874#p102874</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102874#p102874"/>
		<title type="html"><![CDATA[New to TCL - making sure nick is registered with NickServ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102874#p102874"><![CDATA[
Hello,<br>You'll have to re-think your coding ways alittle, I'm afraid.<br><br>The workflow you are suggesting needs to work in an asynchronous way - that is, you cannot expect the server reply of your WHOIS-command to be available within your ofm:signup function.<br><br>Instead, you should have your WHOIS-response handler do all the needed actions beyond your "putserv WHOIS $nick". Also, you'll have to keep in mind, that the instance of ofm:signup no longer exists, so there are no $nick, $host, $chan, etc variables available anymore - unless you've explicitly stored them as a global variable.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri May 30, 2014 5:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BilldaCat]]></name></author>
		<updated>2014-05-30T12:59:11-04:00</updated>

		<published>2014-05-30T12:59:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102872#p102872</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102872#p102872"/>
		<title type="html"><![CDATA[New to TCL - making sure nick is registered with NickServ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102872#p102872"><![CDATA[
I'm writing a script in which when a command is issued from a user, it needs to check that the nick is registered before proceeding.<br><div class="codebox"><p>Code: </p><pre><code>bind pub - ".signup" ofm:signupbind raw - 307 auth_checkproc ofm:signup {nick host handle chan text} {        global m        putserv "WHOIS $nick"        if {[auth_check $nick] == "1"} {                puthelp "PRIVMSG $chan :verified - ok to keep going"        } else {                puthelp "PRIVMSG $chan :unverified - we need to stop here"        }}proc auth_check {args} {  if {![string match "*is a registered nick*" $args]} {return "0"}  set nick [lindex [split $args] 1]  return "1"}</code></pre></div>I know there's something I'm doing wrong with how I'm calling auth_check, I just don't know the right way to handle this.  I'm going to need to call this function to check if the user is really registered on future checks as well, so I'm trying to break it out into it's own function I can use on demand.<br>[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12397">BilldaCat</a> — Fri May 30, 2014 12:59 pm</p><hr />
]]></content>
	</entry>
	</feed>
