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

	<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>2006-07-20T05:52:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Legionar]]></name></author>
		<updated>2006-07-20T05:52:45-04:00</updated>

		<published>2006-07-20T05:52:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64736#p64736</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64736#p64736"/>
		<title type="html"><![CDATA[vHost-Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64736#p64736"><![CDATA[
The script works fine, but I need additionally still a TLD-check. If the TLD is true, register the new vHost, if not - then not <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>TLD's:<br><div class="codebox"><p>Code: </p><pre><code>set tldcheck { *.*.ac *.*.ac.uk *.*.ad *.*.ae *.*.af *.*.ag  *.*.ai *.*.al *.*.am *.*.an *.*.ao *.*.aq *.*.ar *.*.as *.*.at *.*.au *.*.aw *.*.az *.*.ba *.*.bb *.*.bd *.*.be *.*.bf *.*.bg *.*.bh *.*.bi *.*.bj *.*.bm *.*.bn *.*.bo *.*.br *.*.bs *.*.bt *.*.bv *.*.bz *.*.ca *.*.cc *.*.cd *.*.cf *.*.cg *.*.ch *.*.ci *.*.ck *.*.cl *.*.cm *.*.cn *.*.co *.*.co.uk *.*.com *.*.cr *.*.cs *.*.cu *.*.cy *.*.cz *.*.de *.*.dj *.*.dk *.*.dm *.*.do *.*.dz *.*.ec *.*.edu *.*.ee *.*.eg *.*.eh *.*.er *.*.es *.*.et *.*.fi *.*.fj *.*.fk *.*.fm *.*.fo *.*.fr *.*.biz *.*.coop *.*.info *.*.name *.*.pro }</code></pre></div><br>The working script without the TLD-check:<br><div class="codebox"><p>Code: </p><pre><code>set channel "#vhost"set operid "vhostagent"set operpass "ircxvhostagents" bind evnt - init-server operbind pub -|- !vhost vhostbind join -|- * joinnoticeproc oper init-server {putserv "OPER $::operid $::operpass"}proc joinnotice {noticenick noticehost noticehandle noticechan } { if { $noticechan == $::channel } {   putserv "NOTICE $noticenick Willkommen im $noticechan!"   putserv "NOTICE $noticenick Du brauchst einen registrierten Nicknamen, um eine vHost-Registration ausführen zu können!"   putserv "NOTICE $noticenick Um deinen Host zu ändern, tippe: !vhost gewünschter.vhost.ch - danach erhälst du eine Nachricht."  }}proc vhost {vhostnick vhosthost vhosthand vhostchan vhosttext} { if { $vhostchan == $::channel } {   checkvhost $vhostnick $vhosttext }}set badwords { *&lt;censored&gt;* *-.-* *@* *g0v* *admin* *serv* *staff* *ircop* *staff* *support* *helpop* *oper* *[censored]* *gay* *fag* *dick* *suck* *[censored]* *asshole* *zub* *bitch* *cock* *[censored]* *whore* *slut* *fartknocker* *ass* *bastard* *nigger* *pussy* *dickhead* *nigga* *piss* *maricon* *shithead* *prick* *sucks* *dicks* *pricks* *.htm* *www.* *#* *channel* *sex* *ass* *trick* *fuk* *azz* *hail* *hitler* *gov* *mil* *cyberarmy* *cia* *fbi* *nsa* *dod* }proc checkvhost { checknick vhostcheck } { if {[string match "*.*.*" [string tolower $vhostcheck]]} {  set temp 0  set results 0   #$temp&lt;=X X = number of space delimited tokens in the badwords variable.   while {$temp&lt;=47} {     foreach x [string tolower $::badwords] {     if {[string match $x [string tolower $vhostcheck]]} {     incr results     }    }    incr temp   }   unset temp   if { $results &gt; 0 } {   putserv "NOTICE $checknick Dein vHost $vhostcheck wurde nicht geändert. Der vHost ist nicht zugelassen."   } else {   putserv "GLOBOPS $checknick hat seinen vHost geändert zu: '$vhostcheck'"   putserv "chghost $checknick $vhostcheck"   putserv "NOTICE $checknick Dein vHost wurde zu '$vhostcheck' geändert"   putserv "PRIVMSG hostserv set $checknick $vhostcheck"   putserv "NOTICE $checknick Um den neuen vHost zu aktivieren, brauchst du lediglich noch '/msg hostserv on' einzugeben."   }  } else {  putserv "NOTICE $checknick Du musst mindestens zwei Punkte '.' in denem vHost benutzen. Beispiel: 'example-vhost.chat.net'"  }}</code></pre></div><br>Sorry for my bad English <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7987">Legionar</a> — Thu Jul 20, 2006 5:52 am</p><hr />
]]></content>
	</entry>
	</feed>
