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

	<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-10-19T15:01:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Hoden]]></name></author>
		<updated>2015-10-19T15:01:35-04:00</updated>

		<published>2015-10-19T15:01:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104509#p104509</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104509#p104509"/>
		<title type="html"><![CDATA[Catching nickserv response]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104509#p104509"><![CDATA[
This script works very nice, thank you!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12565">Hoden</a> — Mon Oct 19, 2015 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-09-21T20:59:44-04:00</updated>

		<published>2015-09-21T20:59:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104426#p104426</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104426#p104426"/>
		<title type="html"><![CDATA[Re: Catching nickserv response]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104426#p104426"><![CDATA[
<blockquote class="uncited"><div>I'm developing an script ....</div></blockquote>So you know <em class="text-italics">some</em> TCL , and just need a rough example?<br><blockquote class="uncited"><div>... and the Nickserv answer needs to be stored on some variable ...<br> Then I can would use this number (0, 1, 2 or 3) after.<br>...</div></blockquote>Play around with this:<br><div class="codebox"><p>Code: </p><pre><code># Septermber 21, 2015# http://forum.egghelp.org/viewtopic.php?t=20044# What I need is an tcl code to send through /msg something like "/msg nickserv status JohnDoe", and the Nickserv answer needs to be# stored on some variable (Nickserv always answer like "JohnDoe 3"). Then I can would use this number (0, 1, 2 or 3) after.# Usage:# !nickstatus &lt;nick&gt;#bind pub - "!nickstatus" do_nick_statusbind notc - "*status*" status_noticeproc do_nick_status {nick uhost handle chan text} {        if {![llength [split $text]]} {                putserv "privmsg $chan :Syntax: !nickstatus &lt;nick&gt; "                return 0         }        putserv "privmsg Nickserv :status [lindex [split $text] 0]"}proc status_notice {nick uhost handle text dest} {        # Bot will output on this channel.  Just needed somewhere to have        # it put the values, so you can see them.        set chan "#testchan1"        if {[string tolower $nick] ne "nickserv"} {                return 0        }        if {[string tolower [lindex [split $text] 0]] ne "status"} {                return 0        }        set status_nick [lindex [split $text] 1]        set status_value [lindex [split $text] 2]        putserv "privmsg $chan : "        putserv "privmsg $chan :status_nick is: $status_nick"        putserv "privmsg $chan :status_value is: $status_value"}</code></pre></div>With a couple brief tests on an irc network that has what seems to be the same Status command,  it worked.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Sep 21, 2015 8:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Hoden]]></name></author>
		<updated>2015-09-21T16:41:05-04:00</updated>

		<published>2015-09-21T16:41:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104425#p104425</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104425#p104425"/>
		<title type="html"><![CDATA[Catching nickserv response]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104425#p104425"><![CDATA[
I'm developing an script and I need to catch Nickserv response (user mode, specifically). The server's nickserv says this:<br><blockquote class="uncited"><div>Returns whether the user(s) using the given nickname is recognized as the owner of the nickname.  The response has this format:<br><br><em class="text-italics">nickname status-code</em><br><br>where nickname is the nickname sent with the command, and status-code is one of the following:<br><br>0 - no such user online or nickname not registered<br>1 - user not recognized as nickname's owner<br>2 - user recognized as owner via access list only<br>3 - user recognized as owner via password identification</div></blockquote>What I need is an tcl code to send through /msg something like "<strong class="text-strong">/msg nickserv status JohnDoe</strong>", and the Nickserv answer needs to be stored on some variable (Nickserv always answer like "<strong class="text-strong">JohnDoe 3</strong>"). Then I can would use this number (0, 1, 2 or 3) after.<br><br>Thanks in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12565">Hoden</a> — Mon Sep 21, 2015 4:41 pm</p><hr />
]]></content>
	</entry>
	</feed>
