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

	<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>2004-11-03T03:33:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Stealthx]]></name></author>
		<updated>2004-11-03T03:33:07-04:00</updated>

		<published>2004-11-03T03:33:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42494#p42494</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42494#p42494"/>
		<title type="html"><![CDATA[picurlcheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42494#p42494"><![CDATA[
<blockquote class="uncited"><div>For me the script do nothing =)<br>But i have ssen some user who used this script and for they it works perfect <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>Then what for you asking dumb question when to you, the script do nothing? You are just wasting our time answering you, dumb kid. Scram off!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5493">Stealthx</a> — Wed Nov 03, 2004 3:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-11-02T15:57:04-04:00</updated>

		<published>2004-11-02T15:57:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42484#p42484</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42484#p42484"/>
		<title type="html"><![CDATA[picurlcheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42484#p42484"><![CDATA[
Oh please go away if your just going to complain and refuse to do anything at all.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Nov 02, 2004 3:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[[R]]]></name></author>
		<updated>2004-11-02T14:22:35-04:00</updated>

		<published>2004-11-02T14:22:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42483#p42483</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42483#p42483"/>
		<title type="html"><![CDATA[picurlcheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42483#p42483"><![CDATA[
<blockquote class="uncited"><div>in whatever channel u wan the bot to check for and this tcl only bans user for messaging picture-urls and not checks the pic for viruses..</div></blockquote>*g*<br>For me the script do nothing =)<br>But i have ssen some user who used this script and for they it works perfect <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br><br>@MeTroiD: great... plz dont spam! Off-topic kid <br><br>Greets<br><br>[R]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4899">[R]</a> — Tue Nov 02, 2004 2:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2004-11-02T12:26:57-04:00</updated>

		<published>2004-11-02T12:26:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42480#p42480</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42480#p42480"/>
		<title type="html"><![CDATA[picurlcheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42480#p42480"><![CDATA[
mh... just for further problems: "nothing happens" is not the best error description <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>hm. anyway... i don't really care <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Tue Nov 02, 2004 12:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stealthx]]></name></author>
		<updated>2004-11-02T03:04:32-04:00</updated>

		<published>2004-11-02T03:04:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42476#p42476</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42476#p42476"/>
		<title type="html"><![CDATA[picurlcheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42476#p42476"><![CDATA[
Meltdowns Picture-URL-Checker V0.3 works perfectly well with mi... and I'm still using it right now. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Type -<br><blockquote class="uncited"><div>!piccheck on</div></blockquote>in whatever channel u wan the bot to check for and this tcl only bans user for messaging picture-urls and not checks the pic for viruses...  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5493">Stealthx</a> — Tue Nov 02, 2004 3:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-11-02T02:33:48-04:00</updated>

		<published>2004-11-02T02:33:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42475#p42475</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42475#p42475"/>
		<title type="html"><![CDATA[picurlcheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42475#p42475"><![CDATA[
Try finding the damn answer yourself, You've done nothing to solve your other problems either.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Nov 02, 2004 2:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[[R]]]></name></author>
		<updated>2004-11-01T15:26:37-04:00</updated>

		<published>2004-11-01T15:26:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42466#p42466</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42466#p42466"/>
		<title type="html"><![CDATA[picurlcheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42466#p42466"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>################################################################## Meltdowns Picture-URL-Checker V0.3 (07-03-2004)               ## http://scripts.udp.at                                         ##                                                               ## Bans for messaging picture-urls (.jpg,.gif, etc)              ## which are NOT pictures (they are mostly viruses then)         ##                                                               ## Contact: meltdown@gmx.at | #meltdown on quakenet              ##                                                               ## As i have seen a few of my scripts with different credits:    ## STOP THAT. IT SUCKS, ITS LAME, etc..                          ##                                                               ## If you want to have a script signed with your name,## code it yourself ffs!                                         ##                                                               #################################################################### Install:# Append this tcl to your bots config# Join the channel you want to check and type "!piccheck on"# You can always check the status by typing "!piccheck"#################################################################### New in 0.3:## Changed jpg-check#################################################################### New in 0.2:# # Added PNG-support# Changed regexp for url-detection##################################################################set piccheck(bantype) 1# 1:*!ident@subnet, 2:*!ident@IP, 3:*!ident@IP, 4:nick!*@*set piccheck(meltsad) 0# If you use the script "Meltsdowns Anti-Advertise" you may set# this to 1. picurlcheck will then use the kickcounter from meltsad.# (For kickmessage)set piccheck(version) "0.2"# internal purpose############################CODE#################################bind pubm - * urlcheckbind pub n|m !piccheck piccheck_switchsetudef flag piccheckproc urlcheck { nick uhost hand chan str } {global piccheckset urlcheck(ext) {jpg jpe jpeg gifpng}if {![regexp {((?:http://|www\.)+[^ ]+)} $str str]} { return 0 }set extension ""regsub -all -- {(http://)+} $str "" strregexp {(www.)?[A-z|0-9|\-|\.|\_]*\.[A-z]{2,3}} $str hostregexp {[/]+(.)*} $str urlregexp {[A-z]{3,4}$} $str extensionset ispic 0foreach i $urlcheck(ext) {if {[string match -nocase $extension $i]} {set ispic 1}}if {$ispic != 1} { return 0 } set linecheck "[getdata $host $url $chan]"set ispic 0if {[string match *error* $linecheck]} { set ispic 1 }if {[string match "*ÿØÿ*" $linecheck]} { set ispic 2 }        if {[string match "*GIF89*" $linecheck]} { set ispic 3 }if {[string match "*GIF87*" $linecheck]} { set ispic 3 }if {[string match "*[format %c [scan 89 %x]]PNG*" $linecheck]} { set ispic 4 }if {[string match "*&lt;html&gt;*" $linecheck]} { set ispic 0 }# putlog "ISPIC: $ispic"# putlog "protected : [protected_user $nick $hand]"if {[protected_user $nick $hand]} { return 0 }if {$ispic == 0} {set banmask [notapic_banmask $nick $uhost]if {$piccheck(meltsad) == 1} { global meltadsset meltads(alt_message) "URL is not a picture - Possible Virus detected -"chan_ban $nick $banmask $chan $str} else {                notapic_ban $nick $banmask $chan "URL is not a picture - Possible Virus detected" }putserv "PRIVMSG $chan :[string replace $str [expr [string length $str] /2] [expr [string length $str] /2] ?] is NOT a picture. For you security...Dont click!"putlog "Bad URL detected by $nick in $chan ($str)"}}proc getdata { host url chan } {global sockif {[string match "*error*" [open_socket $host $url $chan]]} { return "error"}gets $sock lineif {[string match -nocase "*HTTP/1.? 301 Moved*" $line]} { while {![eof $sock]} {gets $sock lineif {[string match -nocase "*Location*" $line]} {set url [lindex [split $line] 1]regsub -all -- {(http://)+} $url "" urlregexp {[/]+(.)*} $url urlclose $sockopen_socket $host $url $changets $sock linebreak}}}if {![string match "HTTP/1.? 200 OK" $line]} { close $sock ;return "error($line)" }while {(![eof $sock]) &amp;&amp; ([string length $line] != 0)} {gets $sock line#if {[string match -nocase *content*type* $line]} {putlog "$line" }}gets $sock lineclose $sockreturn $line}proc open_socket { host url chan } {global sock# putlog "Host: $host - url : $url"        if {[catch {set sock [socket [string map -nocase {www. ""} $host] 80] } sockerror]} {                putserv "PRIVMSG $chan: Error: $sockerror"                return "error: $sockerror"        } else {                puts $sock "GET $url HTTP/1.1"                puts $sock "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"                puts $sock "Accept :*/*"                puts $sock "Host: $host"                puts $sock ""                flush $sock}}proc notapic_banmask {nick uhost} { set account [string range $uhost 0 [expr [string last @ $uhost] -1]] set domain [string range $uhost [expr [string last @ $uhost] +1] end] set sitemask "*!*[string trimleft [maskhost $uhost] *!]" switch $::piccheck(bantype) {  1 {set sitemask "*!*[string trimleft [maskhost $uhost] *!]"}  2 {set sitemask "*!*$uhost"}  3 {set sitemask "*!*@$domain"}  4 {set sitemask "$nick!*@*"}                        }regsub -all -- {~} $sitemask "" sitemaskreturn $sitemask}proc notapic_ban {nick banmask chan text} {putserv "MODE $chan +b $banmask"putserv "KICK $chan $nick :$text"} proc piccheck_switch {nick uhost hand chan text} { global piccheck        switch [lindex $text 0] {                on {    channel set $chan +piccheck                        putserv "PRIVMSG $chan :Melts Pic-URL-Checker $piccheck(version) activated"                }                off {                        channel set $chan -piccheck                        putserv "PRIVMSG $chan :Melts Pic-URL-Checker $piccheck(version) deactivated"                }                "" {                        if {[lsearch -exact [channel info $chan] +piccheck] &gt; -1} {                                putserv "PRIVMSG $chan :Melts Pic-URL-Checker is currently ACTIVATED."                        } else {putserv "PRIVMSG $chan :Melts Pic-URL-Checker is currently DEACTIVATED."                        }                }                default { putserv "NOTICE $nick :Commands \: on|off - or nothing for status" }        }}proc protected_user {nick hand} {if {$nick == $::botnick} { return 1 }if {[matchattr $hand n]} { return 1 }if {[matchattr $hand b]} { return 1 }return 0}putlog "Melts Picture-URL-Checker $piccheck(version) loaded..."</code></pre></div>Maybe you can help me.<br>I know this thread is old but i have still the problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4899">[R]</a> — Mon Nov 01, 2004 3:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-19T08:49:37-04:00</updated>

		<published>2004-09-19T08:49:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41005#p41005</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41005#p41005"/>
		<title type="html"><![CDATA[picurlcheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41005#p41005"><![CDATA[
Things to do at first if a script doesn't work.<br><br>1. Contact the author.<br>2. If no reply from the author paste the script here and define the problem.<br>3. We will try to help as much as we can do not *expect*  that your problem will be fixed most likely.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Sep 19, 2004 8:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-09-19T07:18:20-04:00</updated>

		<published>2004-09-19T07:18:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41001#p41001</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41001#p41001"/>
		<title type="html"><![CDATA[picurlcheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41001#p41001"><![CDATA[
If im not mistaken, it checks url's when a url with a jpg is posted.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Sun Sep 19, 2004 7:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[[R]]]></name></author>
		<updated>2004-09-18T13:36:54-04:00</updated>

		<published>2004-09-18T13:36:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40992#p40992</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40992#p40992"/>
		<title type="html"><![CDATA[picurlcheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40992#p40992"><![CDATA[
Hello guys<br><br>I have downloaded a script and installed it but it dosent work...<br><br><br><a href="http://scripts.udp.at/index.php?action=scripts&amp;detailed=4" class="postlink">http://scripts.udp.at/index.php?action= ... detailed=4</a><br><br>The link .. I mean picurlcheck a script that checks the pic for virusses..<br>But when I type !piccheck (on) (in channel) nothing happens..<br><br>Settings:<br><div class="codebox"><p>Code: </p><pre><code>#################################################################set piccheck(bantype) 1# 1:*!ident@subnet, 2:*!ident@IP, 3:*!ident@IP, 4:nick!*@*set piccheck(meltsad) 0# If you use the script "Meltsdowns Anti-Advertise" you may set# this to 1. picurlcheck will then use the kickcounter from meltsad.# (For kickmessage)set piccheck(version) "0.2"# internal purpose</code></pre></div>Whats wrong?!<br><br>Greets&amp;Thx<br><br>[R]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4899">[R]</a> — Sat Sep 18, 2004 1:36 pm</p><hr />
]]></content>
	</entry>
	</feed>
