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

	<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>2002-11-20T14:03:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2002-11-20T14:03:00-04:00</updated>

		<published>2002-11-20T14:03:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13422#p13422</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13422#p13422"/>
		<title type="html"><![CDATA[Kickban script..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13422#p13422"><![CDATA[
thx, works fine now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>perfekt ban type would be *!ident@*provider.com<br><br>like getting xxxxxxx.adsl.highway.telekom.at -&gt; highway.telekom.at<br><br>banhost should be the last 3 parts of the hotmask.<br><br>btw : everything works fine now <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=1433">GodOfSuicide</a> — Wed Nov 20, 2002 2:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-11-20T06:09:42-04:00</updated>

		<published>2002-11-20T06:09:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13404#p13404</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13404#p13404"/>
		<title type="html"><![CDATA[Kickban script..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13404#p13404"><![CDATA[
I have tested and found an typing error. Sorry about that..<br><br>Change the kickban with this:<div class="codebox"><p>Code: </p><pre><code># kickban proc hide:kickban {nick host hand arg} { global botnick hide if {![validchan $hide(chan)] || ![isop $nick $hide(chan)] || ![botisop $hide(chan)]} { return } if {[llength $arg] &lt; 1} { putserv "PRIVMSG $nick :\002Usage\002: kickban &lt;victim&gt; \[reason\]" putserv "PRIVMSG $nick :Notice that this works only for the $hide(chan) channel." return } set vict [lindex $arg 0] set reas [lrange $arg 1 end] if {$reas == "" } { set reas "request" } if {$vict == $botnick} { return } if {![onchan $vict $hide(chan)]} { putserv "PRIVMSG $nick :$vict is not on $hide(chan)." return } set ban "*!*[string trimleft [getchanhost [lindex $arg 0] $hide(chan)] ~]"putserv "MODE $hide(chan) +b $ban" putkick $hide(chan) $vict $reas return }</code></pre></div>Now should works smoothly.. I have changed the mask to: *!*<a href="mailto:foo@bar.com">foo@bar.com</a> Tell me if you would like to make it how you said.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Nov 20, 2002 6:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2002-11-19T14:01:32-04:00</updated>

		<published>2002-11-19T14:01:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13380#p13380</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13380#p13380"/>
		<title type="html"><![CDATA[Kickban script..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13380#p13380"><![CDATA[
a fix banmask would be perfekt..<br><br>like *!*ident@*.host.com<br><br>btw : the script still ban's the person that writes the trigger...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Tue Nov 19, 2002 2:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-11-19T13:35:06-04:00</updated>

		<published>2002-11-19T13:35:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13379#p13379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13379#p13379"/>
		<title type="html"><![CDATA[Kickban script..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13379#p13379"><![CDATA[
For the ban command you must specify the <strong class="text-strong">mask</strong> to ban on the channel. e.g.: ban *!*<a href="mailto:foo@bar.com">foo@bar.com</a><br><br>Please do a msg to your eggdrop with the folowing commands: kick, ban and kickban to see an eplication how they work. Also, sorry for the typing, search in the tcl file and modify:<br><br>from:<br>putkick $hide(chan) $vick $reas<br><br>with:<br>putkick $hide(chan) $vict $reas<br><br>from:<br>if {![isop $nick $hide(chan)] || ![botisop $hide(chan)]} { return } <br><br>with:<br>if {![validchan $hide(chan)] || ![isop $nick $hide(chan)] || ![botisop $hide(chan)]} { return } <br><br>And it should work smoothly. Please tell me if you find any problems or something like this.<br><br>Have fun. <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=187">caesar</a> — Tue Nov 19, 2002 1:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2002-11-19T09:51:41-04:00</updated>

		<published>2002-11-19T09:51:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13368#p13368</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13368#p13368"/>
		<title type="html"><![CDATA[Kickban script..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13368#p13368"><![CDATA[
thx caesar, gonna test it now<br><br>[EDIT]<br>when i try the kickban command it just sets MY hotmask on the channel banlist and doesnt kick anyone..<br><br>the ban cmd also just sets the nickname with &lt;nick&gt;!*@* in banlist...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Tue Nov 19, 2002 9:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-11-19T04:53:47-04:00</updated>

		<published>2002-11-19T04:53:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13353#p13353</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13353#p13353"/>
		<title type="html"><![CDATA[Kickban script..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13353#p13353"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set hide(chan) "#your_channel"bind msg * kick hide:kickbind msg * ban hide:banbind msg * kickban hide:kickban# kickproc hide:kick {nick host hand arg} {global botnick hideif {![isop $nick $hide(chan)] || ![botisop $hide(chan)]} { return }if {[llength $arg] &lt; 1} {putserv "PRIVMSG $nick :\002Usage\002: kick &lt;victim&gt; \[reason\]"putserv "PRIVMSG $nick :Notice that this works only for the $hide(chan) channel."return }set vict [lindex $arg 0]set reas [lrange $arg 1 end]if {$reas == "" } { set reas "request" }if {$vict == $botnick} { return }if {![onchan $vict $hide(chan)]} { return }putkick $hide(chan) $vict $reasreturn }# banproc hide:ban {nick host hand arg} {global botname hideif {![isop $nick $hide(chan)] || ![botisop $hide(chan)]} { return }if {![llength $arg] &gt; 0 } {putserv "PRIVMSG $nick :\002Usage\002: ban &lt;mask&gt;"putserv "PRIVMSG $nick :Notice that this works only for the $hide(chan) channel."return }set ban [lrange $arg 0 end]if {[string match "$ban" "$botname"]} {putserv "PRIVMSG $nick :This ban matches me :P~"return }putserv "MODE $hide(chan) +b $ban"return }# kickbanproc hide:kickban {nick host hand arg} {global botnick botname hideif {![isop $nick $hide(chan)] || ![botisop $hide(chan)]} { return }if {[llength $arg] &lt; 1} {putserv "PRIVMSG $nick :\002Usage\002: kickban &lt;victim&gt; \[reason\]"putserv "PRIVMSG $nick :Notice that this works only for the $hide(chan) channel."return }set vict [lindex $arg 0]set reas [lrange $arg 1 end]if {$reas == "" } { set reas "request" }if {$vict == $botnick} { return }if {![onchan $vict $hide(chan)]} {putserv "PRIVMSG $nick :$vict is not on $hide(chan)."return }set ban "*!*@[lindex [split [getchanhost $nick $hide(chan)] @] 1]"if {[string match "$ban" "$botname"]} { set ban "*!*[getchanhost [lindex $arg 0] $hide(chan)]" }putserv "MODE $hide(chan) +b $ban"putkick $hide(chan) $vick $reasreturn }</code></pre></div>I haven't figured out an other way for the chk of the channel, so you may use this only for a channel. I can make an foreach [chanlist] and chk if is op but then will have to be op on all the channels the bot is on to have access to the commands. I'm still thinking to an alternative of how to do this. I can make it for more than one channel but then $nick will must have op on all the channels. Tell me if you encount problems or you have sugestions of any kind related about this code.<br><br>Have fun. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>PS: Weirdo : he asked for an msg not an dcc and without access to the eggdrop, not the +o flag on the eggdrop, just @ on the channel.. doh! <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=187">caesar</a> — Tue Nov 19, 2002 4:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2002-11-19T03:54:26-04:00</updated>

		<published>2002-11-19T03:54:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13351#p13351</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13351#p13351"/>
		<title type="html"><![CDATA[Kickban script..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13351#p13351"><![CDATA[
You could just unbind the -ban commands to everyone but owners/masters<br><br>that prevents unbanning you dont want. <br><br>Do a search for "Unbinding Halfops" as a topic, and ppslim helped me achieve that with my bot, you can do something simular to achieve the higher security<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Tue Nov 19, 2002 3:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2002-11-18T17:39:03-04:00</updated>

		<published>2002-11-18T17:39:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13335#p13335</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13335#p13335"/>
		<title type="html"><![CDATA[Kickban script..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13335#p13335"><![CDATA[
but i dont want to use interenal banlist cos members should be able to unban him<br><br>also it should ban by a specified mask (*!iden@*.domain) etc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Mon Nov 18, 2002 5:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2002-11-18T16:00:27-04:00</updated>

		<published>2002-11-18T16:00:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13332#p13332</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13332#p13332"/>
		<title type="html"><![CDATA[Kickban script..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13332#p13332"><![CDATA[
As Extracted from my Eggdrop...<br><blockquote class="uncited"><div>[19:58:49] &lt;Weirdo&gt; .help kickban<br>[19:58:49] &lt;Minako&gt; [19:58] #Weirdo# help kickban<br>[19:58:49] &lt;Minako&gt; ###  kickban [channel] [-|@]&lt;nickname&gt; [comment]<br>[19:58:49] &lt;Minako&gt;    kicks a user off the channel and bans her by a reasonable host-<br>[19:58:49] &lt;Minako&gt;    mask.  your nickname will be attached to the ban in the bot's<br>[19:58:49] &lt;Minako&gt;    internal ban list, and the ban will last for whatever is set in<br>[19:58:49] &lt;Minako&gt;    ban-time -- only on this channel.  use '.+ban' for a more<br>[19:58:49] &lt;Minako&gt;    permanent ban which will be activated on every channel the bot<br>[19:58:49] &lt;Minako&gt;    monitors.  if you use a comment, that will also be attached to<br>[19:58:49] &lt;Minako&gt;    the ban in the ban list, and used as the kick comment.<br>[19:58:49] &lt;Minako&gt;      appending a prefix of ! or @ to a nickname changes the ban<br>[19:58:49] &lt;Minako&gt;    mask used:<br>[19:58:49] &lt;Minako&gt;         e.g. with a host of nick!<a href="mailto:ident@host.name.domain">ident@host.name.domain</a><br>[19:58:49] &lt;Minako&gt;  <br>[19:58:49] &lt;Minako&gt;         command        banmask<br>[19:58:49] &lt;Minako&gt;         .kickban nick  *!*dent@*.name.domain<br>[19:58:49] &lt;Minako&gt;         .kickban -nick *!*<a href="mailto:dent@host.name.domain">dent@host.name.domain</a><br>[19:58:49] &lt;Minako&gt;         .kickban @nick *!*@host.name.domain<br>[19:58:49] &lt;Minako&gt;  <br>[19:58:49] &lt;Minako&gt;         with a host of nick!~<a href="mailto:ident@host.name.domain">ident@host.name.domain</a> (strict-host set to 1)<br>[19:58:49] &lt;Minako&gt;         <br>[19:58:49] &lt;Minako&gt;         command        banmask<br>[19:58:49] &lt;Minako&gt;         .kickban nick  *!*ident@*.name.domain<br>[19:58:49] &lt;Minako&gt;         .kickban -nick *!*<a href="mailto:ident@host.name.domain">ident@host.name.domain</a><br>[19:58:49] &lt;Minako&gt;   <br>[19:58:49] &lt;Minako&gt; see also: +ban, bans, stick</div></blockquote>This command is built into the channels module, as well as kick as well as +ban<br><br>if you do .help on any of these, itll give you the syntax<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Mon Nov 18, 2002 4:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2002-11-18T15:29:32-04:00</updated>

		<published>2002-11-18T15:29:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13329#p13329</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13329#p13329"/>
		<title type="html"><![CDATA[Kickban script..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13329#p13329"><![CDATA[
i wanted to add a little feature to my bot :<br><br>any OP in a channel (not bot flag op, but channel op) can msg the bot to kick / kickban / ban a user on the channel with a given reason.<br><br>This feature would allow ppl to hide behind the bot.<br><br>mfg gos<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Mon Nov 18, 2002 3:29 pm</p><hr />
]]></content>
	</entry>
	</feed>
