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

	<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>2007-06-20T09:35:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-20T09:35:05-04:00</updated>

		<published>2007-06-20T09:35:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73712#p73712</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73712#p73712"/>
		<title type="html"><![CDATA[autorejoin script problem.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73712#p73712"><![CDATA[
Replace<div class="codebox"><p>Code: </p><pre><code>if {[matchattr [nick2hand $nick $chan] $dontban]} {</code></pre></div>with<div class="codebox"><p>Code: </p><pre><code>if {[matchattr [nick2hand $nick $chan] $dontban $chan]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jun 20, 2007 9:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darkwingduck]]></name></author>
		<updated>2007-06-19T17:11:26-04:00</updated>

		<published>2007-06-19T17:11:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73693#p73693</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73693#p73693"/>
		<title type="html"><![CDATA[autorejoin script problem.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73693#p73693"><![CDATA[
hello,<br>i use this script but the script works only with global flags for this option:<br># do not ban users with this flag on the bot<br><br>i need global or channel flags.<br>I have test it with<br>set dontban "Z|Z"<br><br>but this dont work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>can everyone help me?<br><div class="codebox"><p>Code: </p><pre><code># This script bans users which joins a given channel within 5 seconds# after getting kicked, for 5 minutes. Made for eggdrop v1.1## V1.1c, written by Anders Nordby aka. nickerne (anders@fix.no)# # 1.0a: Small bugfix.# 1.0b: Included flag-based exception from banning.# 1.0c: Registering channel-bans was a stupid thing. Speeded things up a#       little. Also made the flag-based ban-exception host specific (instead#       of nick specific). And some other changes, like the nick/host flag.# 1.1:  Several fixes:##       * maximum one kick for autorejoining, if the ban fails.#       * fixed bug with 10 characters in the username (ban failed)#       * added multichannel option#       * bans with the same hostname won't be cleared more than once# 1.1b: Users with the dontban-flag on the bot got kicked if they had the#       wrong nick. Fixed.# 1.1c: Fixed problems with people using nicks having troublesome characters.# delay before users can join the channel after a kick (in seconds)set joindelay 5# the bans will be removed after this delay (in minutes)set bantime 3# 0=work on one channel only, 1=multichannel (overrides channel-setting)set multichannel 1# the channel you wish this script to work onset channel ""# do not ban users with this flag on the botset dontban "Z"# 1=nick&amp;host-specific bans, 0=host-specific bansset nickban 1bind kick - * autorejoin_ban# bind join - * autorejoin_banproc autorejoin_ban {nick uhost hand chan knick reason} {    global joindelay channel multichannel    if {![expr [lsearch -glob [utimers] "*nada $knick $chan*"] + 1]} {       if {$multichannel} {  utimer $joindelay [subst {kickban_when_autorejoined $knick $chan}]       } else {  if {$chan == $channel} {     utimer $joindelay [subst {kickban_when_autorejoined {$knick} $chan}]  }       }    }}proc kickban_when_autorejoined {nick chan} {    global bantime dontban nickban joindelay    if {[onchan $nick $chan]} {if {[matchattr [nick2hand $nick $chan] $dontban]} {#putserv "PRIVMSG $chan :$nick will not be banned, of course, as he has +$dontban."} else {# hostmasking:    append userhost $nick "!" [getchanhost $nick $chan]    set hostmask [maskhost $userhost]    if {[string first @ $hostmask]&lt;12} {set hostmask "*!*[string range $hostmask 2 [string length $hostmask]]"    }# insert nick for nickban:    if {$nickban} { set hostmask "*$nick$hostmask"}# performance:    putserv "MODE $chan +b $hostmask"    utimer [expr 3 * $joindelay] [subst {nada $nick $chan}]            putserv "KICK $chan $nick :You autorejoined after getting kicked. Not that smart indeed."if {![expr [lsearch -glob [utimers] "*MODE $chan -b $hostmask*"] + 1]} {    utimer [expr 60 * $bantime] [subst {putserv "MODE $chan -b $hostmask"}]}    putserv "notice $nick :Somebody kicked you, and you autorejoined. $bantime minutes in the corner! Turn off autorejoin!"}    }}proc nada {nick chan} { }putlog "NO! autorejoin v1.1c by nickerne"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9069">darkwingduck</a> — Tue Jun 19, 2007 5:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
