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

	<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>2007-08-09T10:58:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-08-09T10:58:15-04:00</updated>

		<published>2007-08-09T10:58:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75158#p75158</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75158#p75158"/>
		<title type="html"><![CDATA[Script to call a php-script but not grabbing a parameter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75158#p75158"><![CDATA[
You should be able to use the notc-binding to capture notices from your chanserv, I suppose.<br><br>Rough example to illustrate how to do it:<div class="codebox"><p>Code: </p><pre><code>bind notc - "*" notcprocproc notcproc {nick uhost hand text {dest ""}} { if {$dest == ""} {set dest $::botnick} if {[string equal -nocase $nick "ChanServ"]} {  #Got a reply from nickserv, response is within $text  #Extract the relevant info, and insert it into your url.. }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Aug 09, 2007 10:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bitto]]></name></author>
		<updated>2007-08-09T02:59:45-04:00</updated>

		<published>2007-08-09T02:59:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75154#p75154</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75154#p75154"/>
		<title type="html"><![CDATA[Script to call a php-script but not grabbing a parameter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75154#p75154"><![CDATA[
<blockquote class="uncited"><div>The question is, how are you getting the status at all? If you're trying to get the status from a webpage, obviously you cannot use a url requiring the status *beforehand*  <br><br><a href="http://mysite/irckey.php?nick=$nick&amp;status=$userstatus" class="postlink">http://mysite/irckey.php?nick=$nick&amp;status=$userstatus</a><br><br>That expects you to already have the status when you make the geturl query.</div></blockquote>No.<br><br>I need the IRC-Status of the User, not from the Webpage (that would be much easier)<br><br>I try to get the Status from here:<br><br><em class="text-italics">proc getnick {nick host handle chan} {<br> putquick "PRIVMSG nickserv :status $nick"<br>} </em><br><br>because I need to know, if a user is registered AND identified. I pass this Information later to the http-call to sort out the correct response (what is later in $line)<br><br>The only thing I need to solve is the response from <strong class="text-strong">putquick "PRIVMSG nickserv :status $nick"</strong> for further use, but I did not get it :-/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9205">Bitto</a> — Thu Aug 09, 2007 2:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-08-08T23:34:18-04:00</updated>

		<published>2007-08-08T23:34:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75153#p75153</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75153#p75153"/>
		<title type="html"><![CDATA[Script to call a php-script but not grabbing a parameter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75153#p75153"><![CDATA[
The question is, how are you getting the status at all? If you're trying to get the status from a webpage, obviously you cannot use a url requiring the status *beforehand*  <br><br><a href="http://mysite/irckey.php?nick=$nick&amp;status=$userstatus" class="postlink">http://mysite/irckey.php?nick=$nick&amp;status=$userstatus</a><br><br>That expects you to already have the status when you make the geturl query.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Wed Aug 08, 2007 11:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bitto]]></name></author>
		<updated>2007-08-07T13:00:40-04:00</updated>

		<published>2007-08-07T13:00:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75130#p75130</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75130#p75130"/>
		<title type="html"><![CDATA[Script to call a php-script but not grabbing a parameter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75130#p75130"><![CDATA[
thx for answer..<br><br>so that means, I have nothing in $text...<br><br>I thinked, that proc getnick with the call putquick "PRIVMSG nickserv :status $nick" give me the response text where the "STATUS nick whatever" is in..I am wrong...<br><br>How do I get this response then into $text?<br><br>TCL is brandnew to me and while I am coding PHP since ages, I feel like a n00b to this..:-/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9205">Bitto</a> — Tue Aug 07, 2007 1:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-08-07T12:51:45-04:00</updated>

		<published>2007-08-07T12:51:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75128#p75128</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75128#p75128"/>
		<title type="html"><![CDATA[Script to call a php-script but not grabbing a parameter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75128#p75128"><![CDATA[
How are you getting the status before calling geturl?  I'm assuming your php page is where you get the user status, but, the line you're using requires the var $userstatus before getting it from the webpage?<br><br>Otherwise, the status is always 0, as set in the global var "set userstatus"<br><br>The var $text will only contain whatever text you're passing along to the proc from the pub bind.<br><br>If your geturl only required a nick, then yeah you could get the status from that webpage and then do the other stuff in the proc to test it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Tue Aug 07, 2007 12:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bitto]]></name></author>
		<updated>2007-08-07T10:00:55-04:00</updated>

		<published>2007-08-07T10:00:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75121#p75121</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75121#p75121"/>
		<title type="html"><![CDATA[Script to call a php-script but not grabbing a parameter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75121#p75121"><![CDATA[
Hi,<br><br>after searching 4 days the forums and trying a few code-snippets, I am giving up and need some help on a tiny script.<br><br>1. I call a php-script:<br><br><a href="http://mysite/irckey.php?nick=$nick&amp;status=$userstatus" class="postlink">http://mysite/irckey.php?nick=$nick&amp;status=$userstatus</a><br><br>I got the nick but not the Status.<br><br>The Script:<div class="codebox"><p>Code: </p><pre><code>package require httpbind pub - !getkey get_keyset userstatus "0" proc getnick {nick host handle chan} { putquick "PRIVMSG nickserv :status $nick" }proc get_key {nick host handle chan text} {  global botnick getnick userstatus  if {([string match -nocase "STATUS*3" $text])} {  set userstatus "3"   }  if {([string match -nocase "STATUS*1" $text])} {  set userstatus "1"   }  if {([string match -nocase "STATUS*0" $text])} {  set userstatus "0"   }set data [::http::geturl http://mysite/getkey.php?nick=$nick&amp;status=$userstatus]  foreach line [split [::http::data $data] \n] { putquick "NOTICE $nick :$line"}  ::http::cleanup $data } putlog "Key Announcer loaded"</code></pre></div>It works without $userstatus but to prevent users for doing a simple nickchange, call !getkey before identify, I need to be shure, that the user is identified. STATUS 3 is that one, that provides the key, all other will just tell the user, that he has to identify before trigger.<br><br>I am absolute shure, that I have a mistake, because "set userstatus 'x'" seems to be empty. But I can't find it really...<br><br>can someone give me a hand with this please?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9205">Bitto</a> — Tue Aug 07, 2007 10:00 am</p><hr />
]]></content>
	</entry>
	</feed>
