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

	<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>2008-02-06T18:41:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-02-06T18:41:38-04:00</updated>

		<published>2008-02-06T18:41:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80706#p80706</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80706#p80706"/>
		<title type="html"><![CDATA[Probably simple.. But. I cant do it..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80706#p80706"><![CDATA[
Replace<div class="codebox"><p>Code: </p><pre><code>) else {</code></pre></div>with<div class="codebox"><p>Code: </p><pre><code>} else {</code></pre></div>at line 11 in the getinfo procedure.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Feb 06, 2008 6:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rpope904]]></name></author>
		<updated>2008-02-06T17:43:41-04:00</updated>

		<published>2008-02-06T17:43:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80703#p80703</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80703#p80703"/>
		<title type="html"><![CDATA[Probably simple.. But. I cant do it..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80703#p80703"><![CDATA[
copied and pasted again, exactly as you had it, did a .rehash:<br><br>[16:42] &lt;x10Helper&gt; [16:43] Tcl error in file './eggdrop.conf':<br>[16:42] &lt;x10Helper&gt; [16:43] missing close-brace<br>[16:42] &lt;x10Helper&gt; while executing<br>[16:42] &lt;x10Helper&gt; "proc getinfo {nick uhost hand chan text} {<br>[16:42] &lt;x10Helper&gt; if {[isop $nick $chan]} {<br>[16:42] &lt;x10Helper&gt; if {$text == ""} {<br>[16:42] &lt;x10Helper&gt; putserv "privmsg $nick :Wrong syntax. \"GETINFO &lt;n..."<br>[16:42] &lt;x10Helper&gt; (file "scripts/uinfo2.tcl" line 8)<br>[16:42] &lt;x10Helper&gt; invoked from within<br>[16:42] &lt;x10Helper&gt; "source scripts/uinfo2.tcl"<br>[16:42] &lt;x10Helper&gt; (file "./eggdrop.conf" line 1342)<br>[16:42] &lt;x10Helper&gt; [16:43] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)<br>DCC session closed<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9680">rpope904</a> — Wed Feb 06, 2008 5:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rpope904]]></name></author>
		<updated>2008-02-06T17:39:38-04:00</updated>

		<published>2008-02-06T17:39:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80702#p80702</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80702#p80702"/>
		<title type="html"><![CDATA[Probably simple.. But. I cant do it..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80702#p80702"><![CDATA[
thats the one I tried, gonna give it another shot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9680">rpope904</a> — Wed Feb 06, 2008 5:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-02-06T17:20:44-04:00</updated>

		<published>2008-02-06T17:20:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80700#p80700</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80700#p80700"/>
		<title type="html"><![CDATA[Probably simple.. But. I cant do it..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80700#p80700"><![CDATA[
Try the edited version above and it'll work, promise.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Wed Feb 06, 2008 5:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rpope904]]></name></author>
		<updated>2008-02-06T16:12:43-04:00</updated>

		<published>2008-02-06T16:12:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80699#p80699</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80699#p80699"/>
		<title type="html"><![CDATA[Probably simple.. But. I cant do it..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80699#p80699"><![CDATA[
Yeah, the second one did cause an error..<br><br>[14:25] &lt;x10Helper&gt; [14:26] Tcl error in file './eggdrop.conf':<br>[14:25] &lt;x10Helper&gt; [14:26] missing close-brace<br>[14:25] &lt;x10Helper&gt; while executing<br>[14:25] &lt;x10Helper&gt; "proc getinfo2 {nick uhost hand chan text} {<br>[14:25] &lt;x10Helper&gt; if {[isop $nick $chan]} {<br>[14:25] &lt;x10Helper&gt; if {$text == ""} {<br>[14:25] &lt;x10Helper&gt; putserv "privmsg $nick :Wrong syntax. \"GETINFO &lt;..."<br>[14:25] &lt;x10Helper&gt; (file "scripts/uinfo2.tcl" line 9)<br>[14:25] &lt;x10Helper&gt; invoked from within<br>[14:25] &lt;x10Helper&gt; "source scripts/uinfo2.tcl"<br>[14:25] &lt;x10Helper&gt; (file "./eggdrop.conf" line 1342)<br>[14:25] &lt;x10Helper&gt; [14:26] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)<br>DCC session closed<br><br>On the first one, I changed the output on the site to one line because I had it printing a &lt;pre&gt; tag first, \n wont work with php echo, and I wasn't sure how the bot would handle a &lt;br&gt; tag on each line..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9680">rpope904</a> — Wed Feb 06, 2008 4:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2008-02-06T13:54:25-04:00</updated>

		<published>2008-02-06T13:54:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80696#p80696</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80696#p80696"/>
		<title type="html"><![CDATA[Probably simple.. But. I cant do it..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80696#p80696"><![CDATA[
You should modify info because it'll overwrite the default TCL proc like that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Wed Feb 06, 2008 1:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-02-06T17:26:11-04:00</updated>

		<published>2008-02-06T13:36:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80693#p80693</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80693#p80693"/>
		<title type="html"><![CDATA[Probably simple.. But. I cant do it..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80693#p80693"><![CDATA[
<blockquote class="uncited"><div>i've done a sample output here:<br><br><a href="http://rpope904.x10hosting.com/irc/test.php" class="postlink">http://rpope904.x10hosting.com/irc/test.php</a></div></blockquote><div class="codebox"><p>Code: </p><pre><code>if {[catch {package require http} error]} { putlog "HTTP package required '$error'" }bind pub - getinfo getinfo# GET Info# Grabs your server data, etc, etc#proc getinfo {nick uhost hand chan text} {  if {[isop $nick $chan]} {    if {$text == ""} {      putserv "privmsg $nick :Wrong syntax. "GETINFO &lt;nick&gt;""    } else {      set tok [http::geturl "http://www.somesite.com/somepage.php?login=[urlencode $text]"]      set html [http::data $tok]      http::cleanup $tok      regexp -nocase -- {cPanel Login:(.+?) Domain Name:(.+?) Hosting type:(.+?) Account type:(.+?) Suspended:(.+?) Server ID:(.+?)} $data -&gt; login domain type account suspended id       if {![info exists $login]} {        putserv "privmsg $nick :No info available for $text."      ) else {        putserv "privmsg $nick :[join [list $login $domain $type $account $suspended $id] ", "]"      }      }  } }# URL Encode# Encodes anything not a-zA-Z0-9 into %00 strings...Pimp-Style#proc urlencode {text} {  set url ""  foreach byte [split [encoding convertto utf-8 $text] ""] {    scan $byte %c i    if {$i &lt; 65 || $i &gt; 122} {      append url [format %%%02X $i]    } else {      append url $byte    }  }  return [string map {%3A : %2D - %2E . %30 0 %31 1 %32 2 %33 3 %34 4 %35 5 %36 6 %37 7 %38 8 %39 9 \[ %5B \\ %5C \] %5D \^ %5E \_ %5F \` %60} $url]}##defeat-word-wrap####################################################################################################################################################################</code></pre></div>Try this, since all your stuff is on one line Maiki's regexp's will be very greedy and not do what you want. I've also used putserv for messaging, eliminated all those returns, and stopped it from giving a "you have no access" response if a non-op tries to trigger the script, no response is better. Also included is a pimp-style url encoder.. keke <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <br><br>@metroid, how does it look now?<br><br>edit: corrected missing " which lead to the tcl interpreter giving the missing closing brace error, is now corrected.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Wed Feb 06, 2008 1:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Maiki]]></name></author>
		<updated>2008-02-06T06:29:41-04:00</updated>

		<published>2008-02-06T06:29:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80679#p80679</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80679#p80679"/>
		<title type="html"><![CDATA[Probably simple.. But. I cant do it..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80679#p80679"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind pub - getinfo info ...snipped irrelevant parts...proc getinfo {nick uhost hand chan arg} {</code></pre></div>see the problem? change the part below and it will properly bind getinfo to the proc getinfo<div class="codebox"><p>Code: </p><pre><code>bind pub - getinfo getinfo </code></pre></div></div></blockquote>Oopsie, i noticed it to late i guess :p<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9009">Maiki</a> — Wed Feb 06, 2008 6:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-02-05T23:18:14-04:00</updated>

		<published>2008-02-05T23:18:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80670#p80670</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80670#p80670"/>
		<title type="html"><![CDATA[Probably simple.. But. I cant do it..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80670#p80670"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - getinfo info ...snipped irrelevant parts...proc getinfo {nick uhost hand chan arg} {</code></pre></div>see the problem? change the part below and it will properly bind getinfo to the proc getinfo<div class="codebox"><p>Code: </p><pre><code>bind pub - getinfo getinfo </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Tue Feb 05, 2008 11:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rpope904]]></name></author>
		<updated>2008-02-05T21:51:51-04:00</updated>

		<published>2008-02-05T21:51:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80669#p80669</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80669#p80669"/>
		<title type="html"><![CDATA[Probably simple.. But. I cant do it..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80669#p80669"><![CDATA[
i've done a sample output here:<br><br><a href="http://rpope904.x10hosting.com/irc/test.php" class="postlink">http://rpope904.x10hosting.com/irc/test.php</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9680">rpope904</a> — Tue Feb 05, 2008 9:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rpope904]]></name></author>
		<updated>2008-02-05T20:00:50-04:00</updated>

		<published>2008-02-05T20:00:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80667#p80667</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80667#p80667"/>
		<title type="html"><![CDATA[Probably simple.. But. I cant do it..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80667#p80667"><![CDATA[
caused an error:<br><br>[18:57] &lt;x10Helper&gt; [18:58] Tcl error [info]: bad option "rpope904": must be args, body, cmdcount, commands, complete, default, exists, functions, globals, hostname, level, library, loaded, locals, nameofexecutable, patchlevel, procs, script, sharedlibextension, tclversion, or vars<br><br>any ideas? thanks again.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9680">rpope904</a> — Tue Feb 05, 2008 8:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rpope904]]></name></author>
		<updated>2008-02-05T16:26:27-04:00</updated>

		<published>2008-02-05T16:26:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80659#p80659</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80659#p80659"/>
		<title type="html"><![CDATA[Probably simple.. But. I cant do it..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80659#p80659"><![CDATA[
Very nice, thank you alot!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9680">rpope904</a> — Tue Feb 05, 2008 4:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Maiki]]></name></author>
		<updated>2008-02-06T06:29:58-04:00</updated>

		<published>2008-02-05T06:19:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80647#p80647</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80647#p80647"/>
		<title type="html"><![CDATA[Probably simple.. But. I cant do it..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80647#p80647"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {[catch {package require http} error]} { putlog "Failed loading error= $error" }bind pub - getinfo infoproc info {nick uhost hand chan arg} {if {![isop $nick $chan]} { putmsg $chan "No acces to use this script"; return }if {$arg == ""} { putmsg $chan "Wrong syntax. \"GETINFO nick\""; return }set url "http://www.somesite.com/somepage.php?login=$arg"set tok [http::geturl $url]set data [http::data $tok]http::cleanup $tokregexp -- {cPanel Login:(.+?)} $data -&gt; loginregexp -- {Domain Name:(.+?)} $data -&gt; domainregexp -- {Hosting type:(.+?)} $data -&gt; typeregexp -- {Account type:(.+?)} $data -&gt; accountregexp -- {Suspended:(.+?)} $data -&gt; suspendedregexp -- {Server ID:(.+?)} $data -&gt; idif {![info exists ::login]} { putmsg $chan "No info available"; return }putmsg $nick "$login,$domain,$type,$account,$suspended,$id"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9009">Maiki</a> — Tue Feb 05, 2008 6:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rpope904]]></name></author>
		<updated>2008-02-04T19:49:03-04:00</updated>

		<published>2008-02-04T19:49:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80640#p80640</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80640#p80640"/>
		<title type="html"><![CDATA[Probably simple.. But. I cant do it..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80640#p80640"><![CDATA[
Sorry i've taken so long.. they are going to change it up alittle, we haven't got the site done yet, but now it's going to be like the bot goes to <a href="http://www.somesite.com/somepage.php?login=LOGIN" class="postlink">http://www.somesite.com/somepage.php?login=LOGIN</a> where the person messages or notices the bot with GETINFO &lt;nick&gt;, i'd like to restrict this to ops on a channel, but thats not really required. basically, the site is going to output like this now: (no html tags)<br>cPanel Login: &lt;login&gt;<br>Domain Name: &lt;domain&gt;<br>Hosting type &lt;type&gt;<br>Account type: &lt;type&gt;<br>Suspended: Yes/No<br>Server ID: &lt;id&gt;<br><br><br> Could you possibly get a simple script that just reads the lines of the page, and sends them back to the person who requested it in either privmsg or notice?<br><br><br>  Thanks for your help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9680">rpope904</a> — Mon Feb 04, 2008 7:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Maiki]]></name></author>
		<updated>2008-02-03T16:03:07-04:00</updated>

		<published>2008-02-03T16:03:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80613#p80613</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80613#p80613"/>
		<title type="html"><![CDATA[Probably simple.. But. I cant do it..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80613#p80613"><![CDATA[
If you would give me the website.. Or the page of the soucrce, i will make it for you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9009">Maiki</a> — Sun Feb 03, 2008 4:03 pm</p><hr />
]]></content>
	</entry>
	</feed>
