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

	<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>2011-03-01T23:59:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[cuthbertx]]></name></author>
		<updated>2011-03-01T23:59:45-04:00</updated>

		<published>2011-03-01T23:59:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96272#p96272</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96272#p96272"/>
		<title type="html"><![CDATA[Check if user is registered with NickServ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96272#p96272"><![CDATA[
Thank you for the reply. Going to work with you have provided and see if I can get it going. I'll let ya know if I get it going and share 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=11578">cuthbertx</a> — Tue Mar 01, 2011 11:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2011-03-01T13:43:37-04:00</updated>

		<published>2011-03-01T13:43:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96268#p96268</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96268#p96268"/>
		<title type="html"><![CDATA[Check if user is registered with NickServ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96268#p96268"><![CDATA[
<blockquote class="uncited"><div>The network that I am trying this on is: irc.what-network.net -- just to test things out.<br>...</div></blockquote><div class="codebox"><p>Code: </p><pre><code>bind pub - "!getstatus" getnickstatusbind notc - "*STATUS*" noticereplyproc getnickstatus {nick uhost handle chan text} {putserv "privmsg nickserv :status [lindex [split $text] 0]"}proc noticereply {nick uhost handle text dest} {   if {"$nick"!="NickServ"} {   return    }if {"[lindex [split $text] 2]" == "3"} {        # this user is online, registered, and id'd with Nickserv        # do whatever commands here} else {               # this user did not return "3"        # do whatever commands here      }} </code></pre></div><br>Experiment with something like the above. <br><br>I tried very briefly , on your server, and it worked.   In place of the comments, I had putserv commands to send me a simple /msg  , so that has been edited after pasting it here.<br><br>This little bit of code is not meant to be a drop in.  It is just meant to illustrate one way to check for that "3" that I think you are wanting to test for.<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> — Tue Mar 01, 2011 1:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cuthbertx]]></name></author>
		<updated>2011-03-01T12:15:07-04:00</updated>

		<published>2011-03-01T12:15:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96267#p96267</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96267#p96267"/>
		<title type="html"><![CDATA[Check if user is registered with NickServ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96267#p96267"><![CDATA[
The network that I am trying this on is: irc.what-network.net -- just to test things out.<br><br>The message that is sent to nickserv to check the status is: /msg nickserv status $nick<br><br>And the response you get back is:<br><br>11:11 -NickServ(<a href="mailto:services@what-network.net">services@what-network.net</a>)- STATUS Cuthbertx 3<br><br>The last number represents the level that the user is. Level 3 means the nick is registered and identified which is the status I am looking for on the return. The other numbers are 2, 1 and 0 which do not matter and should all return false.<br><br>Thanks for your help guys.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11578">cuthbertx</a> — Tue Mar 01, 2011 12:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2011-03-01T10:59:03-04:00</updated>

		<published>2011-03-01T10:59:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96266#p96266</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96266#p96266"/>
		<title type="html"><![CDATA[Re: Check if user is registered with NickServ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96266#p96266"><![CDATA[
<blockquote class="uncited"><div>...<br> and I know it is based on the network you're on, <br>...</div></blockquote>If possible, please post the name, etc. of the network. <br><br>It should make it a lot easier for scripters and experimenters, if they can simply log onto the network in question and play around with it for themselves, if they wish.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Mar 01, 2011 10:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-03-01T03:32:39-04:00</updated>

		<published>2011-03-01T03:32:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96261#p96261</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96261#p96261"/>
		<title type="html"><![CDATA[Check if user is registered with NickServ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96261#p96261"><![CDATA[
You send a command to NickServ to check upon a user if is registered or not, right? What's the command? Also, could you do a check on a user and write here the result?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Mar 01, 2011 3:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cuthbertx]]></name></author>
		<updated>2011-02-28T19:19:21-04:00</updated>

		<published>2011-02-28T19:19:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96255#p96255</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96255#p96255"/>
		<title type="html"><![CDATA[Check if user is registered with NickServ]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96255#p96255"><![CDATA[
Hello guys,<br><br>I've seen a few topics on this, and I know it is based on the network you're on, but I just can't seem to get it to work with what I am wanting. So here is a little background. I have a script that will send an invite to users who are in a database file. However, I want the script to check if the user is registered before it sends the invite. I was hoping to do something like:<br>  if {[isregistered $nick]} {<br>   then do this<br> }<br><br>Or something similar to it. I've tried a few different ways, but just can't seem to get it to work. It doesn't have to be like it is above, but something that will check if they're registered and then continue if so, or return if not. <br><br>Here is what I've tried and has been the closest:<br><br><div class="codebox"><p>Code: </p><pre><code>proc nfo:usr {nick host hand text {dest ""}} {global zop botnick is_regset from "NickServ"set is_reg "0"  if {([string match -nocase "*3*" $text]) &amp;&amp; ([string match -nocase "NickServ" $from])} {  log "$nick is registered. 3."  set is_reg "1" } else {  log "$nick is not registered. 0."  set is_reg "0" } return 0}proc invite {nick uhost handle arg} {    global infodb ui_entries chan_1 is_reg   bind notc - "*"          nfo:usr   putquick "PRIVMSG nickserv :status $nick"   if {$is_reg == "0"} { return 0 }</code></pre></div>I know the above is way off, but any help is greatly appreciated on this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11578">cuthbertx</a> — Mon Feb 28, 2011 7:19 pm</p><hr />
]]></content>
	</entry>
	</feed>
