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

	<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>2009-06-11T11:07:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[raider2k]]></name></author>
		<updated>2009-06-11T11:07:33-04:00</updated>

		<published>2009-06-11T11:07:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89163#p89163</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89163#p89163"/>
		<title type="html"><![CDATA[need help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89163#p89163"><![CDATA[
fine it worked out <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>about the kick, but not kickban thing, you could try to use this one:<br><div class="codebox"><p>Code: </p><pre><code>#### noidle #### bantype code based on Moretools.tcl by MC_8proc next.pub:noidle {nick uhost handle chan arg} {        global botnick botname next        if {[string tolower $chan] != $next(chan)} { return 0 }        if {![next.check:authed $nick $uhost $handle]} { return 0 }        if {[next.getlevel $handle] &gt;= 2} {        if {[lindex [split $arg] 0] == ""} {putserv "NOTICE $nick :Usage: .noidle &lt;nick&gt;"        return}        if {[next.getlevel [nick2hand [lindex [split $arg] 0] $next(chan)]] &gt;= 1} {          putnotc $nick "[lindex [split $arg] 0] is allowed to idle on $next(chan)!"; return}        if {[onchan [lindex [split $arg] 0] $next(chan)]} {set index [lsearch -exact $next(list) [lindex [split $arg] 0]]        if {$index &gt;= 0} {        set next(list) [lreplace $next(list) $index $index ]        }                switch $next(bantype) {                  0 {set ban "*![string range [getchanhost [lindex [split $arg] 0] $next(chan)] [string first ! [getchanhost [lindex [split $arg] 0] $next(chan)]] e]"}                  1 {set ban "*!*[string trimleft [string range [getchanhost [lindex [split $arg] 0] $next(chan)] [expr [string first ! [getchanhost [lindex [split $arg] 0] $next(chan)]]+1] e] "~"]"}                  2 {set ban "*!*[string range [getchanhost [lindex [split $arg] 0] $next(chan)] [string first @ [getchanhost [lindex [split $arg] 0] $next(chan)]] e]"}                  3 {set ident [string range [getchanhost [lindex [split $arg] 0] $next(chan)] [expr [string first ! [getchanhost [lindex [split $arg] 0] $next(chan)]]+1] [expr [string last @ [getchanhost [lindex [split $arg] 0] $next(chan)]]-1]] ; set ban "*!*[string trimleft $ident "~"][string range [maskhost [getchanhost [lindex [split $arg] 0] $next(chan)]] [string first @ [maskhost [getchanhost [lindex [split $arg] 0] $next(chan)]]] e]"}                  4 {set ban "*!*[string range [maskhost [getchanhost [lindex [split $arg] 0] $next(chan)]] [string last "@" [maskhost [getchanhost [lindex [split $arg] 0] $next(chan)]]] e]"}                  5 {set ban "[lindex [split $arg] 0]![string range [getchanhost [lindex [split $arg] 0] $next(chan)] [string first ! [getchanhost [lindex [split $arg] 0] $next(chan)]] e]"}                  6 {set nick [string range [getchanhost [lindex [split $arg] 0] $next(chan)] 0 [expr [string first "!" [getchanhost [lindex [split $arg] 0] $next(chan)]]-1]] ; set ident [string range [getchanhost [lindex [split $arg] 0] $next(chan)] [expr [string first "!" [getchanhost [lindex [split $arg] 0] $next(chan)]]+1] [expr [string last "@" [getchanhost [lindex [split $arg] 0] $next(chan)]]-1]] ; set ban "[lindex [split $arg] 0]!*[string trimleft $ident "~"][string range [getchanhost [lindex [split $arg] 0] $next(chan)] [string last "@" [getchanhost [lindex [split $arg] 0] $next(chan)]] e]"}                  7 {set nick [string range [getchanhost [lindex [split $arg] 0] $next(chan)] 0 [expr [string first "!" [getchanhost [lindex [split $arg] 0] $next(chan)]]-1]] ; set ban "[lindex [split $arg] 0]!*[string range [getchanhost [lindex [split $arg] 0] $next(chan)] [string last "@" [getchanhost [lindex [split $arg] 0] $next(chan)]] e]"}                  8 {set nick [string range [getchanhost [lindex [split $arg] 0] $next(chan)] 0 [expr [string first "!" [getchanhost [lindex [split $arg] 0] $next(chan)]]-1]] ; set ident [string range [getchanhost [lindex [split $arg] 0] $next(chan)] [expr [string first "!" [getchanhost [lindex [split $arg] 0] $next(chan)]]+1] [expr [string last "@" [getchanhost [lindex [split $arg] 0] $next(chan)]]-1]] ; set ban "[lindex [split $arg] 0]!*[string trimleft $ident "~"][string range [maskhost [getchanhost [lindex [split $arg] 0] $next(chan)]] [string last "@" [maskhost [getchanhost [lindex [split $arg] 0] $next(chan)]]] e]"}                  9 {set nick [string range [getchanhost [lindex [split $arg] 0] $next(chan)] 0 [expr [string first "!" [getchanhost [lindex [split $arg] 0] $next(chan)]]-1]] ; set ban "[lindex [split $arg] 0]!*[string range [maskhost [getchanhost [lindex [split $arg] 0] $next(chan)]] [string last "@" [maskhost [getchanhost [lindex [split $arg] 0] $next(chan)]]] e]"}                  default {set ban "*!*[string range [getchanhost [lindex [split $arg] 0] $next(chan)] [string first "@" [getchanhost [lindex [split $arg] 0] $next(chan)]] e]"}                }                set nnick [lindex [split $ban !] 0]                set iident [string range $ban [expr [string first ! $ban]+1] [expr [string last @ $ban]-1]]                set hhost [string range $ban [expr [string last @ $ban]+1] e]                if {$iident != [set temp [string range $iident [expr [string length $iident]-9] e]]} {set iident *[string trimleft $temp *]}                if {$hhost != [set temp [string range $hhost [expr [string length $hhost]-63] e]]} {set hhost *[string trimleft $temp *]}                set next(ban) "$nnick!$iident@$hhost"        if {[string match "$next(ban)" "$botname"]} {putserv "NOTICE $nick :The ban ( $next(ban) ) matches me ..."        return }        newchanban $next(chan) $next(ban) $nick "$next(noidle)" $next(bantime)        pushmode $chan -o [lindex [split $arg] 0]        #pushmode $chan +b $next(ban)        putkick $chan [lindex [split $arg] 0] "$next(noidle)"        return }        putserv "NOTICE $nick :[lindex [split $arg] 0] isn't on $next(chan)"        return }}</code></pre></div>notice, that - 5 lines above - i only put a # in front of the line to make it kind of deactivated so it wont ban anymore. thats everything you need to do, put a # in front of it, nothing more, no other changes in the script. but try again ^^<br><br>regarding the new user hostmask i have to tell you that im sorry, please talk to the owner of the script<br><div class="codebox"><p>Code: </p><pre><code>#             |                                      |#             | next v2.0 by mortician               |#             |                                      |#             | IRC:   irc.undernet.org - #mortician |#             | email: mortician@linux.be            |#             | www:   www.mortician.tk              |#             |______________________________________|</code></pre></div><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9589">raider2k</a> — Thu Jun 11, 2009 11:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kikericsy]]></name></author>
		<updated>2009-06-11T09:25:08-04:00</updated>

		<published>2009-06-11T09:25:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89162#p89162</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89162#p89162"/>
		<title type="html"><![CDATA[need help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89162#p89162"><![CDATA[
i´ve made it (whit help of my friend), thanks a lot <strong class="text-strong">raider2k</strong> !<br>now I have another question.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br>i would like to use next.tcl script, this script by adding new user give this mask: *!user@*.domain , but i would like to have this mask: nick!*@*.domain . how can i change it?<br><br>hier is the whole script:<br><a href="http://www.mibbit.com/pb/pQzTpy" class="postlink">http://www.mibbit.com/pb/pQzTpy</a><br><br>(if you have time, could you change the !noidle command? i would like just to kick, not kickban. But this is not so important.More important whith the hostmask).<br><br>THANKS THANKS THANKS<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10707">kikericsy</a> — Thu Jun 11, 2009 9:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raider2k]]></name></author>
		<updated>2009-06-10T10:46:33-04:00</updated>

		<published>2009-06-10T10:46:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89158#p89158</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89158#p89158"/>
		<title type="html"><![CDATA[need help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89158#p89158"><![CDATA[
ok, i guess you would like to apply such a limitation to an existing script, right? if so, please paste the whole script here and ill show you what needs to be changed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9589">raider2k</a> — Wed Jun 10, 2009 10:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kikericsy]]></name></author>
		<updated>2009-06-10T06:03:21-04:00</updated>

		<published>2009-06-10T06:03:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89155#p89155</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89155#p89155"/>
		<title type="html"><![CDATA[need help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89155#p89155"><![CDATA[
raider2k<br>thaks 4 your help, sorry but i´m a musician so i have no clou about scripting  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"> <br>this "code here" means that i should write something there or not?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10707">kikericsy</a> — Wed Jun 10, 2009 6:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raider2k]]></name></author>
		<updated>2009-06-09T21:59:57-04:00</updated>

		<published>2009-06-09T21:59:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89152#p89152</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89152#p89152"/>
		<title type="html"><![CDATA[need help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89152#p89152"><![CDATA[
2 ways to go:<br><br>either put<br><div class="codebox"><p>Code: </p><pre><code>if { [string equal $chan "#channelname"] } {code here}</code></pre></div>at the beginning of your proc, or<br><br>put<br><div class="codebox"><p>Code: </p><pre><code>setudef flag flagname</code></pre></div>outside of all procs and then put<br><div class="codebox"><p>Code: </p><pre><code>if { [channel get $chan flagname] } {code here}</code></pre></div>at the beginning of your proc again and activate the channel by using ".chanset #channelname +flagname" on your bots partyline<br><br>also be aware that #channelname is case sensitive<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9589">raider2k</a> — Tue Jun 09, 2009 9:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kikericsy]]></name></author>
		<updated>2009-06-09T20:25:56-04:00</updated>

		<published>2009-06-09T20:25:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89151#p89151</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89151#p89151"/>
		<title type="html"><![CDATA[need help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89151#p89151"><![CDATA[
i want that my tcl work on a scpecified channel, how do i do?<br><br>set chan ""  is not working<br><br>thanks  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10707">kikericsy</a> — Tue Jun 09, 2009 8:25 pm</p><hr />
]]></content>
	</entry>
	</feed>
