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

	<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-06-25T16:05:03-04:00</updated>

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

		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-06-25T16:05:03-04:00</updated>

		<published>2008-06-25T16:05:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83729#p83729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83729#p83729"/>
		<title type="html"><![CDATA[Script Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83729#p83729"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set query "http://www.twor.be/g/irc/il_box.php?auser=[string map {" " "%20"} $tag]&amp;buser=[string map {" " "_"} $tag]&amp;cuser=[string map {"_" "%20"} [string map {" " "_"} $tag]]"#defeat-word-wrap###############################################################################################################################################################</code></pre></div>Fix this line to look _exactly_ like mine does above.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Wed Jun 25, 2008 4:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jeroen_005]]></name></author>
		<updated>2008-06-25T11:03:23-04:00</updated>

		<published>2008-06-25T11:03:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83723#p83723</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83723#p83723"/>
		<title type="html"><![CDATA[Script Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83723#p83723"><![CDATA[
Okey i have changed the script in the following it doesnt work anymore when i typ "!il ajax ruub" if you type 'il ajax_ruub' it works. does anyone know how this comes?<br><div class="codebox"><p>Code: </p><pre><code># twor.be package require http setudef flag twor bind pub - !il twor proc twor {nick uhost handle chan tag} {    if {[lsearch -exact [channel info $chan] +twor] == -1} { return }    if {$tag == ""} {       putserv "privmsg $chan :\002FOUT:\002 Gelieve een nickname of userid op te geven."       return 0    }    set query "http://www.twor.be/g/irc/il_box.php?auser=[string map {" " "%20"} $tag]&amp;buser=[string map {" " "_"} $tag]&amp;cuser=[string map {"_" "%20"} $tag]"    # if you own the site, using this agent string will let you know in    # your weblogs how much bandwidth the bot consumes and how    # often attempts to scrape are made. Otherwise change to "mozilla"    set ua "Eggdrop twor.be script"    set http [::http::config -useragent $ua -useragent "utf-8"]    catch {set http [::http::geturl "$query" -timeout [expr 1000 * 5]]} error    if {[string match -nocase "*couldn't open socket*" $error]} {       putserv "privmsg $chan :\002FOUT:\002 :Socket Fout bij het openen van '$query'.. Probeer het zometeen nog een keer."       return 0    }    if {[string equal -nocase [::http::status $http] "timeout"]} {       putserv "privmsg $chan :\002FOUT:\002 De verbinding met de server is mislukt. Probeer het zometeen nog een keer."       return 0    }    set html [::http::data $http]    ::http::cleanup $http    regsub {(?:\n|\t|\v|\r)} $html "" html    if {[regexp {@@start(.+?)@@end} $html - user]} {       putserv "privmsg $chan :Het IL van \002[string trim [lindex [split $user "+"] 0]]\002 is \002[string trim [lindex [split $user "+"] 1]]\002."      putserv "privmsg $chan :\002STATS: Gemiddelde:\002 [string trim [lindex [split $user "+"] 2]], \002Events:\002 [string trim [lindex [split $user "+"] 3]], \002Max:\002 [string trim [lindex [split $user "+"] 4]]. (afgelopen 31 dagen)"      return 1    } else {       putserv "privmsg $chan :\002FOUT:\002 De server kan uw vraag momenteel niet verwerken. Probeer het zometeen nog een keer."       return 0    } } putlog "Module loaded: SCRIPT: IL Box"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10007">jeroen_005</a> — Wed Jun 25, 2008 11:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jeroen_005]]></name></author>
		<updated>2008-06-25T08:56:21-04:00</updated>

		<published>2008-06-25T08:56:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83722#p83722</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83722#p83722"/>
		<title type="html"><![CDATA[Script Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83722#p83722"><![CDATA[
oooh thnxs <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br><span style="font-size:150%;line-height:116%"><span style="color:red"><strong class="text-strong">Speechles FTW <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> </strong></span></span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10007">jeroen_005</a> — Wed Jun 25, 2008 8:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-06-25T08:54:10-04:00</updated>

		<published>2008-06-25T08:54:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83721#p83721</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83721#p83721"/>
		<title type="html"><![CDATA[Script Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83721#p83721"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>... rest of code goes above here ...   if {[lsearch -exact [channel info $chan] +twor] == -1} { return }   if {$tag == ""} {      putserv "privmsg $chan :Gelieve een nickname of user id op te geven."      return 0   }   set query "http://www.twor.be/g/irc/il_box.php?auser=[string map {" " "%20"} $tag]&amp;buser=[string map {" " "_"} $tag]"... rest of code continues ...</code></pre></div>See what I added? Thats all you should need<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Wed Jun 25, 2008 8:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jeroen_005]]></name></author>
		<updated>2008-06-25T07:37:37-04:00</updated>

		<published>2008-06-25T07:37:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83720#p83720</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83720#p83720"/>
		<title type="html"><![CDATA[Script Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83720#p83720"><![CDATA[
Okey maybe a stupid question but how can i add an error message when a user don't define a nickname?<br><br>Somthing like: !il -&gt; Gelieve een nickname of user id op te geven.<br><br>I have tryed something like if {$user == $null} but that doesn't works :'(<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10007">jeroen_005</a> — Wed Jun 25, 2008 7:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-06-24T14:12:51-04:00</updated>

		<published>2008-06-24T14:12:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83707#p83707</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83707#p83707"/>
		<title type="html"><![CDATA[Script Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83707#p83707"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># twor.bepackage require httpsetudef flag tworbind pub - !il tworproc twor {nick uhost handle chan tag} {   if {[lsearch -exact [channel info $chan] +twor] == -1} { return }   set query "http://www.twor.be/g/irc/il_box.php?auser=[string map {" " "%20"} $tag]&amp;buser=[string map {" " "_"} $tag]"   # if you own the site, using this agent string will let you know in   # your weblogs how much bandwidth the bot consumes and how   # often attempts to scrape are made. Otherwise change to "mozilla"   set ua "Eggdrop twor.be script"   set http [::http::config -useragent $ua -useragent "utf-8"]   catch {set http [::http::geturl "$query" -timeout [expr 1000 * 5]]} error   if {[string match -nocase "*couldn't open socket*" $error]} {      putserv "privmsg $chan :Socket Fout bij het openen van '$query'.. Het moet omlaag.. :("      return 0   }   if {[string equal -nocase [::http::status $http] "timeout"]} {      putserv "privmsg $chan :Verbinding is een time-out."      return 0   }   set html [::http::data $http]   ::http::cleanup $http   regsub {(?:\n|\t|\v|\r)} $html "" html   if {[regexp {@@start(.+?)@@end} $html - user]} {      putserv "privmsg $chan :Het IL van \002[string trim [lindex [split $user "+"] 0]]\002 is \002[string trim [lindex [split $user "+"] 1]]\002."       return 1   } else {      putserv "privmsg $chan :Geen resultaat gevonden."      return 0   }}putlog "twor.be geladen."</code></pre></div>This works. Didn't notice you had carriage returns embedded. Newlines, Carriage returns, Tabs, and Vertical Tabs are now stripped prior to parsing.<blockquote class="uncited"><div>&lt;speechles&gt; !il jeron 005<br>&lt;sp33chy&gt; Het IL van <strong class="text-strong">jeron 005</strong> is <strong class="text-strong">Onbekend (Geen account gevonden op onze website)</strong>.<br>&lt;speechles&gt; !il jeroen 005<br>&lt;sp33chy&gt; Het IL van <strong class="text-strong">Jeroen_005</strong> is <strong class="text-strong">Vrijgesteld</strong>.</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Tue Jun 24, 2008 2:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jeroen_005]]></name></author>
		<updated>2008-06-24T11:18:43-04:00</updated>

		<published>2008-06-24T11:18:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83705#p83705</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83705#p83705"/>
		<title type="html"><![CDATA[Script Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83705#p83705"><![CDATA[
correct it's dutch<br><br>I have tried the script but it has the following output:<br><div class="codebox"><p>Code: </p><pre><code>[17:15:26] &lt;@Jeroen_005&gt; !il jeroen 005[17:15:26] &lt;@TWOR_LOG&gt; Het IL van</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10007">jeroen_005</a> — Tue Jun 24, 2008 11:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-06-22T22:17:33-04:00</updated>

		<published>2008-06-22T22:17:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83690#p83690</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83690#p83690"/>
		<title type="html"><![CDATA[Script Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83690#p83690"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># twor.bepackage require httpsetudef flag tworbind pub - !il tworproc twor {nick uhost handle chan tag} {   if {[lsearch -exact [channel info $chan] +twor] == -1} { return }   set query "http://www.twor.be/g/irc/il_box.php?auser=[string map {" " "%20"} $tag]&amp;buser=[string map {" " "_"} $tag]"   # if you own the site, using this agent string will let you know in   # your weblogs how much bandwidth the bot consumes and how   # often attempts to scrape are made. Otherwise change to "mozilla"   set ua "Eggdrop twor.be script"    set http [::http::config -useragent $ua -useragent "utf-8"]   catch {set http [::http::geturl "$query" -timeout [expr 1000 * 5]]} error   if {[string match -nocase "*couldn't open socket*" $error]} {      putserv "privmsg $chan :Socket Fout bij het openen van '$query'.. Het moet omlaag.. :("      return 0   }   if {[string equal -nocase [::http::status $http] "timeout"]} {      putserv "privmsg $chan :Connection is een time-out."      return 0   }   set html [::http::data $http]   ::http::cleanup $http   if {[regexp {@@start(.+?)@@end} $html - user]} {      putserv "privmsg $chan :Het IL van \002[lindex [split $user "+"] 0]\002 is \002[lindex [split $user "+"] 1]\002."      return 1   } else {      putserv "privmsg $chan :Geen resultaat gevonden."      return 0   }}putlog "twor.be geladen."</code></pre></div>Enjoy  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>.chanset #yourchan +twor on partyline<br>!il &lt;tag&gt; afterwards in #yourchan<br><br>note: assumed the language used is dutch. If I am mistaken just correct that dutch to what you desire..heh<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sun Jun 22, 2008 10:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jeroen_005]]></name></author>
		<updated>2008-06-22T07:54:25-04:00</updated>

		<published>2008-06-22T07:54:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83685#p83685</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83685#p83685"/>
		<title type="html"><![CDATA[Script Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83685#p83685"><![CDATA[
I new at TCL and would to know if it was possibel to get some data of my site when requested.<br><br>It should work as followd:<br><br>User types "!il <strong class="text-strong">jeroen 005</strong>" -&gt; TCL look for <a href="http://www.twor.be/g/irc/il_box.php?auser=jeroen%20005&amp;buser=jeroen_005" class="postlink">http://www.twor.be/g/irc/il_box.php?aus ... jeroen_005</a> -&gt; give the data back as following: "Het IL van <strong class="text-strong">Jeroen_005</strong> is <strong class="text-strong">Vrijgesteld</strong>."<br><br>As you see in TCL need to change the space into a _ and lookup for both nicknames with space and _.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10007">jeroen_005</a> — Sun Jun 22, 2008 7:54 am</p><hr />
]]></content>
	</entry>
	</feed>
