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

	<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>2003-12-19T09:46:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-19T09:46:56-04:00</updated>

		<published>2003-12-19T09:46:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31599#p31599</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31599#p31599"/>
		<title type="html"><![CDATA[Need help writting small protection tcl.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31599#p31599"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set victimhost [maskhost *$uhost]</code></pre></div>this returns *!*<a href="mailto:ident@xx.xx.xx">ident@xx.xx.xx</a>.*<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Dec 19, 2003 9:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2003-12-18T17:01:32-04:00</updated>

		<published>2003-12-18T17:01:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31582#p31582</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31582#p31582"/>
		<title type="html"><![CDATA[Need help writting small protection tcl.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31582#p31582"><![CDATA[
How would I go about changing the ban mask to *!*ident@*partial host ?<br><br>I really appreciate the help I'v got it working and added a bit onto it with other modes and stuff its comong alone well works fine with the current ban mask would just like to change it up a bit.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Thu Dec 18, 2003 5:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-12-16T15:59:17-04:00</updated>

		<published>2003-12-16T15:59:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31523#p31523</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31523#p31523"/>
		<title type="html"><![CDATA[Need help writting small protection tcl.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31523#p31523"><![CDATA[
Yup. Forgot to remove it as you've tiped me before <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Didn't remembered about it.. seesh!  <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=187">caesar</a> — Tue Dec 16, 2003 3:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-16T14:19:49-04:00</updated>

		<published>2003-12-16T14:19:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31518#p31518</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31518#p31518"/>
		<title type="html"><![CDATA[Need help writting small protection tcl.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31518#p31518"><![CDATA[
<blockquote class="uncited"><div>Yes, noticed that myself.. replace the "scan $uhost "%\[^@\]@%s" host " lines with: scan $uhost "%\[^@\]@%s" user host</div></blockquote>Or...<div class="codebox"><p>Code: </p><pre><code>scan $uhost {%*[^@]@%s} host</code></pre></div> .. which is what I think you meant initially (you just left that * out) <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Dec 16, 2003 2:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-12-16T12:33:48-04:00</updated>

		<published>2003-12-16T12:33:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31503#p31503</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31503#p31503"/>
		<title type="html"><![CDATA[Need help writting small protection tcl.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31503#p31503"><![CDATA[
Yes, noticed that myself.. replace the "scan $uhost "%\[^@\]@%s" host " lines with: scan $uhost "%\[^@\]@%s" user host<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Dec 16, 2003 12:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2003-12-15T20:07:08-04:00</updated>

		<published>2003-12-15T20:07:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31477#p31477</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31477#p31477"/>
		<title type="html"><![CDATA[Need help writting small protection tcl.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31477#p31477"><![CDATA[
Tcl error [protect:ban]: different numbers of variable names and field specifiers<br><br><br>Is the error I keep getting when directly pasting only your code and running it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Mon Dec 15, 2003 8:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-12-15T13:31:56-04:00</updated>

		<published>2003-12-15T13:31:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31461#p31461</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31461#p31461"/>
		<title type="html"><![CDATA[Need help writting small protection tcl.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31461#p31461"><![CDATA[
try this one..<div class="codebox"><p>Code: </p><pre><code>bind mode - "* +b" protect:banproc protect:ban {nick uhost hand chan mc ban} {  if {![botisop $chan]} {    return  }  if {[string match -nocase $ban $::botname]} {    if {[matchattr $hand $::theflag]} {      putquick "MODE $chan -b $ban"      return    }    scan $uhost "%\[^@\]@%s" host    putquick "MODE $chan -bo+b $ban $nick *!*@$host"    newchanban $chan *!*@$host Moron "Don't place bans that matches me moron!" 1440    return  }  foreach luser [chanlist $chan $::theflag] {    if {[string match -nocase $ban $luser![getchanhost $luser $chan]]} {      if {[matchattr $hand mn|mn $chan]} {        putquick "MODE $chan -b $ban"        return      }      scan $uhost "%\[^@\]@%s" host      putquick "MODE $chan -bo+b $ban $nick *!*@$host"      newchanban $chan *!*@$host Moron "Don't place bans that matches one of my friends moron!" 1440    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Dec 15, 2003 1:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-15T11:30:25-04:00</updated>

		<published>2003-12-15T11:30:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31451#p31451</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31451#p31451"/>
		<title type="html"><![CDATA[Need help writting small protection tcl.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31451#p31451"><![CDATA[
$Victimhost returns ident@host of the victim, then:<div class="codebox"><p>Code: </p><pre><code>set Victimbanmask "*!*[string range $uhost [string first "@" $Victimhost] end]"</code></pre></div> will not return what you want.<br>it should be:<div class="codebox"><p>Code: </p><pre><code>set Victimbanmask "*!*[string range $victimhost [string first "@" $Victimhost] end]"</code></pre></div>or <div class="codebox"><p>Code: </p><pre><code>set Victimbanmask *!*@[lindex [split $Victimhost @] 1]</code></pre></div>and remove the <strong class="text-strong">pushmode $chan -b $Victimhost</strong> line.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Dec 15, 2003 11:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2003-12-15T08:58:53-04:00</updated>

		<published>2003-12-15T08:58:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31447#p31447</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31447#p31447"/>
		<title type="html"><![CDATA[Need help writting small protection tcl.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31447#p31447"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc protect:ban {nick uhost hand chan mc vict} {  if {[matchattr [nick2hand $vict $chan] $::theflag $chan]} {   putserv "MODE $chan -o+o $nick $vict"    set Victimhost [getchanhost $vict $chan]     set Victimbanmask "*!*[string range $uhost [string first "@" $Victimhost] end]"   pushmode $chan -b $Victimhost  pushmode $chan -b $Victimbanmask  }}</code></pre></div>Give me some guidance heheh<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Mon Dec 15, 2003 8:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2003-12-14T18:54:35-04:00</updated>

		<published>2003-12-14T18:54:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31435#p31435</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31435#p31435"/>
		<title type="html"><![CDATA[Need help writting small protection tcl.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31435#p31435"><![CDATA[
Well I'v got all that and I'v added in a few other things, now Im stuck on ban protection. <br><br>It seems Im having a hard time even getting it to trigger the proc I know that my bind on the mode switch is right yet I can't get my proc to trigger.<br><br>Care to give me some idea's on how to write up some basic ban protections?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Sun Dec 14, 2003 6:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-14T15:53:39-04:00</updated>

		<published>2003-12-14T15:53:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31429#p31429</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31429#p31429"/>
		<title type="html"><![CDATA[Need help writting small protection tcl.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31429#p31429"><![CDATA[
<blockquote class="uncited"><div>What's the use of "mc" in the proc line for?</div></blockquote>check tcl-commands.doc (bind mode)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Sun Dec 14, 2003 3:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2003-12-14T15:48:36-04:00</updated>

		<published>2003-12-14T15:48:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31427#p31427</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31427#p31427"/>
		<title type="html"><![CDATA[Need help writting small protection tcl.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31427#p31427"><![CDATA[
What's the use of "mc" in the proc line for?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Sun Dec 14, 2003 3:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-12-14T15:02:31-04:00</updated>

		<published>2003-12-14T15:02:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31424#p31424</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31424#p31424"/>
		<title type="html"><![CDATA[Need help writting small protection tcl.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31424#p31424"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set theflag "m"bind mode - "* -o" protect:deopproc protect:deop {nick uhost hand chan mc vict} {  if {[matchattr [nick2hand $vict $chan] $::theflag $chan]} {    # here you add your stuff to do when one of my friends just got deoped..  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Dec 14, 2003 3:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2003-12-14T08:55:26-04:00</updated>

		<published>2003-12-14T08:55:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31408#p31408</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31408#p31408"/>
		<title type="html"><![CDATA[Need help writting small protection tcl.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31408#p31408"><![CDATA[
I want to write a tcl to check when someone's deoped if that person matches a certain flag then deop the person who deoped the protected user and reop the protected user. <br><br>Im not really sure where to start, I'd just like hints and tips and snippets of code not someone just saying "do it like this"<br>I like to learn hehe<br><br>Thanks for any help...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Sun Dec 14, 2003 8:55 am</p><hr />
]]></content>
	</entry>
	</feed>
