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

	<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-09-14T13:58:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-09-14T13:58:26-04:00</updated>

		<published>2015-09-14T13:58:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104421#p104421</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104421#p104421"/>
		<title type="html"><![CDATA[Re: Identify with nickserv before autop op]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104421#p104421"><![CDATA[
You're welcome.<br><br>Good luck with it all.  <br>It is fun to work through, once you get rolling.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Sep 14, 2015 1:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[silentziler]]></name></author>
		<updated>2015-09-14T09:11:34-04:00</updated>

		<published>2015-09-14T09:11:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104420#p104420</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104420#p104420"/>
		<title type="html"><![CDATA[Re: Identify with nickserv before autop op]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104420#p104420"><![CDATA[
Hey willyw,<br><br>Just wanted to say thanks for the suggestion!<br>I will play with this code and see if I can't make something of it!<br><br>I kinda figured it would be a pain in the rear, I did all kinds of research before<br>coming here for help. I didnt see to many people with this question, so i figured I would reach out for help.<br><br>Thanks again!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12563">silentziler</a> — Mon Sep 14, 2015 9:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-09-13T12:34:38-04:00</updated>

		<published>2015-09-13T12:34:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104419#p104419</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104419#p104419"/>
		<title type="html"><![CDATA[Re: Identify with nickserv before autop op]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104419#p104419"><![CDATA[
<blockquote class="uncited"><div><br>... if its possible to add an ident check before it reads the autooplist.txt </div></blockquote><br>Coincidentally, I just did something like this for an acquaintance.<br>However, for simplicity, I didn't bother with having the bot keep a text list, opening and closing and searching it.<br><br>We just add the users to the bot's user list with either .adduser or .+user ,<br>and use that list.<br><br>It seems a lot less complicated.    <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> — Sun Sep 13, 2015 12:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-09-13T12:30:55-04:00</updated>

		<published>2015-09-13T12:30:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104418#p104418</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104418#p104418"/>
		<title type="html"><![CDATA[Re: Identify with nickserv before autop op]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104418#p104418"><![CDATA[
<blockquote class="uncited"><div>... im looking to add a line to check to see if a user has identified with nickserv before ...<br></div></blockquote><br>The problem is: It isn't just one line, to do it.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>What comes to mind - as a way to do it - is to send a whois to the server, wait for the return, then operate on that that return using raw binds.<br><br>If you load this:<br><div class="codebox"><p>Code: </p><pre><code># September 13, 2015# It seems like it is not unusual for someone to need a way to check if a nick is currently identified with Nickserv, or not.## This will /whois the nick passed to it, and see if the line exists that shows that nick is logged in### A global variable -  $id_toggle -  will be set.   "1" if nick is identified,  "0" if not.# NOTE !!# Since this script sends a /whois to the server, there can be a lag!  Beware of this, and allow for it, in your scripts that# may call this one, and use the value of $id_toggle# Reference : https://www.alien.net.au/irc/irc2numerics.html# Also, to see the raw numerics returned by your server, before you try to use this script:# do: .console +r   (must already be enabled in eggdrop.conf)  to turn on the raw flag in console flags.# then do:   .dump whois &lt;somenick&gt;# bot will do a /whois on somenick, and since you have raw logging on, you will be able to see the return.# note the raw numerics.# test on both a nick that is currently id'd with Nickserv, and one that is not.# (  do: .console -r to turn off raw logging when done  )#proc is_nick_idd {nick} {global id_toggle        bind raw - "307" is_idd        bind raw - "330" is_idd        set id_toggle "0"        putserv "whois $nick"        utimer 7 [list unbind raw  - "307" is_idd]        utimer 7 [list unbind raw  - "330" is_idd]}proc is_idd {from key text} {global id_toggle        set id_toggle "1"}</code></pre></div>and just consider it as a command to be used:<br>is_nick_idd somenick_here<br>like that,  it will set a variable to either "1" or "0".<br>The variable is named: <br>$id_toggle<br><br>and you can then do an if statement that checks that in whatever other script you need to use it in.<br><br>The catch !  :<br>The can be a lag or delay in the server responding to the whois command sent to it.   You must allow for this, by introducing some delay into whatever script will be testing the value of $id_toggle.<br><br>Also, there is nothing built into this very basic script if the server returns an error or something like that.<br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Sep 13, 2015 12:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[silentziler]]></name></author>
		<updated>2015-09-09T11:09:46-04:00</updated>

		<published>2015-09-09T11:09:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104408#p104408</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104408#p104408"/>
		<title type="html"><![CDATA[Identify with nickserv before autop op]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104408#p104408"><![CDATA[
Hello egghelp,<br><br>So im currently using AutoopNick.tcl By CoMMy / <a href="mailto:kirian100@yahoo.com">kirian100@yahoo.com</a> <br>and im looking to add a line to check to see if a user has identified with nickserv before autoping. I removed the first IF line as it doesnt matter the channel.<br>I was just wondering if its possible to add an ident check before it reads the autooplist.txt and maybe kick back a not registered with nickserv if a user isnt.<br><div class="codebox"><p>Code: </p><pre><code>proc join_check {nick host handle chan} {  global botnick  if {![channel get $chan autoopnick]} {return 0}  set fp [open scripts/autooplist.txt r]  set lines [split [read $fp] \n]  set idx [lsearch -glob $lines "$nick"]  if {$idx != -1} {    putquick "MODE $chan +o $nick"    close $fp  } else {    close $fp    return 0  }  return 1}</code></pre></div>Thanks for any help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12563">silentziler</a> — Wed Sep 09, 2015 11:09 am</p><hr />
]]></content>
	</entry>
	</feed>
