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

	<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-10-19T06:55:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-10-19T06:55:23-04:00</updated>

		<published>2003-10-19T06:55:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28672#p28672</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28672#p28672"/>
		<title type="html"><![CDATA[Protecting user\bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28672#p28672"><![CDATA[
<blockquote class="uncited"><div>That was an example, change it to suit your needs.</div></blockquote>i would tend to add a custom flag for users to protect, it's better to edit that a string list<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Sun Oct 19, 2003 6:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-19T05:31:09-04:00</updated>

		<published>2003-10-19T05:31:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28669#p28669</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28669#p28669"/>
		<title type="html"><![CDATA[Protecting user\bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28669#p28669"><![CDATA[
That was an example, change it to suit your needs.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Oct 19, 2003 5:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[3zzy]]></name></author>
		<updated>2003-10-19T05:10:37-04:00</updated>

		<published>2003-10-19T05:10:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28668#p28668</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28668#p28668"/>
		<title type="html"><![CDATA[Protecting user\bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28668#p28668"><![CDATA[
Do I add this bit to the other one? and bla foo bar are the nicks to pretect?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3845">3zzy</a> — Sun Oct 19, 2003 5:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-18T13:49:15-04:00</updated>

		<published>2003-10-18T13:49:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28644#p28644</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28644#p28644"/>
		<title type="html"><![CDATA[Protecting user\bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28644#p28644"><![CDATA[
with something like this:<div class="codebox"><p>Code: </p><pre><code>set doprotect "bla foo bar" if {[lsearch -exact [strlwr $doprotect] [strlwr $nick]]} {# here it matches.. do your stuff.}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Oct 18, 2003 1:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[3zzy]]></name></author>
		<updated>2003-10-18T13:33:07-04:00</updated>

		<published>2003-10-18T13:33:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28643#p28643</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28643#p28643"/>
		<title type="html"><![CDATA[Protecting user\bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28643#p28643"><![CDATA[
As i can see, it will also protect the user from getting banned. But how do i tell the bot to pretect some user? I don't want it to protect averyone, just a few of them.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3845">3zzy</a> — Sat Oct 18, 2003 1:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-18T13:27:35-04:00</updated>

		<published>2003-10-18T13:27:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28642#p28642</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28642#p28642"/>
		<title type="html"><![CDATA[Protecting user\bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28642#p28642"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind mode - "* +b" protect:banbind kick - "*" protect:kickbind mode - "* -o" protect:deopproc protect:ban {nick uhost hand chan mc ban} {  if {![botisop $chan]} {    return  }  if {[matchattr $hand mn|mn $chan]} {    return  }  foreach luser [chanlist $chan mn|nm] {    if {[string match -nocase $ban $luser![getchanhost $luser $chan]] || [string match -nocase $ban "$::botname"]} {      scan $uhost "%\[^@\]@%s" user host      putquick "MODE $chan -bo+b $ban $nick *!*@$host" -next      newchanban $chan *!*@$host Moron "Don't \002ban\002 me or one of my friends moron!" 1440    }  }}proc protect:kick {nick uhost hand chan vict reas} {   if {[matchattr $hand mn|mn $chan]} {    return  }  if {$vict == $::botnick || [matchattr [nick2hand $vict $chan] mn|mn $chan]} {    scan $uhost "%\[^@\]@%s" user host    newchanban $chan *!*@$host Moron "Don't \002kick\002 me or one of my friends moron!" 1440  }}proc protect:deop {nick uhost hand chan mc vict} {  if {[matchattr $hand mn|mn $chan]} {    return  }  if {[matchattr [nick2hand $vict $chan] mn|mn $chan] || $vict == $::botnick} {    scan $uhost "%\[^@\]@%s" user host    newchanban $chan *!*@$host Moron "Don't \002deop\002 me or one of my friends moron!" 1440  }}</code></pre></div>there.. this might be your start! .. add arrays to make it *remember* if he had been banned/kicked/deoped before by the same user.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Oct 18, 2003 1:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[3zzy]]></name></author>
		<updated>2003-10-18T12:47:57-04:00</updated>

		<published>2003-10-18T12:47:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28641#p28641</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28641#p28641"/>
		<title type="html"><![CDATA[Protecting user\bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28641#p28641"><![CDATA[
OK, I need two scripts here. First one should kick a user if he kicked a bot on the first time, the next time the bot will be kicked, it shound ban the abuser of the bot.<br><br>The second one is similr, but with users. If someone kicks a protected user, the bot should kick the abuser, and on the second time, ban him.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3845">3zzy</a> — Sat Oct 18, 2003 12:47 pm</p><hr />
]]></content>
	</entry>
	</feed>
